RenewDedicatedHosts - 续费一台或者多台包年包月专有宿主机

更新时间:2025-03-25 04:04:54

续费一台或者多台包年包月的专有宿主机。

接口说明

续费付款时,优先使用可抵扣的代金券,且您的账号必须支持账号余额支付或信用支付。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
名称类型必填描述示例值
DedicatedHostIdsstring

专有宿主机的编号列表。最多可以输入 100 个预付费专有宿主机 ID。多个专有宿主机 ID 用一个格式类似["dh-xxxxxxxxx", "dh-yyyyyyyyy", … "dh-zzzzzzzzz"]的 JSON 数组表示,ID 之间用半角逗号(,)隔开。

dh-bp199lyny9b3****
RegionIdstring

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

cn-hangzhou
Periodinteger

续费周期。取值范围:

  • PeriodUnit=Week 时:1、2、3、4。
  • PeriodUnit=Month 时:1、2、3、4、5、6、7、8、9、12、24、36、48、60。
  • PeriodUnit=Year 时:1、2、3、4、5。
1
PeriodUnitstring

续费时长单位。取值范围:

  • Week
  • Month
  • Year

默认值:Month。

Month
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持 ASCII 字符,且不能超过 64 个字符。更多详情,请参见如何保证幂等性

123e4567-e89b-12d3-a456-426655440000

返回参数

名称类型描述示例值
名称类型描述示例值
object
RequestIdstring

请求 ID。

2A4EA075-CB5B-41B7-B0EB-70D339F6****
OrderIdstring

订单 ID。

23841229****

示例

正常返回示例

JSON格式

{
  "RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****",
  "OrderId": "23841229****"
}

错误码

HTTP status code错误码错误信息描述
HTTP status code错误码错误信息描述
400IdempotenceParamNotMatchRequest uses a client token in a previous request but is not identical to that request.与相同 ClientToken 的请求参数不符合。
400InvalidClientToken.ValueNotSupportedThe ClientToken provided is invalid.指定的 ClientToken 不合法。
400InvalidPeriodThe specified period is not valid.指定的时段不合法。
400InvalidPeriodUnit.ValueNotSupportedThe specified parameter PeriodUnit is not valid.参数 PeriodUnit 无效。
400ChargeTypeViolationPay-As-You-Go dedicated host do not support this operation.-
400InvalidDedicatedHostId.NotFoundThe specified DedicatedHostId does not exist.指定的专有宿主机不存在。
400InvalidStatus.UpgradingThe dedicated host is upgrading, please try it later.指定的专有宿主机正在升级,请稍后操作。
400LastOrderProcessingThe previous order is still processing, please try again later.订单正在处理中,稍后重试。
403IncorrectHostStatusThe current status of the resource does not support this operation.当前资源的状态不支持此操作。
403LastTokenProcessingThe last token request is processing.正在处理上一条令牌请求,请您稍后再试。
500InternalErrorThe request processing has failed due to some unknown error.内部错误,请重试。

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

变更历史

变更时间变更内容概要操作
变更时间变更内容概要操作
2025-02-24OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更查看变更详情
2025-01-21OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情
  • 本页导读 (1)
  • 接口说明
  • 调试
  • 授权信息
  • 请求参数
  • 返回参数
  • 示例
  • 错误码
  • 变更历史