Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.
Request ParametersThe following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
The snapshot attribute you would like to view.
Type: String
Valid Values: productCodes | createVolumePermission
Required: Yes
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Type: Boolean
Required: No
The ID of the EBS snapshot.
Type: String
Required: Yes
The following elements are returned by the service.
The users and groups that have the permissions for creating volumes from the snapshot.
Type: Array of CreateVolumePermission objects
The product codes.
Type: Array of ProductCode objects
The ID of the request.
Type: String
The ID of the EBS snapshot.
Type: String
For information about the errors that are common to all actions, see Common client error codes.
Examples ExampleThis example describes the create volume permissions for the specified snapshot.
Sample Requesthttps://ec2.amazonaws.com/?Action=DescribeSnapshotAttribute
&SnapshotId=snap-1234567890abcdef0
&Attribute=createVolumePermission
&AUTHPARAMS
Sample Response
<DescribeSnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<snapshotId>snap-1234567890abcdef0</snapshotId>
<createVolumePermission>
<item>
<group>all</group>
</item>
</createVolumePermission>
</DescribeSnapshotAttributeResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4