AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Returns one or more snapshot objects, which contain metadata about your cluster snapshots. By default, this operation returns information about all snapshots of all clusters that are owned by your Amazon Web Services account. No information is returned for snapshots owned by inactive Amazon Web Services accounts.
If you specify both tag keys and tag values in the same request, Amazon Redshift returns
all snapshots that match any combination of the specified keys and values. For example,
if you have owner
and environment
for tag keys, and admin
and
test
for tag values, all snapshots that have any combination of those values
are returned. Only snapshots that you own are returned in the response; shared snapshots
are not returned with the tag key and tag value request parameters.
If both tag keys and values are omitted from the request, snapshots are returned regardless of whether they have tag keys or values associated with them.
For .NET Core this operation is only available in asynchronous form. Please refer to DescribeClusterSnapshotsAsync.
Namespace: Amazon.Redshift
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z
public abstract DescribeClusterSnapshotsResponse DescribeClusterSnapshots( DescribeClusterSnapshotsRequest request )
Container for the necessary parameters to execute the DescribeClusterSnapshots service method.
Exception | Condition |
---|---|
ClusterNotFoundException | The ClusterIdentifier parameter does not refer to an existing cluster. |
ClusterSnapshotNotFoundException | The snapshot identifier does not refer to an existing cluster snapshot. |
InvalidTagException | The tag is invalid. |
UnsupportedOperationException | The requested operation isn't supported. |
This example returns a description of all cluster snapshots for the account.
var client = new AmazonRedshiftClient(); var response = client.DescribeClusterSnapshots(new DescribeClusterSnapshotsRequest { }); List<Snapshot> snapshots = response.Snapshots;
.NET Framework:
Supported in: 4.5, 4.0, 3.5