Mengubah string koneksi untuk cluster edge PolarDB di ENS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterEndpointZonal |
update |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID cluster. |
pc-************** |
| DBEndpointId |
string |
Yes |
ID titik akhir cluster. |
pe-**************** |
| Nodes |
string |
No |
Node hanya-baca yang akan ditambahkan ke titik akhir. Pisahkan beberapa ID node dengan koma (,). Jika Anda tidak menentukan parameter ini, node asli akan dipertahankan. Catatan
|
pi-**************,pi-************* |
| ReadWriteMode |
string |
No |
Mode baca/tulis. Nilai yang valid:
|
ReadWrite |
| AutoAddNewNodes |
string |
No |
Menentukan apakah akan menambahkan node baru ke titik akhir ini secara otomatis. Nilai yang valid:
|
Enable |
| EndpointConfig |
string |
No |
Konfigurasi lanjutan untuk titik akhir cluster, yang ditentukan dalam format JSON. Anda dapat mengatur tingkat konsistensi, pemisahan transaksi, apakah node utama menerima permintaan baca, kumpulan koneksi, dan banyak lagi.
Catatan
|
{\"DistributedTransaction\":\"off\",\"ConsistLevel\":\"0\",\"LoadBalanceStrategy\":\"load\",\"MasterAcceptReads\":\"on\"} |
| DBEndpointDescription |
string |
No |
Nama titik akhir. |
test |
| SccMode |
string |
No |
Menentukan apakah akan mengaktifkan fitur konsistensi global (mode performa tinggi) untuk node. Nilai yang valid:
|
OFF |
| PolarSccWaitTimeout |
string |
No |
Periode waktu habis untuk konsistensi global. |
100 |
| PolarSccTimeoutAction |
string |
No |
Kebijakan untuk waktu habis konsistensi global. Nilai yang valid:
|
0 |
| ClientToken |
string |
No |
Token klien untuk memastikan idempotensi permintaan. Klien yang menghasilkan nilai, tetapi Anda harus memastikan bahwa nilainya unik di antara permintaan yang berbeda. Token bersifat case-sensitive dan dapat berisi hingga 64 karakter ASCII. |
6000170000591aed949d0f****************** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
F2A9EFA7-915F-4572-8299-85A307****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F2A9EFA7-915F-4572-8299-85A307******"
}
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.