Scales out volumes on a specified elastic container instance.

Description

You can call this operation only to scale out volumes, not to scale in volumes. You can scale out only volumes of the Alibaba Cloud disk type. Volumes of other types cannot be scaled out.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ResizeContainerGroupVolume

The operation that you want to perform. Set the value to ResizeContainerGroupVolume.

RegionId String Yes cn-hangzhou

The region ID of the elastic container instance.

ContainerGroupId String Yes eci-2zelg8vwnlzdhf8hv****

The ID of the elastic container instance for which you want to scale out the volume.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure the idempotence of a request.

VolumeName String Yes default-volume1

The name of the volume. Only volumes of Alibaba Cloud disk type can be scaled out.

NewSize Long Yes 100

The size of the disk after the scale-out activity is complete. Unit: GiB. Valid values:

  • 20 to 32768 for ultra disks (cloud_efficiency)
  • 20 to 32768 for standard SSD (cloud_ssd)
  • 20 to 32768 for enhanced SSD (cloud_essd)
  • 5 to 2000 for basic disk (cloud)
Note The size of the disk after the scale-out activity is complete must be greater than the size of the disk before the scale-out activity is complete. If the size that you specify for the disk after the scale-out activity is complete is equal to the size of the disk before the scale-out activity is complete, only the file system is scaled out.

Response parameters

Parameter Type Example Description
RequestId String 89945DD3-9072-47D0-A318-353284CFC7B3

The ID of the request.

Examples

Sample requests

https://eci.aliyuncs.com/?Action=ResizeContainerGroupVolume
&ContainerGroupId=eci-2zelg8vwnlzdhf8hv****
&NewSize=100
&RegionId=cn-hangzhou
&VolumeName=default-volume1
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ResizeContainerGroupVolumeResponse>
    <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>
</ResizeContainerGroupVolumeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "89945DD3-9072-47D0-A318-353284CFC7B3"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidParameter %s The error message returned because a specified parameter is invalid.

For a list of error codes, visit the API Error Center.