オンデマンドクラスターの更新 (V2)
現在のプロジェクト内のオンデマンドクラスターの名前、説明、または自動一時停止のアイドルウィンドウを更新します。
PATCH/v2/clusters/onDemandClusters/{CLUSTER_ID}
https://api.cloud.zilliz.com
shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要
認証トークンには、適切な権限を持つ API key を使用してください。
値の例: Bearer {{TOKEN}}
OrgIdstringheader必要
クラスターの組織 ID。
値の例: org-xxxxxxxxxxxxxxxxxxx
CLUSTER_IDstringpath必要
更新するオンデマンドクラスターの ID。
値の例: inxx-xxxxxxxxxxxxxxx
リクエスト・ボディapplication/json
clusterNamestring
クラスターの新しい名前。空の文字列は指定できません。
descriptionstring
クラスターの新しい説明。空の文字列を指定できます。
autoSuspendstring
自動一時停止のアイドルウィンドウ。値は <number><s|m|h> 形式(60s、5m、1h など)を使用する必要があり、60 秒以上である必要があります。
値の例: 5m
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"clusterName": "New Cluster Name",
"description": "This is the new description of the cluster.",
"autoSuspend": "5m"
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"clusterName": "New Cluster Name"
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"description": ""
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoSuspend": "5m"
}'
レスポンス200 OK - application/json
変更されたクラスターの ID を返します。
codeinteger
レスポンスコード。
dataobject
レスポンスペイロード。
clusterIdstring
変更されたクラスターの ID。
promptstring
返されたプロンプトメッセージ。
エラーメッセージを返します。
codeinteger
レスポンスコード。
messagestring
エラーメッセージ。
Successjson
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "successfully submitted. Cluster is being upgraded, which is expected to take several minutes. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK."
}
}