describe_snapshots
async
¶
describe_snapshots(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
replication_group_id: Optional[String] = None,
cache_cluster_id: Optional[String] = None,
snapshot_name: Optional[String] = None,
snapshot_source: Optional[String] = None,
marker: Optional[String] = None,
max_records: Optional[IntegerOptional] = None,
show_node_group_config: Optional[BooleanOptional] = None,
) -> DescribeSnapshotsListMessage
Returns information about cluster or replication group snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cache cluster.
This operation is valid for Valkey or Redis OSS only.
Parameters:
-
replication_group_id(Optional[String], default:None) –A user-supplied replication group identifier. If this parameter is specified, only snapshots associated with that specific replication group are described.
-
cache_cluster_id(Optional[String], default:None) –A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cluster are described.
-
snapshot_name(Optional[String], default:None) –A user-supplied name of the snapshot. If this parameter is specified, only this snapshot are described.
-
snapshot_source(Optional[String], default:None) –If set to
system, the output shows snapshots that were automatically created by ElastiCache. If set touserthe output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots. -
marker(Optional[String], default:None) –An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords. -
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, a marker is included in the response so that the remaining results can be retrieved.Default: 50
Constraints: minimum 20; maximum 50.
-
show_node_group_config(Optional[BooleanOptional], default:None) –A Boolean value which if true, the node group (shard) configuration is included in the snapshot description.
Raises:
-
CacheClusterNotFoundFault–The requested cluster ID does not refer to an existing cluster.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
SnapshotNotFoundFault–The requested snapshot name does not refer to an existing snapshot.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DescribeSnapshots Returns information about the snapshot mysnapshot. By default.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 | |