Home  >  Article  >  Operation and Maintenance  >  How to reinitialize a cloud disk to its initial state when created

How to reinitialize a cloud disk to its initial state when created

坏嘻嘻
坏嘻嘻Original
2018-09-21 14:11:273576browse

This article introduces how to re-initialize the cloud disk to the initial state when it was created, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.

ReInitDisk

Description

When calling this interface, you need to pay attention to:

Cloud disk The status must be In_use, and the status of the mounted ECS instance must be Stopped.

Before the instance is started for the first time, the cloud disk mounted on it cannot be reinitialized.

For the system disk, initialize it to the initial state of the image. If the source image used to create the cloud disk is deleted, it cannot be initialized.

For directly created data disks, initialize them to an empty disk state.

For data disks created through snapshots, initialize them to the snapshot state. If the source snapshot has been deleted, it cannot be initialized and an error is returned.

Request parameters

How to reinitialize a cloud disk to its initial state when created

##Return parameters

are all public return parameters. See Public Parameters

Example

Request Example

https://ecs.aliyuncs.com/?Action=ReInitDisk
&DiskId=d-23jbf2v5m
&<公共请求参数>

Return Example

XML format

<ReInitDiskResponse>
    <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
</ReInitDiskResponse>

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.

How to reinitialize a cloud disk to its initial state when created

How to reinitialize a cloud disk to its initial state when created

The above is the detailed content of How to reinitialize a cloud disk to its initial state when created. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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