Global Cluster の切り替え (V2)
現在のプライマリクラスターから、指定されたセカンダリクラスターへの計画切り替えを実行します。
POST/v2/globalClusters/{globalClusterId}/switchover
このAPIのBase URLは以下の形式です:
https://api.cloud.zilliz.com
📘ノート
コントロールプレーンのエンドポイントは現在、ユーザーごと・エンドポイントごとに毎秒最大20リクエストまでサポートしています。
shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要
認証トークンには、適切な権限を持つ API key を使用する必要があります。
値の例: Bearer {{TOKEN}}
globalClusterIdstringpath必要
Global Cluster の ID。
値の例: glo-xxxxxxxxxxxxxxx
リクエスト・ボディapplication/json
newPrimaryClusterIdstring必要
新しいプライマリクラスターとして昇格させるセカンダリクラスターの ID。
値の例: in01-secondary
Examplebash
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/switchover" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"newPrimaryClusterId": "in01-secondary"
}'
レスポンス200 OK - application/json
切り替えジョブを返します。
スイッチオーバー操作で返される可能性がある成功レスポンスペイロードの 1 つ。
globalClusterIdstring
Global Cluster ID。
値の例: glo-xxxxxxxxxxxxxxx
oldPrimaryClusterIdstring
以前のプライマリクラスター ID。
値の例: in01-primary
newPrimaryClusterIdstring
新しいプライマリクラスター ID。
値の例: in01-secondary
jobIdstring
非同期操作の Job ID。
値の例: job-xxxxxxxxxxxxxxx
dataobject
レスポンスペイロード。型はエンドポイントによって異なります。
globalClusterIdstring
グローバル Cluster の ID。
oldPrimaryClusterIdstring
以前のプライマリ Cluster の ID。
newPrimaryClusterIdstring
新しいプライマリ Cluster の ID。
jobIdstring
昇格を追跡する非同期ジョブの ID。
エラーメッセージを返します。
codeinteger<int32>
レスポンスコード。
値の例: 400
messagestring
エラーメッセージ。
値の例: Invalid request parameters.
Successjson
{
"globalClusterId": "glo-xxxxxxxxxxxxxxx",
"oldPrimaryClusterId": "in01-primary",
"newPrimaryClusterId": "in01-secondary",
"jobId": "job-xxxxxxxxxxxxxxx"
}