Reset Snapshot Attribute operation for the Amazon EC2 REST adapter
The Reset Snapshot Attribute operation resets the permission settings for a specified snapshot.
The following figure shows a sample <items>
XML element for the Reset Snapshot Attribute operation.
Sample <items>
XML element for the Reset Snapshot Attribute operation
<items>
<item>
<parameters>
<snapshot-id></snapshot-id>
<create-volume-permission/>
</parameters>
</item>
</items>
The following table shows adapter request elements for the Reset Snapshot Attribute operation.
Adapter request elements for the Reset Snapshot Attribute 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: reset-snapshot-attribute | Yes |
| Specifies the ID of the Amazon EBS snapshot that you want to reset | Yes |
| Specifies the parameter that you want to reset for the specified snapshot | Yes |
<create-volume-permission> | Resets the create volume permission for the snapshot | Yes |
The following figure shows a sample adapter request for the Reset Snapshot Attribute operation.
Sample adapter request for the Reset Snapshot Attribute operation
<amazon-ec2-rest-request>
<operation-name>reset-snapshot-attribute</operation-name>
<parameters>
<snapshot-id>snap-99cf03a8</snapshot-id>
<create-volume-permission />
</parameters>
</amazon-ec2-rest-request>
The following figure shows a sample adapter response for the Reset Snapshot Attribute operation.
Sample adapter response for the Reset Snapshot Attribute operation
<amazon-ec2-rest-response>
<metadata>
<status>success</status>
</metadata>
<ResetSnapshotAttributeResponse>
<return>true</return>
</ResetSnapshotAttributeResponse>
</amazon-ec2-rest-response>
Comments
Log in or register to comment.