调用ReleaseDedicatedHost释放一台按量付费专有宿主机。

接口说明

释放按量付费专有宿主机之前,请确保该宿主机上不存在任何ECS实例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ReleaseDedicatedHost

系统规定参数。取值:ReleaseDedicatedHost

RegionId String cn-hangzhou

专有宿主机所属的地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。

DedicatedHostId String dh-bp199lyny9b3****

专有宿主机ID。

返回数据

名称 类型 示例值 描述
RequestId String A1B15AC8-E6F6-49A4-8985-8C07104B9199

请求ID。

示例

请求示例

http(s)://ecs.aliyuncs.com/?Action=ReleaseDedicatedHost
&DedicatedHostId=dh-bp199lyny9b3****
&RegionId=cn-hangzhou
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ReleaseDedicatedHostResponse>
  <RequestId>A1B15AC8-E6F6-49A4-8985-8C07104B9199</RequestId>
</ReleaseDedicatedHostResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A1B15AC8-E6F6-49A4-8985-8C07104B9199"
}

错误码

HttpCode 错误码 错误信息 描述
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 当前宿主机状态不支持当前操作。
500 InternalError The request processing has failed due to some unknown error. 内部错误,请重试。
403 InstanceExist Instance exists on the dedicated host. 释放宿主机前,请先移除宿主机上的所有实例。
404 InvalidDedicatedHostId.NotFound The specified DedicatedHostId does not exist. 指定的专有宿主机不存在。

访问错误中心查看更多错误码。