Modifies information about an elasticity assurance, including the name, description, and capacity. Only capacity scale-in is supported .
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:ModifyElasticityAssurance | update | *All Resources * |
| 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 | string | Yes | The ID of the elasticity assurance. | eap-bp67acfmxazb4**** |
PrivatePoolOptions.Name | string | No | The name of the elasticity assurance. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain digits, colons (:), underscores (_), and hyphens (-). | eapTestName |
Description | string | No | The description of the elasticity assurance. The description must be 2 to 256 characters in length and cannot start with | This is description. |
InstanceAmount | integer | No | The total number of instances to reserve for the elasticity assurance. Valid values: Number of created instances to 1000. This parameter cannot be changed at the same time with other parameters.----This parameter is exclusive with other parameters in the same request. ? Note
Capacity scale-in, not capacity scale-out, is supported.
Note
This parameter is in invitational preview and is not publicly available.
| 10 |
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 token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. | 123e4567-e89b-12d3-a456-426655440000 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidInstanceAmount.ValueNotSupported | The specified parameter InstanceAmount is not valid. | The specified parameter InstanceAmount is invalid. |
400 | InvalidDescription.ValueNotSupported | The specified Description is invalid. | - |
400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | - |
400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | - |
400 | InvalidParameter.PrivatePoolOptions.Name | The parameter PrivatePoolOptions.Name is invalid. | The specified parameter PrivatePoolOptions.Name is invalid. |
400 | InvalidParameter.ClientToken | The parameter ClientToken is invalid. | The specified parameter ClientToken is invalid. |
400 | InvalidParameter.Description | The parameter Description is invalid. | The specified parameter Description is invalid. |
401 | InvalidUser.Unauthorized | The user is not authorized. | The account you are currently using does not have permission. |
403 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | The specified private pool state does not support the operation. |
403 | OperationDenied.NoStock | The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. | The requested resources are insufficient. |
403 | InvalidPrivatePoolOptionsName.ValueNotSupported | The specified PrivatePoolOptions.Name is invalid. | - |
403 | InvalidPlatform.ValueNotSupported | The specified Platform is invalid. | - |
403 | OperationDenied.PlatformNotSupported | The specified private pool does not support this operation. | - |
403 | OperationDenied.EndTimeTypeNotSupported | The specified private pool does not support this operation. | - |
403 | OperationDenied.StartTimeNotSupported | The specified private pool does not support this operation. | - |
403 | OperationDenied.InstanceAmountNotSupported | The specified private pool does not support this operation. | - |
403 | InvalidInstanceAmount.ValueNotSupported | The specified InstanceAmount is invalid. | - |
403 | InvalidPrivatePoolOptions.Id | The specified private pool does not support this operation. | - |
403 | InvalidPrivatePoolOptions.Id | The specified PrivatePoolOptions.Id is invalid. | The specified private pool is invalid |
403 | InvalidInstanceAmount.LessThanUsedAmount | The specified parameter InstanceAmount is less than UsedAmount. | The specified parameter InstanceAmount is less than the used capacity. |
403 | InvalidOperation.InstanceAmountAndOtherAttributesUnsupported | Modify InstanceAmount and other attributes simultaneously is not supported. | Cannot modify InstanceAmount and other properties simultaneously. |
404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-27 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-12-06 | The Error code has changed | View Change Details |