Mengambil detail templat parameter yang ditentukan.
Deskripsi operasi
Templat parameter memungkinkan Anda mengelola parameter untuk beberapa cluster secara terpusat. Anda dapat dengan cepat menerapkan templat parameter ke cluster PolarDB. Untuk informasi lebih lanjut, lihat Menggunakan templat parameter.
Saat ini fitur ini hanya mendukung cluster PolarDB for MySQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeParameterGroup |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. Catatan
Anda dapat memanggil operasi DescribeRegions untuk menanyakan semua region yang tersedia beserta ID-nya di akun Anda. |
cn-hangzhou |
| DBType |
string |
No |
Jenis mesin basis data. Nilai yang valid:
|
MySQL |
| ParameterGroupId |
string |
Yes |
ID grup parameter. Catatan
Anda dapat memanggil operasi DescribeParameterGroups untuk menanyakan detail semua grup parameter di region yang ditentukan. |
pcpg-************** |
| ResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Body respons. |
||
| RequestId |
string |
ID permintaan. |
F1F16757-D31B-49CA-9BF4-305BAF****** |
| ParameterGroup |
array<object> |
Daftar templat parameter. |
|
|
array<object> |
|||
| ParameterDetail |
array<object> |
Daftar parameter. |
|
|
object |
|||
| ParamValue |
string |
The value of the parameter. |
3000 |
| ParamName |
string |
The name of the parameter. |
back_log |
| DBVersion |
string |
Versi mesin basis data. |
8.0 |
| ParameterGroupId |
string |
ID templat parameter. |
pcpg-************** |
| ParameterGroupName |
string |
Nama templat parameter. |
test |
| ForceRestart |
string |
Menentukan apakah cluster perlu di-restart agar templat parameter berlaku. Nilai yang valid:
|
1 |
| ParameterGroupType |
string |
Jenis templat parameter. Nilai yang valid:
|
1 |
| ParameterGroupDesc |
string |
Deskripsi templat parameter. |
testgroup |
| CreateTime |
string |
Waktu pembuatan templat parameter, dalam format |
2023-03-10T08:40:39Z |
| ParameterCounts |
integer |
Jumlah parameter dalam templat parameter. |
2 |
| DBType |
string |
Jenis mesin basis data. |
MySQL |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F1F16757-D31B-49CA-9BF4-305BAF******",
"ParameterGroup": [
{
"ParameterDetail": [
{
"ParamValue": "3000",
"ParamName": "back_log"
}
],
"DBVersion": "8.0",
"ParameterGroupId": "pcpg-**************",
"ParameterGroupName": "test",
"ForceRestart": "1",
"ParameterGroupType": "1",
"ParameterGroupDesc": "testgroup",
"CreateTime": "2023-03-10T08:40:39Z",
"ParameterCounts": 2,
"DBType": "MySQL"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | |
| 400 | InvalidParameterGroupId.Malformed | The Specified parameter ParameterGroupId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.