Delete Snapshot Group

DELETE/zstack/v1/volume-snapshots/group/{uuid}?deleteMode={deleteMode}

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/volume-snapshots/group/f7b2175eebba3161b029689cb32f9b14?deleteMode=Permissive

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the resource. Uniquely identifies the resource 3.6.0
deleteMode (optional)Stringbody  3.6.0
systemTags (optional)Listbody  3.6.0
userTags (optional)Listbody  3.6.0

API Response

Response Example

{
  "results": [
    {
      "success": false,
      "error": {
        "code": "SYS.1001",
        "description": "internal error"
      }
    }
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error3.6.0
resultsListFor details, see results3.6.0

error

NameTypeDescriptionStarting Version
codeStringError code number. A globally unique identifier for the error, for example, SYS.1000, HOST.10013.6.0
descriptionStringBrief description of the error3.6.0
detailsStringDetailed information about the error3.6.0
elaborationStringReserved field. Default is null3.6.0
opaqueLinkedHashMapReserved field. Default is null3.6.0
causeErrorCodeRoot error. The source error that caused the current error. This field is null if no root error exists3.6.0

results

NameTypeDescriptionStarting Version
snapshotUuidStringSnapshot UUID3.6.0
volumeUuidStringDisk UUID3.6.0
successboolean 3.6.0
errorErrorCodeFor details, see error3.6.0

error

NameTypeDescriptionStarting Version
codeStringError code number. A globally unique identifier for the error, for example, SYS.1000, HOST.10013.6.0
descriptionStringBrief description of the error3.6.0
detailsStringDetailed information about the error3.6.0
elaborationStringReserved field. Default is null3.6.0
opaqueLinkedHashMapReserved field. Default is null3.6.0
causeErrorCodeRoot error. The source error that caused the current error. This field is null if no root error exists3.6.0

SDK Examples

Java SDK

DeleteVolumeSnapshotGroupAction action = new DeleteVolumeSnapshotGroupAction();
action.uuid = "f7b2175eebba3161b029689cb32f9b14";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DeleteVolumeSnapshotGroupAction.Result res = action.call();

Python SDK

DeleteVolumeSnapshotGroupAction action = DeleteVolumeSnapshotGroupAction()
action.uuid = "f7b2175eebba3161b029689cb32f9b14"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DeleteVolumeSnapshotGroupAction.Result res = action.call()