All Products
Search
Document Center

ENS:DeleteDisk

Last Updated:Mar 12, 2024

Deletes a disk.

Operation description

When you release a disk, the disk must be in the Available state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DiskIdstringYes

The ID of the disk.

d-5va95bg6i5f44kgkeuazyfcxm

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The returned service code. 0 indicates that the request was successful.

0
RequestIdstring

The request ID.

3ABEEB76-1976-55AB-B884-3D65CA6A4743

Examples

Sample success responses

JSONformat

{
  "Code": 0,
  "RequestId": "3ABEEB76-1976-55AB-B884-3D65CA6A4743"
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400ens.interface.errorFailed to call API.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history