Home >Operation and Maintenance >Linux Operation and Maintenance >How to unmount a pay-as-you-go disk from an instance
The content of this article is about how to uninstall a pay-as-you-go disk from an instance. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
DetachDisk
Detach a pay-as-you-go disk from an instance. Disk types include ordinary cloud disks, high-efficiency cloud disks and SSD cloud disks.
Description
When you use this interface, please note:
The Portable attribute of the cloud disk must be True.
The cloud disk must have been mounted to the instance and the status is In_Use.
The status of the instance mounted on the cloud disk must be Running or Stopped.
After the instance mounted on the cloud disk is under security control, the lock status cannot be marked as "LockReason": "security" in OperationLocks.
After the disk is unmounted, its attribute DeleteWithInstance will be set to False, which means that when the instance is released, the cloud disk will be retained and will not be released together with the instance.
This interface is an asynchronous operation. After calling the interface successfully, you need to wait for a while to complete the uninstallation, which is expected to take about 1 minute.
Request parameters
##Return parameters
are all public return parameters. See Public ParametersExample
Request Example
https://ecs.aliyuncs.com/?Action=DetachDisk &InstanceId=i-23jggx34b &DiskId=d-23jbf2v5m &<公共请求参数>
Return Example
XML format
<DetachDiskResponse> <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId> </DetachDiskResponse>
JSON format
{ "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E" }
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 unmount a pay-as-you-go disk from an instance. For more information, please follow other related articles on the PHP Chinese website!