Releases a pay-as-you-go dedicated host.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the dedicated host. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DedicatedHostId | string | Yes | The ID of the dedicated host. | dh-bp199lyny9b3**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A1B15AC8-E6F6-49A4-8985-8C07104B9199"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ChargeTypeViolation | The operation is not permitted due to charge type of the dedicated host. | - |
400 | IncorrectHostStatus.Initializing | The specified dedicatedHost status is not support this operation | - |
403 | InstanceExist | Instance exists on the dedicated host. | Instances are present on the dedicated host. You must remove the instances before you can release the dedicated host. |
404 | InvalidDedicatedHostId.NotFound | The specified DedicatedHostId does not exist. | - |
500 | InternalError | The request processing has failed due to some unknown error. | An internal error has occurred. Try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-08-01 | The Error code has changed | see changesets | ||||||||||
|