All Products
Search
Document Center

ApsaraDB for MyBase:DeleteDedicatedHostGroup

Last Updated:Mar 01, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DedicatedHostGroupIdstringYes

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****
RegionIdstringNo

The region ID of the dedicated cluster. For more information, see Region IDs.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22E1765

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400Host.ExistThere are hosts in usercluster, can't delete it.-
400Custins.ExistThe cluster contains an instance and cannot be deleted.The cluster contains an instance and cannot be deleted.
404InvalidDedicatedHostGroup.NotFoundSpecified DedicatedHostGroup does not exists.-

For a list of error codes, visit the Service error codes.