Renews one or more elasticity assurances that you purchased. When you call this operation, you can specify parameters, such as PrivatePoolOptionsId and Period, in the request.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ecs:RenewElasticityAssurances | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the elasticity assurance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
PrivatePoolOptions.Id | array | Yes | The IDs of elasticity assurances. Limits: You can renew up to 20 elasticity assurances at a time. You can call the DescribeElasticityAssurances operation to query the elasticity assurances that you purchased. | |
string | Yes | The ID of the elasticity assurance. | eap-bp67acfmxazb4**** | |
Period | integer | No | The renewal duration. The unit of the renewal duration is determined by the
Default value: 1. | 1 |
PeriodUnit | string | No | The unit of the renewal duration. Valid values:
Default value: Year. | Year |
AutoPay | boolean | No | Specifies whether to enable automatic payment. Valid values:
Default value: true. | true |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The | 123e4567-e89b-12d3-a456-426655440000 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"OrderId": "182372800****",
"PrivatePoolOptionsIdSet": {
"PrivatePoolOptionsId": [
"eap-bp67acfmxazb4****"
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidPeriodUnit.ValueNotSupported | The specified parameter PeriodUnit is not valid. | The specified PeriodUnit parameter is invalid. |
400 | InvalidChargeType.ValueNotSupported | ChargeType is not valid. | This billing method is not supported. Select another billing method. |
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. | The specified ResourceOwnerAccount parameter is invalid. |
403 | Account.Arrearage | Your account has been in arrears. | Your account does not have enough balance. Please add funds to your account. |
403 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | The operation is not supported while the instance is using the current billing method. |
500 | InternalError | The request processing has failed due to some unknown error. | An internal error has occurred. Try again later. |
500 | InternalError | %s | An internal error has occurred. |
500 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | The specified private pool state does not support the operation. |
500 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. | - |
For a list of error codes, visit the Service error codes.