Mengkueri parameter default dari Kluster database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeParameterTemplates |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBType |
string |
Yes |
Tipe mesin database. Hanya MySQL yang didukung. |
MySQL |
| DBVersion |
string |
Yes |
Versi database. Nilai valid:
|
5.7 |
| RegionId |
string |
Yes |
ID Wilayah. Catatan
Panggil operasi DescribeRegions untuk mengkueri ID Wilayah yang tersedia. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ParameterCount |
string |
The number of parameters. |
183 |
| DBVersion |
string |
The database engine version. |
5.7 |
| Parameters |
object |
||
| TemplateRecord |
array<object> |
A list of parameters. |
|
|
object |
|||
| CheckingCode |
string |
The valid values for the parameter. |
[ROW|STATEMENT|MIXED] |
| ParameterName |
string |
The parameter name. |
binlog_format |
| ParameterValue |
string |
The default value of the parameter. |
ROW |
| ForceModify |
string |
Indicates whether the parameter can be modified. Valid values:
|
true |
| ForceRestart |
string |
Indicates whether a restart is required for a new parameter value to take effect. Valid values:
|
false |
| ParameterDescription |
string |
The parameter description. |
What form of binary logging the master will use. |
| IsNodeAvailable |
string |
Indicates whether the parameter is a global parameter. Valid values:
|
1 |
| ParamRelyRule |
string |
The parameter dependencies. |
utf8 |
| RequestId |
string |
The request ID. |
D963934D-8605-4473-8EAC-54C719****** |
| DBType |
string |
The database engine type. |
MySQL |
| Engine |
string |
The database engine. |
POLARDB |
Contoh
Respons sukses
JSONformat
{
"ParameterCount": "183",
"DBVersion": "5.7",
"Parameters": {
"TemplateRecord": [
{
"CheckingCode": "[ROW|STATEMENT|MIXED]",
"ParameterName": "binlog_format",
"ParameterValue": "ROW",
"ForceModify": "true",
"ForceRestart": "false",
"ParameterDescription": "What form of binary logging the master will use.",
"IsNodeAvailable": "1",
"ParamRelyRule": "utf8"
}
]
},
"RequestId": "D963934D-8605-4473-8EAC-54C719******",
"DBType": "MySQL",
"Engine": "POLARDB"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBType.NotFound | The Specified DBType does not found. | |
| 400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.