vcenter svcaccountmgmt password: change
Change the service account password. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
Request:
HTTP request
POST https://{server}/rest/vcenter/svc-account-mgmt/password?action=change
Request Body Structure:
{
"change_spec" : {
"old_password" : "secret string",
"account_name" : "string"
}
}
"change_spec" : {
"old_password" : "secret string",
"account_name" : "string"
}
}
Request Body Parameters:
| Name | Type | Description |
|---|---|---|
| bold = required | ||
| change_spec | change_spec | |
| change_spec.account_name | string | service account name. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
| change_spec.old_password | secret | current password. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"new_password" : "secret string"
}
}
"value" : {
"new_password" : "secret string"
}
}
Response Type:
| Name | Type | Description |
|---|---|---|
| bold = required | ||
| value | output_spec | OutputSpec The newly generated service account password. |
| value.new_password | secret | service account password. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
Errors:
| HTTP Status Code | Type | Description |
|---|---|---|
| 404 | not_found | if the service account bearing the input name does not exists. |
| 400 | invalid_argument | |
| 403 | unauthorized | |
| 500 | error | if failed due to generic exception. |