续费一台或者多台包年包月的专有宿主机。
接口说明
接口说明
续费付款时,优先使用可抵扣的代金券,且您的账号必须支持账号余额支付或信用支付。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:RenewDedicatedHosts |
update |
*DedicatedHost
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DedicatedHostIds |
string |
是 |
专有宿主机的编号列表。最多可以输入 100 个预付费专有宿主机 ID。多个专有宿主机 ID 用一个格式类似 |
dh-bp199lyny9b3**** |
| RegionId |
string |
是 |
专有宿主机所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。 |
cn-hangzhou |
| Period |
integer |
是 |
续费周期。取值范围:
|
1 |
| PeriodUnit |
string |
否 |
续费时长单位。取值范围:
默认值:Month。 |
Month |
| ClientToken |
string |
否 |
保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持 ASCII 字符,且不能超过 64 个字符。更多详情,请参见如何保证幂等性。 |
123e4567-e89b-12d3-a456-426655440000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
2A4EA075-CB5B-41B7-B0EB-70D339F6**** |
| OrderId |
string |
订单 ID。 |
23841229**** |
示例
正常返回示例
JSON格式
{
"RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****",
"OrderId": "23841229****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IdempotenceParamNotMatch | Request uses a client token in a previous request but is not identical to that request. | 与相同 ClientToken 的请求参数不符合。 |
| 400 | InvalidClientToken.ValueNotSupported | The ClientToken provided is invalid. | 指定的 ClientToken 不合法。 |
| 400 | InvalidPeriod | The specified period is not valid. | 指定的时段不合法。 |
| 400 | InvalidPeriodUnit.ValueNotSupported | The specified parameter PeriodUnit is not valid. | 参数 PeriodUnit 无效。 |
| 400 | ChargeTypeViolation | Pay-As-You-Go dedicated host do not support this operation. | |
| 400 | InvalidDedicatedHostId.NotFound | The specified DedicatedHostId does not exist. | 指定的专有宿主机不存在。 |
| 400 | InvalidStatus.Upgrading | The dedicated host is upgrading, please try it later. | 指定的专有宿主机正在升级,请稍后操作。 |
| 400 | LastOrderProcessing | The previous order is still processing, please try again later. | 订单正在处理中,稍后重试。 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | ChargeTypeViolation | Pay-As-You-Go dedicated host do not support this operation. | |
| 403 | IncorrectHostStatus | The current status of the resource does not support this operation. | 当前资源的状态不支持此操作。 |
| 403 | LastTokenProcessing | The last token request is processing. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。