Mengubah properti titik akhir kluster PolarDB Basis Data Relasional Cloud-Native. Anda dapat mengonfigurasi pengaturan seperti mode baca/tulis, penambahan node otomatis, tingkat konsistensi, pemisahan transaksi, kolam koneksi, dan apakah node primer menerima permintaan baca.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterEndpoint |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-************* |
| DBEndpointId |
string |
Yes |
ID titik akhir kluster. |
pe-************** |
| Nodes |
string |
No |
Node yang akan ditambahkan ke titik akhir untuk distribusi permintaan baca. Pisahkan beberapa ID node dengan koma (,). Node asli digunakan secara default. Catatan
|
pi-**************,pi-************* |
| ReadWriteMode |
string |
No |
Mode baca/tulis. Nilai valid:
|
ReadWrite |
| AutoAddNewNodes |
string |
No |
Apakah akan menambahkan node baru secara otomatis ke titik akhir. Nilai valid:
|
Enable |
| EndpointConfig |
string |
No |
Konfigurasi lanjutan titik akhir kluster dalam format JSON. Anda dapat menetapkan tingkat konsistensi, pemisahan transaksi, apakah node primer menerima permintaan baca, kolam koneksi, dan pengaturan lainnya.
Catatan
|
{"ConsistLevel":"1","DistributedTransaction":"on","MasterAcceptReads":"off","ConnectionPersist": "on"} |
| DBEndpointDescription |
string |
No |
Nama titik akhir. |
test |
| SccMode |
string |
No |
Apakah akan mengaktifkan fitur konsistensi global (mode performa tinggi) untuk node. Nilai valid:
|
on |
| PolarSccWaitTimeout |
string |
No |
Periode pengatur waktu habis untuk konsistensi global. |
100 |
| PolarSccTimeoutAction |
string |
No |
Kebijakan untuk menangani pengatur waktu habis konsistensi global. Nilai valid:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CD3FA5F3-FAF3-44CA-AFFF-BAF869****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CD3FA5F3-FAF3-44CA-AFFF-BAF869******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidEndpointConfig.Malformed | The specified parameter EndpointConfig is not valid. | |
| 400 | InvalidDBEndpointId.Malformed | The specified parameter DBEndpointId is not valid. | |
| 400 | InvalidNodes.Malformed | The specified parameter Nodes is not valid. | |
| 403 | OperationDenied.InstanceType | The operation is not permitted due to instance type. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | EndpointStatus.NotSupport | Current endpoint status does not support this operation. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.