Skip to main content

DeleteSnapshot

Description

call DeleteSnapshot to delete the specified snapshot. If you need to cancel the snapshot being created, you can also call this operation to delete the snapshot, that is, cancel the snapshot creation task.

Request Method

POST

Request Path

/apsara/route/Ecs/DeleteSnapshot

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
SnapshotIdBODYstringYess-bp1btgnlb4licd41****snapshot ID.
ForceBODYbooleanNofalseWhether to forcibly delete snapshots associated with disks. description the disk cannot be reinitialized after deletion.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}