Deletes a host account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDedicatedHostAccount

The operation that you want to perform. Set the value to DeleteDedicatedHostAccount.

AccountName String Yes test

The name of the host account.

  • The name can contain lowercase letters, digits, and underscores (_).
  • The name must start with a lowercase letter and end with a lowercase letter or a digit.
  • The name must be 2 to 16 characters in length.
DedicatedHostId String Yes ch-bp10a5id3boqi****

The ID of the host. You can call the DescribeDedicatedHosts operation to query the host ID.

RegionId String Yes cn-hangzhou

The region ID of the host. You can call the DescribeDedicatedHostAttribute operation to query the region ID.

Response parameters

Parameter Type Example Description
RequestId String D6E068C3-25BC-455A-85FE-45F0B22E12AS

The ID of the request.

Examples

Sample requests

http(s)://cddc.aliyuncs.com/?Action=DeleteDedicatedHostAccount
&AccountName=test
&DedicatedHostId=ch-bp10a5id3boqi****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteDedicatedHostAccountResponse>
      <RequestId>D6E068C3-25BC-455A-85FE-45F0B22E12AS</RequestId>
</DeleteDedicatedHostAccountResponse>

JSON format

{
    "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E12AS"
}

Error codes

For a list of error codes, visit the API Error Center.