Skip to content

Redfish Account settings #6823

Closed
Closed
@sseekamp

Description

@sseekamp

Summary

I am trying to set the "AccountTypes" array for a Redfish user and it doesn't appear to be supported in the current redfish_command module.

We are looking to do the equivalent of:

curl -v -s -k -L -X PATCH -u bmcuser:bmcpass
https://x.x.x.x/redfish/v1/AccountService/Accounts/4
-H "If-Match: W/"XXXXXXX""
-H 'Content-Type: application/json'
-d '{ "AccountTypes": [ "Redfish", "KVMIP" ]}'

Issue Type

Feature Idea

Component Name

redfish_command

Additional Information

Ideally it would be great to have an option like:

- name: Add user
  community.general.redfish_command:
    category: Accounts
    command: UpdateUser/AddUser
    baseuri: "{{ baseuri }}"
    username: "{{ username }}"
    password: "{{ password }}"
    new_username: "{{ new_username }}"
    new_password: "{{ new_password }}"
    roleid: "{{ roleid }}"
    account_types:
      - KVMIP
      - Redfish
      - SNMP
      - etc

Thanks!

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions