帮助文档 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
帮助文档 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 云服务器 ECS
  4. 开发参考
  5. API参考(ECS)
  6. API目录
  7. 资源保障
  8. RenewElasticityAssurances - 续费弹性保障服务

RenewElasticityAssurances - 续费弹性保障服务

  • 资源保障
  • 发布于 2025-04-01
  • 0 次阅读
文档编辑
文档编辑

对一个或多个已购买的弹性保障服务进行续费。

调试

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

调试

授权信息

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

请求参数

名称类型必填描述示例值
RegionIdstring否

弹性保障服务所属地域 ID。

您可以调用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou
Periodinteger否

续费时长。时长单位由PeriodUnit参数确定。取值范围:

  • 当PeriodUnit参数值为Month时,该参数的取值:1、2、3、4、5、6、7、8、9。

  • 当PeriodUnit参数值为Year时,该参数的取值:1、2、3。

默认值:1。

1
PeriodUnitstring否

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

  • Month:月

  • Year:年

默认值:Year。

Year
ClientTokenstring否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。

ClientToken只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性。

123e4567-e89b-12d3-a456-426655440000
AutoPayboolean否

是否自动支付。可能值:

  • true:是。
  • false:否。

默认值:true。

true
PrivatePoolOptions.Idarray否

弹性保障服务 ID 列表。

限制:单次续费的弹性保障服务数量最多不超过 20 个。

您可以调用 DescribeElasticityAssurances 查看已购买的弹性保障服务。

string否

弹性保障服务 ID。

eap-bp67acfmxazb4****
AutoRenewboolean否

是否自动续费。取值范围:

  • true:自动续费。

  • false:不自动续费。

默认值:false。

true
AutoRenewPeriodinteger否

自动续费的时长,单位:月。取值范围:1、2、3、6、12、24、36。

  • 当PeriodUnit=Month时,默认值为 1;

  • 当PeriodUnit=Year时,默认值为 12。

说明 当参数AutoRenew取值为true时,该参数为必填。
1

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
OrderIdstring

续费订单 ID。

182372800****
PrivatePoolOptionsIdSetarray

弹性保障服务 ID 列表。

PrivatePoolOptionsIdstring

弹性保障服务 ID。

eap-bp67acfmxazb4****

示例

正常返回示例

JSON格式

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "OrderId": "182372800****",
  "PrivatePoolOptionsIdSet": {
    "PrivatePoolOptionsId": [
      "eap-bp67acfmxazb4****"
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
400InvalidPeriodUnit.ValueNotSupportedThe specified parameter PeriodUnit is not valid.参数 PeriodUnit 无效。
400InvalidChargeType.ValueNotSupportedChargeType is not valid.该计费方式不支持,请您重新选择计费方式。
400MissingParameter.PrivatePoolOptions.IdThe specified parameter PrivatePoolOptions.Id does not exist.指定参数PrivatePoolOptions.Id不存在
400InvalidParameter.PeriodUnitThe specified PeriodUnit is invalid.指定的PeriodUnit无效
400InvalidParameter.PeriodThe specified parameter Period or PeriodUnit is invalid.指定的Period或PeriodUnit参数不符合要求。
400InvalidParameter.PrivatePoolOptionsIdThe specified parameter PrivatePoolOptions.Id is invalid.指定参数PrivatePoolOptions.Id无效
400InvalidAutoRenewPeriod.ValueNotSupportedThe specified autoRenewPeriod is invalid.指定的自动续费时长无效。
403InvalidParameter.ResourceOwnerAccountResourceOwnerAccount is Invalid.指定的 ResourceOwnerAccount 不合法。
403Account.ArrearageYour account has been in arrears.账户余额不足,请先充值再操作。
403ChargeTypeViolationThe operation is not permitted due to charge type of the instance.付费方式不支持该操作,请您检查实例的付费类型是否与该操作冲突。
403InvalidOperation.PackageTypeUnsupportedNot support to renew this type of resource package.该类型资源包不支持续费。
500InternalErrorThe request processing has failed due to some unknown error.内部错误,请重试。
500InternalError%s内部错误。
500IncorrectPrivatePoolStatusThe current status of the private pool does not support this operation.参数中指定的私有池状态不支持当前操作
500InvalidPrivatePoolId.NotFoundThe specified private pool does not exist.指定的私有池不存在

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

变更历史

变更时间变更内容概要操作
2025-03-17OpenAPI 错误码发生变更查看变更详情
2025-02-19OpenAPI 错误码发生变更查看变更详情
2025-02-13OpenAPI 错误码发生变更、OpenAPI 入参发生变更查看变更详情
相关文章

CreateCapacityReservation - 创建容量预定服务 2025-04-01 11:58

指定需要预留的实例规格、总数量,生效方式和可用区等,创建容量预定服务。

CreateElasticityAssurance - 创建弹性保障服务 2025-04-01 11:58

通过指定弹性保障服务所属地域下的可用区、实例规格、购买时长、是否自动续费等参数创建弹性保障服务。

DescribeCapacityReservationInstances - 查询容量预定服务已匹配的实例列表 2025-04-01 11:58

查询容量预定服务已匹配的实例列表。

DescribeCapacityReservations - 查询容量预定服务的信息 2025-04-01 11:58

查询一个或多个容量预定服务的详细信息,例如服务的状态、服务的生效与失效时间、私有池的模式和已使用的实例的数量等。

DescribeElasticityAssuranceAutoRenewAttribute - 查询弹性保障服务自动续费 2025-04-01 11:58

查询一个或多个弹性保障服务的自动续费属性。

DescribeElasticityAssuranceInstances - 查询弹性保障服务已匹配实例列表 2025-04-01 11:58

调用DescribeElasticityAssuranceInstances查询弹性保障服务已匹配的运行状态的实例列表。

目录
Copyright © 2025 your company All Rights Reserved. Powered by 博智数字服务平台.
闽ICP备08105208号-1