Mengubah zona utama dari Kluster PolarDB Basis Data Relasional Cloud-Native.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterPrimaryZone |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. Catatan
Panggil operasi DescribeDBClusters untuk mengkueri detail semua Kluster di Wilayah tujuan, termasuk ID Kluster. |
pc-************** |
| ZoneId |
string |
Yes |
ID zona baru. Catatan
Panggil operasi DescribeRegions untuk mengkueri zona yang tersedia. |
cn-hangzhou-g |
| ZoneType |
string |
No |
Tipe zona. Nilai valid:
|
Primary |
| VSwitchId |
string |
No |
ID vSwitch di zona tujuan. Catatan
|
vsw-************** |
| IsSwitchOverForDisaster |
string |
No |
Apakah akan melakukan fail back ke zona asal. Nilai valid:
|
false |
| PlannedStartTime |
string |
No |
Pengatur waktu paling awal untuk memulai Tugas terjadwal pengubahan zona. Tentukan pengatur waktu dalam format Catatan
|
2021-01-14T09:00:00Z |
| PlannedEndTime |
string |
No |
Pengatur waktu terakhir untuk memulai Tugas terjadwal. Tentukan pengatur waktu dalam format Catatan
|
2021-01-14T09:30:00Z |
| FromTimeService |
boolean |
No |
Apakah akan melakukan pengubahan zona segera atau pengatur waktu terjadwal. Nilai valid:
|
false |
| VPCId |
string |
No |
ID virtual private cloud (VPC). |
vpc-********** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ED12C6FF-3261-4571-AB57-3570F6****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "ED12C6FF-3261-4571-AB57-3570F6******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ScheduleTaskExist | The specified cluster already has a scheduled task. | |
| 400 | InvalidZoneId.Malformed | The specified parameter ZoneId is not valid. | |
| 400 | InvalidZoneId.Same | The specified parameter ZoneId is same with origin zoneId. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | ActionUnauthorized | The specified action is not available for you. | |
| 403 | OperationDenied.MutexLock | The operation is not permitted due to the mutex lock. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 404 | InsufficientResource | The specified target zone has insufficient resources. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.