vcenter svcaccountmgmt service account: create
Create a service account with the input configuration parameters. 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/service-account?action=create
Request Body Structure:
{
"create_spec" : {
"account_name" : "string"
}
}
"create_spec" : {
"account_name" : "string"
}
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
create_spec | create_spec | |
create_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. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"account_password" : "secret string"
}
}
"value" : {
"account_password" : "secret string"
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | output_spec | OutputSpec The newly created service account information. |
value.account_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 |
---|---|---|
400 | invalid_argument | |
400 | already_exists | if a service account with the input name already exists. |
500 | error | if failed due to generic exception. |