Mengubah parameter kluster PolarDB Basis Data Relasional Cloud-Native atau menerapkan template parameter yang ada ke kluster tertentu.
Deskripsi operasi
PolarDB Basis Data Relasional Cloud-Native menyediakan fitur template parameter. Anda dapat menggunakan template parameter untuk mengelola parameter secara terpusat dan menerapkannya dengan cepat ke kluster. Untuk informasi lebih lanjut, lihat Menggunakan template parameter.
Saat ini, hanya PolarDB for MySQL yang mendukung fitur template parameter.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterParameters |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri informasi semua kluster di wilayah tertentu, termasuk ID kluster. |
pc-************** |
| Parameters |
string |
No |
String JSON yang terdiri dari parameter dan nilainya. Nilai parameter bertipe STRING. Contoh: Catatan
|
{"wait_timeout":"86","innodb_old_blocks_time":"10"} |
| ParameterGroupId |
string |
No |
ID template parameter. Catatan
|
pcpg-************** |
| PlannedStartTime |
string |
No |
Waktu paling awal untuk mulai Berjalan tugas terjadwal dalam rentang waktu tertentu. Waktu dalam pengatur waktu Catatan
|
2022-04-28T14:00:00Z |
| PlannedEndTime |
string |
No |
Waktu paling akhir untuk mulai Berjalan tugas terjadwal. Waktu dalam pengatur waktu Catatan
|
2022-04-28T14:30:00Z |
| FromTimeService |
boolean |
No |
Apakah akan segera atau menjadwalkan modifikasi parameter dan restart kluster. Nilai valid:
|
false |
| ClearBinlog |
boolean |
No |
Apakah akan menghapus binlog. Parameter ini hanya berlaku ketika binlog dinonaktifkan. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
C5D526E5-91B5-48B8-B980-FE07FF****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C5D526E5-91B5-48B8-B980-FE07FF******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | Parameter tidak benar. |
| 400 | MinorVersionNotSupport | Custins minor version does not support current action. | Versi minor saat ini tidak mendukung fitur ini. Tingkatkan ke versi terbaru terlebih dahulu. |
| 400 | ParamDynamicException | Conflicting parameters: %s | Periksa apakah parameter kernel instans dan parameter yang sedang dimodifikasi memiliki prompt yang sama: %s. |
| 400 | InvalidParameters.Malformed | The Specified parameters is not valid. | Parameter yang ditentukan tidak valid. |
| 400 | InvalidParameter.Malformed | Choose one of parameters and ParamGroupId. | Pilih ParamGroupId dari parameter. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | DBClusterId yang diberikan tidak ada dalam catatan saat ini. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | DBClusterId yang diberikan tidak ada dalam catatan kami. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.