Aliyun How to use the expansion disk interface

Source: Internet
Author: User
Tags error code file system aliyun

  Expansion disk

Describe

Currently only supports the expansion operation on the data disk.

Only the data disk type is ordinary cloud disk, efficient cloud disk, SSD cloud disk, can enlarge operation.

A data disk mounted on an instance that can be expanded only if the instance is Running or Stopped state.

If you are performing a snapshot operation on the disk, the expansion operation is not allowed at this time.

Disks that are mounted on the instance need to be restarted at the console or using the Open API to enable expansion to take effect after the expansion operation.

Expansion to do only the expansion of disk capacity, do not do zoning and file system expansion, after the completion of the expansion, users also need to manually allocate storage space.

Request parameters

name type whether you must Description
Action String Is System specified parameters, values: Resizedisk
DiskId String Is Number of the disk
NewSize Integer Is The size of the disk that you want to enlarge.
In GB, the value range is
Cloud:5 ~ 2000
Clienttoken String Whether Used to guarantee the power of the request. This parameter value is generated by the client to ensure that it is unique between requests and that the maximum is not worth 64 ASCII characters.

return parameters

All public return parameters, as detailed in the public return parameters

Error code

Error code Description Http Status Code Semantics
Invaliddisksize.toosmall Specified new disk size is less than the original disk size 403 The specified new disk capacity is smaller than the original disk capacity
Invalidparameter The specified parameter "newsize" is not valid. 403 The specified new disk capacity is out of bounds
Operationdenied The status of the disk or the instance that this disk is attaching with does not support the operation 403 The status of the instance on which the disk or disk is mounted does not support expansion
Operationdenied The type of the disk does not support the operation 403 Disk type does not support expansion
Invaliddiskid.notfound The specified disk does not exist. 404 Disk does not exist
Invalidinstanceid.notfound The specified instance does not exist. 404 The instance on which the disk is mounted does not exist
Instanceexpiredorinarrears The specified operation is denied as your prepay instance are expired (prepay mode) or in arrears (Afterpay mode). 403 Instance of disk Mount expired

Example

Request sample

Https://ecs.aliyuncs.com/?Action=ResizeDisk

&diskid=xxx

&newsize=1024

&< Public Request Parameters >

Return sample

' XML ' format

  

F3cd6886-d8d0-4fee-b93e-1b73239673de

  

' JSON ' format

{

"RequestID": "F3cd6886-d8d0-4fee-b93e-1b73239673de"

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.