Delete Snapshot operation for the Amazon EC2 REST adapter
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
<items>
<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 |
---|---|---|
<access-key> | Specifies the Amazon Web Services (AWS) access key You need to generate the AWS access key by going to the Security Credentials tab in the AWS console. | Conditional;
|
<secret-key> | Specifies the AWS secret access key You need to generate the AWS secret access key by going to the Security Credentials tab in the AWS console. | Conditional;
|
<region> | Specifies the region with which you want the adapter to communicate Amazon EC2 is hosted in multiple locations world-wide. You must specify the region in which you want the adapter to perform the actions. Valid values:
| No |
| Contains the name of the operation: delete-snapshot | Yes |
| 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
<amazon-ec2-rest-request>
<operation-name>delete-snapshot</operation-name>
<parameters>
<snapshot-id>snap-90b309ae</snapshot-id>
</parameters>
</amazon-ec2-rest-request>
The following figure shows a sample adapter response for the Delete Snapshot operation.
Sample adapter response for the Delete Snapshot operation
<amazon-ec2-rest-response>
<metadata>
<status>success</status>
</metadata>
<DeleteSnapshotResponse>
<return>true</return>
</DeleteSnapshotResponse>
</amazon-ec2-rest-response>
Comments
Log in or register to comment.