describe_snapshots
¶
describe_snapshots(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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/elasti_cache.py
4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 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 | |