Modifies the name and description of an elasticity assurance.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | ModifyElasticityAssurance | The operation that you want to perform. Set the value to ModifyElasticityAssurance. |
RegionId | String | Yes | cn-hangzhou | The region ID of the elasticity assurance. You can call the DescribeRegions operation to query the most recent region list. |
PrivatePoolOptions.Id | String | Yes | eap-bp67acfmxazb4**** | The elasticity assurance ID. |
PrivatePoolOptions.Name | String | No | eapTestName | 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 (-). |
Description | String | No | This is description. | The description of the elasticity assurance. The description must be 2 to 256 characters in length and cannot start with |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 8455DD10-84F8-43C9-8365-5F448EB169B6 | The ID of the request. |
Examples
Sample requests
https://ecs.aliyuncs.com/?Action=ModifyElasticityAssurance
&PrivatePoolOptions.Id=eap-bp67acfmxazb4****
&RegionId=cn-hangzhou
&PrivatePoolOptions.Name=eapTestName
&Description=This is description.
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyElasticityAssuranceResponse>
<RequestId>8455DD10-84F8-43C9-8365-5F448EB169B6</RequestId>
</ModifyElasticityAssuranceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
Error codes
HTTP status code |
Error code |
Error message |
Description |
401 | InvalidUser.Unauthorized | The user is not authorized | You are not authorized to perform this operation. |
403 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | This operation cannot be performed on the private pool in the current state. |
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 unavailable in the specified zone. Try another instance type or zone. You can call the DescribeZones operation to query available resources. |
For a list of error codes, see Service error codes.