レプリケーショングループの詳細の表示 (AWS CLI) - Amazon ElastiCache (Redis OSS)

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

レプリケーショングループの詳細の表示 (AWS CLI)

AWS CLI describe-replication-groups コマンドを使用してレプリケーショングループの詳細を表示できます。一覧を絞り込むには、以下のオプションパラメータを使用します。パラメータを省略すると、最大 100 個のレプリケーショングループの詳細が返されます。

オプションのパラメータ
  • --replication-group-id – 特定のレプリケーショングループの詳細を表示するには、このパラメータを使用します。指定されたレプリケーショングループに複数のノードグループがある場合、結果はノードグループ別にグループ分けされて返されます。

  • --max-items – 表示されるレプリケーショングループの数を制限するには、このパラメータを使用します。--max-items の値は 20 未満、または 100 を超えることはできません。

次のコードは、最大 100 個のレプリケーショングループの詳細を表示します。

aws elasticache describe-replication-groups

次のコードは sample-repl-group の詳細を一覧します。

aws elasticache describe-replication-groups --replication-group-id sample-repl-group

次のコードは sample-repl-group の詳細を一覧します。

aws elasticache describe-replication-groups --replication-group-id sample-repl-group

次のコードリストは、最大 25 個のレプリケーショングループを示します。

aws elasticache describe-replication-groups --max-items 25

このオペレーションからの出力は以下のような JSON 形式になります。

{ "ReplicationGroups": [ { "Status": "available", "Description": "test", "NodeGroups": [ { "Status": "available", "NodeGroupMembers": [ { "CurrentRole": "primary", "PreferredAvailabilityZone": "us-west-2a", "CacheNodeId": "0001", "ReadEndpoint": { "Port": 6379, "Address": "rg-name-001.1abc4d.0001.usw2.cache.amazonaws.com" }, "CacheClusterId": "rg-name-001" }, { "CurrentRole": "replica", "PreferredAvailabilityZone": "us-west-2b", "CacheNodeId": "0001", "ReadEndpoint": { "Port": 6379, "Address": "rg-name-002.1abc4d.0001.usw2.cache.amazonaws.com" }, "CacheClusterId": "rg-name-002" }, { "CurrentRole": "replica", "PreferredAvailabilityZone": "us-west-2c", "CacheNodeId": "0001", "ReadEndpoint": { "Port": 6379, "Address": "rg-name-003.1abc4d.0001.usw2.cache.amazonaws.com" }, "CacheClusterId": "rg-name-003" } ], "NodeGroupId": "0001", "PrimaryEndpoint": { "Port": 6379, "Address": "rg-name.1abc4d.ng.0001.usw2.cache.amazonaws.com" } } ], "ReplicationGroupId": "rg-name", "AutomaticFailover": "enabled", "SnapshottingClusterId": "rg-name-002", "MemberClusters": [ "rg-name-001", "rg-name-002", "rg-name-003" ], "PendingModifiedValues": {} }, { ... some output omitted for brevity } ] }

詳細については、「AWS CLI for ElastiCache トピック describe-replication-groups」を参照してください。