How to expand a data disk when calling this interface

坏嘻嘻
Release: 2018-09-21 14:25:41
Original
2400 people have browsed it

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

How to expand a data disk when calling this interface

##Return parameters

are all public return parameters. See Public Parameters

Example

Request Example

https://ecs.aliyuncs.com/?Action=ResizeDisk
&DiskId=xxx
&NewSize=1024
&<公共请求参数>
Copy after login

Return Example

XML format

<ResizeDiskResponse>
    <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
</ResizeDiskResponse>
Copy after login

JSON format

{
    "RequestId": "F3CD6886-D8D0-4FEE-B93E-1B73239673DE"
}
Copy after login

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to expand a data disk when calling this interface

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template