Deletes a dedicated cluster.
You can call this operation to delete a dedicated cluster only if all the instances and hosts in the dedicated cluster are deleted.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteDedicatedHostGroup |
The operation that you want to perform. Set the value to DeleteDedicatedHostGroup. |
DedicatedHostGroupId | String | Yes | dhg-h5i4p331f509**** |
The ID of the dedicated cluster. You can view the ID of the dedicated cluster on the Dedicated Clusters page in the ApsaraDB MyBase console. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the dedicated cluster. For more information about region IDs, see Region IDs. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D6E068C3-25BC-455A-85FE-45F0B22E1765 |
The ID of the request. |
Examples
Sample requests
http(s)://cddc.aliyuncs.com/?Action=DeleteDedicatedHostGroup
&DedicatedHostGroupId=dhg-h5i4p331f509****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<DeleteDedicatedHostGroupReponse>
<RequestId>D6E068C3-25BC-455A-85FE-45F0B22E1765</RequestId>
</DeleteDedicatedHostGroupReponse>
JSON
format
null
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | Custins.Exist | The cluster contains an instance and cannot be deleted. | The error message returned because the specified dedicated cluster contains an instance and cannot be deleted. |
For a list of error codes, visit the API Error Center.