REST API - delete

vcenter svcaccountmgmt service account: delete

Delete the service account with the input name. 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=delete

Request Body Structure:

{
    "delete_spec"{
        "account_name""string"
    }
}

Request Body Parameters:

Name Type Description
bold = required
delete_spec delete_spec
delete_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

None

Errors:

HTTP Status Code Type Description
404 not_found if the service account bearing the input name does not exist.
400 invalid_argument
500 error if failed due to generic exception.