Membuat template parameter PolarDB.
Deskripsi operasi
Template parameter memungkinkan Anda mengelola parameter cluster secara batch. Anda dapat menggunakan fitur ini untuk dengan cepat menerapkan template parameter ke cluster PolarDB. Untuk informasi lebih lanjut, lihat Menggunakan template parameter.
Fitur ini hanya tersedia untuk cluster PolarDB for MySQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateParameterGroup |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat template parameter berada. Catatan
Anda dapat memanggil operasi DescribeRegions untuk menanyakan ID region. |
cn-hangzhou |
| DBType |
string |
Yes |
Tipe mesin database. Hanya MySQL yang didukung. |
MySQL |
| DBVersion |
string |
Yes |
Versi mesin database. Nilai yang valid:
|
8.0 |
| ParameterGroupName |
string |
Yes |
Nama template parameter. Nama harus memenuhi persyaratan berikut:
|
test_group |
| ParameterGroupDesc |
string |
No |
Deskripsi template parameter. Panjangnya harus 0 hingga 199 karakter. |
test_group |
| Parameters |
string |
Yes |
String JSON yang terdiri dari parameter dan nilainya. Nilai parameter harus berupa string. Contoh: Catatan
Anda dapat memanggil operasi DescribeParameterTemplates untuk melihat detail semua parameter untuk versi mesin database tertentu. Detail tersebut mencakup nama parameter dan rentang nilai. |
{"wait_timeout":"86400","innodb_old_blocks_time":"1000"} |
| ResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-********** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
514D1D87-E243-4A5F-A87D-2785C3****** |
| ParameterGroupId |
string |
ID template parameter. Catatan
Anda dapat memanggil operasi DescribeParameterGroups untuk menanyakan daftar template parameter dalam suatu region, termasuk ID-nya. |
pcpg-************** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "514D1D87-E243-4A5F-A87D-2785C3******",
"ParameterGroupId": "pcpg-**************"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | he specified parameter RegionId is not valid. | |
| 400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. | The specified DBVersion parameter is invalid. |
| 400 | InvalidParameterGroupName.Malformed | The Specified parameter ParameterGroupName is not valid. | The specified ParameterGroupName parameter is invalid. |
| 400 | NumberExceed.parameterGroupDesc | The ParameterGroupDesc parameter`s number is exceed. | The maximum number of ParameterGroupDesc values is reached. |
| 400 | InvalidEngine.Unsupported | The specified Engine does not support this feature. | This feature is not supported by the specified engine. |
| 400 | ParamGroupsNameInvalid | The Specified parameter ParameterGroupName is not valid. | The specified ParameterGroupName parameter is invalid. |
| 404 | InvalidDBType.NotFound | The Specified DBType does not found. | The specified DBType parameter does not exist. |
| 404 | InvalidUser.NotFound | Specified user does not exist. | The specified account does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.