PATCH – Update account properties
Use the PATCH method to update properties in Account resource for Redfish service.
Request URL
PATCH https://<BMC_IPADDR>/redfish/v1/AccountService/Accounts/{1...14}
Request body
Properties to be updated are shown as bellow, all of these properties can be changed individually.
Field | Type | Description | |
---|---|---|---|
UserName | String | The user name for this account. | |
Password | String | The password of the account. Display null on a PATCH response. | |
RoleId | String | The ID of the Role resource that configured for this account. | |
AccountTypes | Array | The various manager services that this account is allowed to access. | |
AccountTypes[N] | String | “Redfish”, “SNMP”, “ManagerConsole”, “IPMI”, “WebUI” Note If the account has IPMI access right, the password should be set to equal to or less than 20 characters. If the account has SNMP access right, the EncryptionKey should be set to equal to or less than 32 characters. In addition, if EncryptionProtocol is not “none”, AuthenticationProtocol should not be “none” either. | |
Enabled | Boolean | Enable this account or not. | |
SNMP | Object | Expanded. Note This setting is not available when AccountTypes does not contain “SNMP”. | |
AuthenticationProtocol | String | Authentication conforms to the authentication protocol. | |
EncryptionProtocol | String | Encryption conforms to the encryption protocol. | |
EncryptionKey | String | The secret authentication key for SNMPv3. |
Response body
The response returns same content as GET operation with updated properties.
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
400 | PropertyValueTypeError PropertyValueFormatError ResourceChangeRequried NotRecommandedOperation ForbiddenOperation ResourceAlreadyExists PropertyMissing PasswordChangeRequired |