Deletes a dedicated cluster.
Operation description
You can call this operation to delete a dedicated cluster only after all the instances and hosts in the dedicated cluster are deleted.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DedicatedHostGroupId | string | Yes | The dedicated cluster ID. You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID. | dhg-h5i4p331f509**** |
RegionId | string | No | The region ID of the dedicated cluster. For more information, see Region IDs. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E1765"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Host.Exist | There are hosts in usercluster, can't delete it. | - |
400 | Custins.Exist | The cluster contains an instance and cannot be deleted. | The cluster contains an instance and cannot be deleted. |
404 | InvalidDedicatedHostGroup.NotFound | Specified DedicatedHostGroup does not exists. | - |
For a list of error codes, visit the Service error codes.