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
4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 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 | |