POST – Change BIOS password settings
Use the POST method to change BIOS password settings
Request URL
POST https://<BMC_IPADDR>/redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword
Request body
Field | Type | Error Message ID |
---|---|---|
PasswordName | String | "UefiAdminPassword" or "UefiPowerOnPassword". |
OldPassword | String | Configure parameter OldPassword. |
NewPassword | String | Configure parameter NewPassword, empty value will clear current password. If it's not empty, the password length must be at least 8 and at most 20. The password rule shall follow the Lenovo UEFI password rule, no three continuous and same characters appear in password. |
Note
To recover UEFI Admin password, leave both OldPassword and NewPassword empty to clear it.
Response body
None
Status code
HTTP Status Code | Error Message ID |
---|---|
200 | RebootRequired |
400 | ActionParamFormatError |
403 | InsufficientPrivilege |
500 | InternalError |
Response example
The following example is POST body.
{
"PasswordName" : "UefiAdminPassword",
“OldPassword”:”******”,
"NewPassword" : "******"
}
The following response is returned:
{
"@Message.ExtendedInfo": [
{
"MessageArgs": [],
"Resolution": "Reboot the computer system for the changes to take effect.",
"MessageId": "ExtendedError.1.1.RebootRequired",
"Severity": "Warning",
"Message": "Changes completed successfully, but these changes will not take effect until next reboot.",
"@odata.type": "#Message.v1_0_6.Message"
}
]
}
Give documentation feedback