パラメータグループを名前別に一覧表示する - Amazon ElastiCache フォー・レディス

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

パラメータグループを名前別に一覧表示する

ElastiCache コンソール、AWS CLI、または ElastiCache API を使用して、パラメータグループを一覧表示できます。

パラメータグループを名前別に一覧表示する (コンソール)

次の手順は、ElastiCache コンソールを使用してパラメータグループのリストを表示する方法を示します。

ElastiCache コンソールを使用してパラメータグループを一覧するには
  1. AWS Management Console にサインインして、ElastiCache コンソール (https://console.aws.amazon.com/elasticache/) を開きます。

  2. 使用可能なすべてのパラメータグループのリストを表示するには、左側のナビゲーションペインで [Parameter Groups] を選択します。

パラメータグループを名前別に一覧表示する (AWS CLI)

AWS CLI を使用してパラメータグループのリストを生成するには、describe-cache-parameter-groups コマンドを使用します。パラメータグループの名前を指定した場合は、そのパラメータグループのみが一覧表示されます。パラメータグループの名前を指定しない場合は、最大で --max-records のパラメータグループが一覧表示されます。いずれの場合も、パラメータグループの名前、ファミリー、および説明が表示されます。

次のサンプルコードは、パラメータグループ myRed28 のリストです。

Linux、macOS、Unix の場合:

aws elasticache describe-cache-parameter-groups \ --cache-parameter-group-name myRed28

Windows の場合:

aws elasticache describe-cache-parameter-groups ^ --cache-parameter-group-name myRed28

このコマンドの出力は、名前の一覧、ファミリー、パラメータグループの説明となります。

{ "CacheParameterGroups": [ { "CacheParameterGroupName": "myRed28", "CacheParameterGroupFamily": "redis2.8", "Description": "My first parameter group" } ] }

次のサンプルコードは、Redis エンジンバージョン 5.0.6 以降で実行されているパラメータグループのパラメータグループ myRed56 を示しています。パラメータグループがGlobal Datastore を使用した AWS リージョン間のレプリケーション の一部である場合、出力で返される IsGlobal プロパティ値は Yes になります。

Linux、macOS、Unix の場合:

aws elasticache describe-cache-parameter-groups \ --cache-parameter-group-name myRed56

Windows の場合:

aws elasticache describe-cache-parameter-groups ^ --cache-parameter-group-name myRed56

このコマンドの出力は、名前の一覧、ファミリー、isGlobal、パラメータグループの説明となります。

{ "CacheParameterGroups": [ { "CacheParameterGroupName": "myRed56", "CacheParameterGroupFamily": "redis5.0", "Description": "My first parameter group", "IsGlobal": "yes" } ] }

次のサンプルコードリストには、最大で 10 個のパラメータグループが一覧されています。

aws elasticache describe-cache-parameter-groups --max-records 10

このコマンドの JSON 出力は、名前、ファミリー、説明を一覧表示し、redis5.6 の場合は、パラメータグループが Global Datastore の一部である (isGlobal) かどうかを各パラメータグループについて表示します。

{ "CacheParameterGroups": [ { "CacheParameterGroupName": "custom-redis32", "CacheParameterGroupFamily": "redis3.2", "Description": "custom parameter group with reserved-memory > 0" }, { "CacheParameterGroupName": "default.memcached1.4", "CacheParameterGroupFamily": "memcached1.4", "Description": "Default parameter group for memcached1.4" }, { "CacheParameterGroupName": "default.redis2.6", "CacheParameterGroupFamily": "redis2.6", "Description": "Default parameter group for redis2.6" }, { "CacheParameterGroupName": "default.redis2.8", "CacheParameterGroupFamily": "redis2.8", "Description": "Default parameter group for redis2.8" }, { "CacheParameterGroupName": "default.redis3.2", "CacheParameterGroupFamily": "redis3.2", "Description": "Default parameter group for redis3.2" }, { "CacheParameterGroupName": "default.redis3.2.cluster.on", "CacheParameterGroupFamily": "redis3.2", "Description": "Customized default parameter group for redis3.2 with cluster mode on" }, { "CacheParameterGroupName": "default.redis5.6.cluster.on", "CacheParameterGroupFamily": "redis5.0", "Description": "Customized default parameter group for redis5.6 with cluster mode on", "isGlobal": "yes" }, ] }

詳細については、「describe-cache-parameter-groups」を参照してください。

パラメータグループを名前別に一覧表示する (ElastiCache API)

ElastiCache API を使用してパラメータグループのリストを生成するには、DescribeCacheParameterGroups アクションを使用します。パラメータグループの名前を指定した場合は、そのパラメータグループのみが一覧表示されます。パラメータグループの名前を指定しない場合は、最大で MaxRecords のパラメータグループが一覧表示されます。いずれの場合も、パラメータグループの名前、ファミリー、および説明が表示されます。

次のサンプルコードリストには、最大で 10 個のパラメータグループが一覧されています。

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheParameterGroups &MaxRecords=10 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &Version=2015-02-02 &X-Amz-Credential=<credential>

このアクションからの応答は、名前、ファミリー、説明を一覧表示し、redis5.6 の場合は、パラメータグループが Global Datastore に属している (isGlobal) かどうかを各パラメータグループについて説明します。

<DescribeCacheParameterGroupsResponse xmlns="http://elasticache.amazonaws.com/doc/2013-06-15/"> <DescribeCacheParameterGroupsResult> <CacheParameterGroups> <CacheParameterGroup> <CacheParameterGroupName>myRedis28</CacheParameterGroupName> <CacheParameterGroupFamily>redis2.8</CacheParameterGroupFamily> <Description>My custom Redis 2.8 parameter group</Description> </CacheParameterGroup> <CacheParameterGroup> <CacheParameterGroupName>myMem14</CacheParameterGroupName> <CacheParameterGroupFamily>memcached1.4</CacheParameterGroupFamily> <Description>My custom Memcached 1.4 parameter group</Description> </CacheParameterGroup> <CacheParameterGroup> <CacheParameterGroupName>myRedis56</CacheParameterGroupName> <CacheParameterGroupFamily>redis5.0</CacheParameterGroupFamily> <Description>My custom redis 5.6 parameter group</Description> <isGlobal>yes</isGlobal> </CacheParameterGroup> </CacheParameterGroups> </DescribeCacheParameterGroupsResult> <ResponseMetadata> <RequestId>3540cc3d-af48-11e0-97f9-279771c4477e</RequestId> </ResponseMetadata> </DescribeCacheParameterGroupsResponse>

次のサンプルコードは、パラメータグループ myRed28 のリストです。

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheParameterGroups &CacheParameterGroupName=myRed28 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &Version=2015-02-02 &X-Amz-Credential=<credential>

このアクションからの応答は、名前、ファミリー、説明となります。

<DescribeCacheParameterGroupsResponse xmlns="http://elasticache.amazonaws.com/doc/2013-06-15/"> <DescribeCacheParameterGroupsResult> <CacheParameterGroups> <CacheParameterGroup> <CacheParameterGroupName>myRed28</CacheParameterGroupName> <CacheParameterGroupFamily>redis2.8</CacheParameterGroupFamily> <Description>My custom Redis 2.8 parameter group</Description> </CacheParameterGroup> </CacheParameterGroups> </DescribeCacheParameterGroupsResult> <ResponseMetadata> <RequestId>3540cc3d-af48-11e0-97f9-279771c4477e</RequestId> </ResponseMetadata> </DescribeCacheParameterGroupsResponse>

次のサンプルコードは、パラメータグループ myRed56 のリストです。

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheParameterGroups &CacheParameterGroupName=myRed56 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &Version=2015-02-02 &X-Amz-Credential=<credential>

このアクションからの応答は、名前、ファミリー、説明を一覧表示し、パラメータグループが Global Datastore の一部である (isGlobal) かどうかを表示します。

<DescribeCacheParameterGroupsResponse xmlns="http://elasticache.amazonaws.com/doc/2013-06-15/"> <DescribeCacheParameterGroupsResult> <CacheParameterGroups> <CacheParameterGroup> <CacheParameterGroupName>myRed56</CacheParameterGroupName> <CacheParameterGroupFamily>redis5.0</CacheParameterGroupFamily> <Description>My custom Redis 5.6 parameter group</Description> <isGlobal>yes</isGlobal> </CacheParameterGroup> </CacheParameterGroups> </DescribeCacheParameterGroupsResult> <ResponseMetadata> <RequestId>3540cc3d-af48-11e0-97f9-279771c4477e</RequestId> </ResponseMetadata> </DescribeCacheParameterGroupsResponse>

詳細については、「DescribeCacheParameterGroups」を参照してください。