PolarDB クラスターのプライマリゾーンを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:ModifyDBClusterPrimaryZone |
update |
*dbcluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBClusterId |
string |
必須 |
クラスター ID。 説明
DescribeDBClusters 操作を呼び出すと、ターゲットリージョン内のすべてのクラスターの詳細 (クラスター ID を含む) をクエリできます。 |
pc-************** |
| ZoneId |
string |
必須 |
新しいゾーンの ID。 説明
DescribeRegions 操作を呼び出すと、利用可能なゾーンをクエリできます。 |
cn-hangzhou-g |
| ZoneType |
string |
任意 |
ゾーンのタイプ。有効な値:
|
Primary |
| VSwitchId |
string |
任意 |
ターゲットゾーンの vSwitch ID。 説明
|
vsw-************** |
| IsSwitchOverForDisaster |
string |
任意 |
元のゾーンにフェイルバックするかどうかを指定します。有効な値:
|
false |
| PlannedStartTime |
string |
任意 |
ゾーンを変更するスケジュールされたタスクを開始する最も早い時刻。時刻は 説明
|
2021-01-14T09:00:00Z |
| PlannedEndTime |
string |
任意 |
スケジュールされたタスクを開始する最も遅い時刻。時刻は 説明
|
2021-01-14T09:30:00Z |
| FromTimeService |
boolean |
任意 |
ゾーン変更をすぐに実行するか、スケジュールされた時刻に実行するかを指定します。有効な値:
|
false |
| VPCId |
string |
任意 |
Virtual Private Cloud (VPC) の ID。 |
vpc-********** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
ED12C6FF-3261-4571-AB57-3570F6****** |
例
成功レスポンス
JSONJSON
{
"RequestId": "ED12C6FF-3261-4571-AB57-3570F6******"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。