describe_cache_clusters
async
¶
describe_cache_clusters(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
cache_cluster_id: Optional[String] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
show_cache_node_info: Optional[BooleanOptional] = None,
show_cache_clusters_not_in_replication_groups: Optional[BooleanOptional] = None,
) -> CacheClusterMessage
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cache cluster if a cluster identifier is supplied.
By default, abbreviated information about the clusters is returned. You can use the optional ShowCacheNodeInfo flag to retrieve detailed information about the cache nodes associated with the clusters. These details include the DNS address and port for the cache node endpoint.
If the cluster is in the creating state, only cluster-level information is displayed until all of the nodes are successfully provisioned.
If the cluster is in the deleting state, only cluster-level information is displayed.
If cache nodes are currently being added to the cluster, node endpoint information and creation time for the additional nodes are not displayed until they are completely provisioned. When the cluster state is available, the cluster is ready for use.
If cache nodes are currently being removed from the cluster, no endpoint information for the removed nodes is displayed.
Parameters:
-
cache_cluster_id(Optional[String], default:None) –The user-supplied cluster identifier. If this parameter is specified, only information about that specific cluster is returned. This parameter isn't case sensitive.
-
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: 100
Constraints: minimum 20; maximum 100.
-
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. -
show_cache_node_info(Optional[BooleanOptional], default:None) –An optional flag that can be included in the
DescribeCacheClusterrequest to retrieve information about the individual cache nodes. -
show_cache_clusters_not_in_replication_groups(Optional[BooleanOptional], default:None) –An optional flag that can be included in the
DescribeCacheClusterrequest to show only nodes (API/CLI: clusters) that are not members of a replication group. In practice, this means Memcached and single node Valkey or Redis OSS clusters.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
DescribeCacheClusters Lists the details for the cache cluster my-mem-cluster.
>>> await client.describe_cache_clusters(cache_cluster_id='my-mem-cluster', show_cache_node_info=True)
DescribeCacheClusters
Lists the details for up to 50 cache clusters.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 | |