调用RenewElasticityAssurances接口,并可以指定PrivatePoolOptionsId、Period等参数,对一个或多个已购买的弹性保障服务进行续费。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 弹性保障服务所属地域 ID。 您可以调用 DescribeRegions 查看最新的阿里云地域列表。 | cn-hangzhou |
PrivatePoolOptions.Id | array | 是 | ||
string | 是 | 弹性保障服务 ID。 | eap-bp67acfmxazb4**** | |
Period | integer | 否 | 续费时长。时长单位由
默认值:1。 | 1 |
PeriodUnit | string | 否 | 续费时长单位。取值范围:
默认值:Year。 | Year |
AutoPay | boolean | 否 | 是否自动支付。可能值:
默认值:true。 | true |
ClientToken | string | 否 | 保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。
| 123e4567-e89b-12d3-a456-426655440000 |
返回参数
示例
正常返回示例
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. | - |
400 | InvalidParameter.PeriodUnit | The specified PeriodUnit is invalid. | - |
400 | InvalidParameter.Period | The specified parameter Period or PeriodUnit is invalid. | - |
400 | InvalidParameter.PrivatePoolOptionsId | The specified parameter PrivatePoolOptions.Id is invalid. | - |
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. | 付费方式不支持该操作,请您检查实例的付费类型是否与该操作冲突。 |
500 | InternalError | The request processing has failed due to some unknown error. | 内部错误,请重试。 |
500 | InternalError | %s | 内部错误。 |
500 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | 参数中指定的私有池状态不支持当前操作 |
500 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. | - |
访问错误中心查看更多错误码。