RenewElasticityAssurances - 续费弹性保障服务

更新时间:
复制 MD 格式

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

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

ecs:RenewElasticityAssurances

create

*ElasticityAssurance

acs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}

请求参数

名称

类型

必填

描述

示例值

RegionId

string

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

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

cn-hangzhou

Period

integer

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

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

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

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

默认值:1。

1

PeriodUnit

string

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

  • Weekly:周

  • Month:月

  • Year:年

默认值:Year。

Year

ClientToken

string

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

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

123e4567-e89b-12d3-a456-426655440000

AutoPay

boolean

是否自动支付。可能值:

  • true:是。

  • false:否。

默认值:true。

true

PrivatePoolOptions.Id

array

弹性保障服务 ID 列表。

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

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

string

弹性保障服务 ID。

eap-bp67acfmxazb4****

AutoRenew

boolean

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

  • true:自动续费。

  • false:不自动续费。

默认值:false。

true

AutoRenewPeriod

integer

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

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

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

说明

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

1

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

OrderId

string

续费订单 ID。

182372800****

PrivatePoolOptionsIdSet

object

PrivatePoolOptionsId

array

弹性保障服务 ID 列表。

string

弹性保障服务 ID。

eap-bp67acfmxazb4****

示例

正常返回示例

JSON格式

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

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidPeriodUnit.ValueNotSupported The specified parameter PeriodUnit is not valid. 参数 PeriodUnit 无效。
400 InvalidChargeType.ValueNotSupported ChargeType is not valid.
400 MissingParameter.PrivatePoolOptions.Id The specified parameter PrivatePoolOptions.Id does not exist. 指定参数PrivatePoolOptions.Id不存在
400 InvalidParameter.PeriodUnit The specified PeriodUnit is invalid. 指定的PeriodUnit无效
400 InvalidParameter.Period The specified parameter Period or PeriodUnit is invalid. 指定的PeriodPeriodUnit参数不符合要求。
400 InvalidParameter.PrivatePoolOptionsId The specified parameter PrivatePoolOptions.Id is invalid. 指定参数PrivatePoolOptions.Id无效
400 InvalidAutoRenewPeriod.ValueNotSupported The specified autoRenewPeriod is invalid. 指定的自动续费时长无效。
500 InternalError The request processing has failed due to some unknown error.
500 IncorrectPrivatePoolStatus The current status of the private pool does not support this operation.
500 InvalidPrivatePoolId.NotFound The specified private pool does not exist. 指定的私有池不存在
403 InvalidParameter.ResourceOwnerAccount ResourceOwnerAccount is Invalid. 指定的 ResourceOwnerAccount 不合法。
403 Account.Arrearage Your account has been in arrears.
403 ChargeTypeViolation The operation is not permitted due to charge type of the instance.
403 InvalidOperation.PackageTypeUnsupported Not support to renew this type of resource package. 该类型资源包不支持续费。
403 OperationDenied.UtilizationTooLow The utilization of this ElasticityAssurance is below 20%, renewal is not allowed. Please improve the utilization and try again.

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

变更历史

更多信息,参考变更详情