Skip to main content

PATCH – Change Account Instance

Behavior

UserName and Password have to follow the rules:

  • UserName only allows special characters ‘-’(hyphen),’_’(underscore),’@’(at sign) in UserName.

  • UserName must be a string of 1 to 16 alpha-numeric characters.

  • UserName must start with an alphabetical character.

  • Password must be a string of 8 to 20 characters.

Note
The rules of "UserName" and "Password" should follow the rules of IPMI "Name" and "Password" in order to synchronize Redfish accounts and IPMI accounts.

Request

PATCH https://{{ip}}/redfish/v1/AccountService/Accounts/{{account_instance}}
Content-Type: application/json

Request body

Example Request Body for first-time password change:

{
"Password": "Superuser2"
}

Please refer to the properties that are patchable in Manager Account Property for which read-only is False that can be sent as Request body in the json format.

Example Request Body for Editing an Account:

HostAutoFW and HostAutoOS can't be deleted or modified.

{
"Enabled": true,
"Password": "superuser",
"UserName": "user_account",
"RoleId": "ReadOnly",
"Locked": false
}

Response

The response status is 204 and no response body. For Error Responses, please refer to Error Response.