TerminateDisk
1. API Description
This API is used to return a disk.
Note
When this API is called, the disk will be moved to the recycle bin and be released in 24 hours if there are no other operations.
Operations on boot disks are not supported.
2. Input Parameters
The following request parameter list only provides API request parameters.
diskId
Yes
String
Disk ID.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Return a disk.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_DISK_NOT_FOUND
Disk does not exist.
400
UNSUPPORTED_OPERATION_DISK_SYSTEM_TYPE
Operations on boot disks are not supported.
404
INVALID_ORDER_NOT_FOUND
Order does not exist.
400
UNSUPPORTED_OPERATION_DISK_BEING_RECYCLE
Operations on the disk in recycle bin are not supported.
400
UNSUPPORTED_OPERATION_DISK_STATUS
Operations on the disk with current status are not supported.
Last updated