Operasi ini memodifikasi properti titik akhir kluster PolarDB, termasuk mode baca/tulis, penambahan node otomatis, tingkat konsistensi, pemisahan transaksi, kolam koneksi, serta apakah node primary 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 yang valid:
|
ReadWrite |
| AutoAddNewNodes |
string |
No |
Menentukan apakah node baru ditambahkan secara otomatis ke titik akhir. Nilai yang valid:
|
Enable |
| EndpointConfig |
string |
No |
Konfigurasi lanjutan titik akhir kluster dalam format JSON. Anda dapat mengatur tingkat konsistensi, pemisahan transaksi, apakah node primary 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 |
Menentukan apakah fitur konsistensi global (mode kinerja tinggi) diaktifkan untuk node tersebut. Nilai yang valid:
|
on |
| PolarSccWaitTimeout |
string |
No |
Periode timeout untuk konsistensi global. |
100 |
| PolarSccTimeoutAction |
string |
No |
Kebijakan penanganan timeout konsistensi global. Nilai yang valid:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
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.