Delete volume¶
Delete the specified root volume. Before deleting, confirm that the files and references in the volume have been processed.
HTTP
POST $CLOUDSIGMA_API_BASE/catalog/volume/delete
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the object in the database to obtain the volume ID. Prepare the personal access token, target workspace ID, and volume ID that can access the target workspace.
Request body¶
Shell
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/volume/delete" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"id": '"$VOLUME_ID"'
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
The ID of the root volume to delete. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
|
Error response¶
JSON
{
"code": "ErrServer",
"msg": "服务器内部错误"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |
Last updated on