Delete Snapshot operation
The Delete Snapshot operation enables you to delete a snapshot of an Amazon EBS snapshot that you own.
The following figure shows a sample <items> XML element for the Delete Snapshot operation.
Sample <items> XML element for the Delete Snapshot operation
<item>
<parameters>
<snapshot-id></snapshot-id>
</parameters>
</item>
</items>
The following table shows adapter request elements for the Delete Snapshot operation.
Adapter request elements for the Delete Snapshot operation
Element | Definition | Required |
---|---|---|
<wsdl-location> | Specifies the target Web Service Description Language (WSDL) URL for Amazon EC2 | Conditional:
|
<endpoint-address> | Specifies the web service endpoint for the adapter to use while performing operations on Amazon EC2 instances across different regions | No |
<signature-properties> | Specifies the mode for signing the adapter request | Conditional:
|
<operation-name> | Contains the name of the operation: delete-snapshot | Yes |
<snapshot-id> | Specifies the ID of the Amazon EBS snapshot that you want to delete | Yes |
The following figure shows a sample adapter request for the Delete Snapshot operation.
Sample adapter request for the Delete Snapshot operation
<wsdl-location>http://ec2.amazonaws.com/doc/2009-11-30/</wsdl-location>
<endpoint-address>http://us-east-1.ec2.amazonaws.com/</endpoint-address>
<signature-properties mode = "key-files">
<private-key-file>C:\Security\
pk-MJ5GIUNLM2XJ3VRJSYTKOFDWILELDQHB.PEM</private-key-file>
<certificate-file>C:\Security\
cert-MJ5GIUNLM2XJ3VRJSYTKOFDWILELDQHB.PEM</certificate-file>
</signature-properties>
<operation-name>delete-snapshot</operation-name>
<parameters>
<snapshot-id>snap-62a6700a</snapshot-id>
</parameters>
</amazon-ec2-request>
The following figure shows a sample adapter response for the Delete Snapshot operation.
Sample adapter response for the Delete Snapshot operation
<metadata>
<status>success</status>
</metadata>
<DeleteSnapshotResponse>
<requestId>10a0ed9e-61dc-46e4-8e55-d812d641f62c</requestId>
<return>true</return>
</DeleteSnapshotResponse>
</amazon-ec2-response>