Home >Operation and Maintenance >Linux Operation and Maintenance >How to cancel the snapshot being created - call this interface to delete the snapshot
The content of this article is about how to cancel the snapshot being created. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
DeleteSnapshot
Delete the specified snapshot. If you need to cancel the snapshot being created, you can also call this interface to delete the snapshot, that is, cancel the snapshot creation task.
Description
When calling this interface, you need to pay attention:
If the specified snapshot ID does not exist, the request will be ignored.
If the snapshot has been used to create a custom image, the snapshot cannot be deleted. You need to delete the created custom image (DeleteImage) before you can continue to delete snapshots.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=DeleteSnapshot &SnapshotId=s-923FE2BF0 &<公共请求参数>
Return example
XML format
<DeleteSnapshotResponse> <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId> </DeleteSnapshotResponse>
JSON format
{ "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to cancel the snapshot being created - call this interface to delete the snapshot. For more information, please follow other related articles on the PHP Chinese website!