You need to enable JavaScript to run this app.
导航

RedeployDedicatedHost

最近更新时间2024.02.20 17:41:47

首次发布时间2023.09.08 16:31:01

调用 RedeployDedicatedHost 接口对专有宿主机DDH进行整体迁移。

接口说明

DDH状态为UnderAssessment(存在潜在风险),即故障潜伏期时,建议您调用该接口执行DDH的故障迁移,避免DDH产生永久性故障。您可以调用DescribeDedicatedHosts接口查看DDH状态。

请求参数

名称
类型是否必填
示例值
描述
ActionStringRedeployDedicatedHost要执行的操作,取值:RedeployDedicatedHost。
VersionString2020-04-01API的版本,取值:2020-04-01。
DedicatedHostIdStringdh-3tigy72q3u3vj0x2****源专有宿主机ID。

ClientToken

String

23fa21A8823nfasd7f****

保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。
取值:仅支持ASCII字符,且不能超过64个字符。

返回数据

操作接口仅返回公共参数及错误码。

请求示例

GET /?Action=RedeployDedicatedHost&Version=2020-04-01&DedicatedHostId=dh-3tigy72q3u3vj0x2**** HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: ecs

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202307171626144175A80ADCCEEBB8****",
        "Action": "RedeployDedicatedHost",
        "Version": "2020-04-01",
        "Service": "ecs",
        "Region": "cn-beijing"
    },
    "Result": {}
}

错误码

HttpCode错误码错误信息描述
400InvalidDedicatedHostThe specified dedicated host does not support this request.当前专有宿主机不支持此操作。
400InvalidDedicatedHostForMigrate.UnsupportedThe specified dedicated host does not support migrate.指定的专有宿主机不支持迁移操作。
400InvalidDedicatedHostStatus.UnsupportedThe status of the specified dedicated host does not support this request.当前专有宿主机的状态不支持此操作。
400InvalidInstanceStatusThe status of the specified instance does not support this request.当前实例的状态不支持此操作。
400MissingParameter.DedicatedHostIdThe required parameter DedicatedHostId is not supplied.参数DedicatedHostId不能为空。
400IdempotentParameterMismatchThe request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.幂等参数不一致。
400InvalidClientToken.MalformedThe specified ClientToken is malformed.指定的ClientToken不合法。
404InvalidDedicatedHost.NotFoundThe specified dedicated host does not exist.指定的专有宿主机不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.先前的幂等请求仍在处理中,请稍后重试。
500Insufficient.DedicatedHostCapacityThere is not enough capacity to fulfill your request.当前资源不足,请稍后重试或选择其它专有宿主机规格。
500InternalErrorAn internal error has occurred.内部错误,请重试。如果多次尝试失败,请提交工单。