This article introduces how to expand a data disk when calling this interface, and focuses on the specific steps. The content of this article is compact, and I hope everyone can gain something.
ResizeDisk
Description
When calling this interface, you need to pay attention to:
This interface is temporary Only data disk expansion is supported, and system disk expansion is not supported.
Only data disks whose expansion disk types are ordinary cloud disks (Cloud), efficient cloud disks (Cloud_efficiency) and SSD cloud disks (Cloud_ssd) are supported.
When the disk is creating a snapshot, expansion is not allowed.
For the mounted data disk:
The status of the instance to which the disk is mounted must be Running or Stopped.
After expansion, you need to restart the instance in the console or call API RebootInstance for the operation to take effect.
During expansion, the disk partition and file system will not be modified. You need to allocate storage space yourself after expansion.
Request parameters
##Return parameters
are all public return parameters. See Public ParametersExample
Request Example
https://ecs.aliyuncs.com/?Action=ResizeDisk &DiskId=xxx &NewSize=1024 &<公共请求参数>
Return Example
XML format
<ResizeDiskResponse> <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId> </ResizeDiskResponse>
JSON format
{ "RequestId": "F3CD6886-D8D0-4FEE-B93E-1B73239673DE" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to expand a data disk when calling this interface. For more information, please follow other related articles on the PHP Chinese website!