セカンダリクラスターの追加(V2)
Adds one or more secondary clusters. New secondary clusters use the existing Global Cluster CU specification.
POST/v2/globalClusters/{globalClusterId}/secondaryClusters
https://api.cloud.zilliz.com
shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要
認証トークンには、適切な権限を持つ API key を使用する必要があります。
値の例: Bearer {{TOKEN}}
globalClusterIdstringpath必要
Global Cluster の ID。
値の例: glo-xxxxxxxxxxxxxxx
リクエスト・ボディapplication/json
secondaryClustersarray必要
追加するセカンダリクラスター。
[]secondaryClustersobject必要
clusterNamestring必要
セカンダリクラスターの表示名。
値の例: secondary-cluster-ap
regionIdstring必要
セカンダリクラスターのリージョン ID。
値の例: aws-ap-southeast-1
Examplebash
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/secondaryClusters" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"secondaryClusters": [
{
"clusterName": "secondary-cluster-ap",
"regionId": "aws-ap-southeast-1"
}
]
}'
レスポンス200 OK - application/json
add-secondary-cluster ジョブを返します。
jobIdstring
非同期操作のジョブ ID。
値の例: job-xxxxxxxxxxxxxxx
エラーメッセージを返します。
codeinteger
レスポンスコード。
値の例: 400
messagestring
エラーメッセージ。
値の例: Invalid request parameters.
Successjson
{
"jobId": "job-xxxxxxxxxxxxxxx"
}