クラスターのバインディング関係を作成します。ゾーン冗長ストレージ (ZRS) デプロイメントメソッドを使用する場合、2 つのクラスター間にバインディング関係を作成できます。
操作説明
この操作は、ゾーン冗長ストレージ (ZRS) 機能を使用し、かつ以下の要件を満たすインスタンスでのみサポートされます。
インスタンスクラスターが異なるゾーンに存在すること。
インスタンスクラスターの課金方法が一致していること。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
selectdb:CreateDBClusterBinding |
update |
*All Resource
|
なし | なし |
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBInstanceId |
string |
必須 |
インスタンス ID。 |
selectdb-cn-7213cjv2ez |
| DBClusterId |
string |
必須 |
クラスター ID。 |
selectdb-cn-7213cjv2ez-be |
| DBClusterIdBak |
string |
必須 |
クラスター ID。 |
selectdb-xxxb9f2w-be |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
4773E4EC-025D-509F-AEA9-D53123FDFB0F |
| Data |
object |
返されるデータ。 |
|
| DbInstanceName |
string |
インスタンス ID。 |
selectdb-cn-7213cjv2ez |
| DbInstanceId |
string |
数値 ID。 |
6585 |
| DbClusterId |
string |
クラスター ID。 |
selectdb-cn-7213cjv2ez-be |
例
成功レスポンス
JSONJSON
{
"RequestId": "4773E4EC-025D-509F-AEA9-D53123FDFB0F\n",
"Data": {
"DbInstanceName": "selectdb-cn-7213cjv2ez",
"DbInstanceId": "6585",
"DbClusterId": "selectdb-cn-7213cjv2ez-be"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | SystemError | A system error occurred while processing your request. | |
| 400 | ClusterNotSupport | Current instance cluster does not support this operation. | この操作は現在のクラスタステータスではサポートされていません。 |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | 日文说明1 |
| 400 | InvalidChargeType.NotSupport | The specified parameter "ChargeType" does not meet the requirements. | |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | 日文说明1 |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | 日文说明1 |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | 日文说明1 |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | |
| 404 | InvalidParam | Invalid parameter, please check. | |
| 404 | InvalidClusterName.NotFound | The specified cluster name is not available. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。