Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Membuat daftar grup parameter berdasarkan nama
Anda dapat membuat daftar grup parameter menggunakan konsol ElastiCache, AWS CLI, atau API ElastiCache.
Daftar kelompok parameter dengan nama (Console)
Prosedur berikut menunjukkan cara melihat daftar grup parameter menggunakan konsol ElastiCache.
Untuk membuat daftar grup parameter menggunakan konsol ElastiCache
-
Masuk ke AWS Management Console dan buka ElastiCache konsol di https://console.aws.amazon.com/elasticache/
. -
Untuk melihat daftar semua grup parameter yang tersedia, di panel navigasi sebelah kiri pilih Grup Parameter.
Daftar kelompok parameter dengan nama (AWS CLI)
Untuk menghasilkan daftar grup parameter menggunakan AWS CLI, gunakan perintah describe-cache-parameter-groups
. Jika Anda memberikan nama grup parameter, hanya grup parameter tersebut yang akan terdaftar. Jika Anda tidak memberikan nama grup parameter, hingga --max-records
grup parameter akan terdaftar. Dalam kedua kasus, nama, keluarga, dan deskripsi grup parameter akan terdaftar.
Kode sampel berikut membuat daftar grup parameter myRed28.
Untuk Linux, macOS, atau Unix:
aws elasticache describe-cache-parameter-groups \ --cache-parameter-group-name
myRed28
Untuk Windows:
aws elasticache describe-cache-parameter-groups ^ --cache-parameter-group-name
myRed28
Output dari perintah ini akan terlihat seperti ini, mencantumkan nama, keluarga, dan deskripsi untuk grup parameter.
{
"CacheParameterGroups": [
{
"CacheParameterGroupName": "myRed28",
"CacheParameterGroupFamily": "redis2.8",
"Description": "My first parameter group"
}
]
}
Kode sampel berikut akan membuat daftar grup parameter myRed56 untuk grup parameter yang berjalan pada mesin Redis versi 5.0.6 ke atas. Jika grup parameter adalah bagian dari Replikasi di seluruh Wilayah AWS menggunakan penyimpanan data global, nilai properti IsGlobal
yang dihasilkan dalam output akan berupa Yes
.
Untuk Linux, macOS, atau Unix:
aws elasticache describe-cache-parameter-groups \ --cache-parameter-group-name
myRed56
Untuk Windows:
aws elasticache describe-cache-parameter-groups ^ --cache-parameter-group-name
myRed56
Output dari perintah ini akan terlihat seperti ini, mencantumkan nama, keluarga, isGlobal, dan deskripsi untuk grup parameter.
{
"CacheParameterGroups": [
{
"CacheParameterGroupName": "myRed56",
"CacheParameterGroupFamily": "redis5.0",
"Description": "My first parameter group",
"IsGlobal": "yes"
}
]
}
Kode sampel berikut membuat daftar hingga 10 grup parameter.
aws elasticache describe-cache-parameter-groups --max-records
10
Output JSON dari perintah ini akan terlihat seperti ini, daftar nama, keluarga, deskripsi dan, dalam kasus redis5.6 apakah grup parameter adalah bagian dari penyimpanan data global (isGlobal), untuk setiap grup parameter.
{
"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"
},
]
}
Untuk informasi selengkapnya, lihat describe-cache-parameter-groups
.
Daftar kelompok parameter dengan nama (ElastiCacheAPI)
Untuk menghasilkan daftar grup parameter menggunakan API ElastiCache, gunakan tindakan DescribeCacheParameterGroups
. Jika Anda memberikan nama grup parameter, hanya grup parameter tersebut yang akan terdaftar. Jika Anda tidak memberikan nama grup parameter, hingga MaxRecords
grup parameter akan terdaftar. Dalam kedua kasus, nama, keluarga, dan deskripsi grup parameter akan terdaftar.
Kode sampel berikut membuat daftar hingga 10 grup parameter.
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>
Respons dari tindakan ini akan terlihat seperti ini, mencantumkan nama, keluarga, deskripsi dan, dalam kasus redis5.6 jika grup parameter milik penyimpanan data global (isGlobal), untuk setiap grup parameter.
<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>
Kode sampel berikut membuat daftar grup parameter 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>
Respons dari tindakan ini akan terlihat seperti ini, mencantumkan nama, keluarga, dan deskripsi.
<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>
Kode sampel berikut membuat daftar grup parameter 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>
Respons dari tindakan ini akan terlihat seperti ini, mencantumkan nama, keluarga, deskripsi, dan apakah grup parameter adalah bagian dari penyimpanan data global (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>
Untuk informasi selengkapnya, lihat DescribeCacheParameterGroups
.