プロジェクトをアップグレード (V2)
この操作は、指定されたプロジェクトのサブスクリプションプランを更新します。
PATCH/v2/projects/{projectId}/plan
https://api.cloud.zilliz.com
shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要
認証トークンには、適切な権限を持つ API key を使用する必要があります。
値の例: Bearer {{TOKEN}}
projectIdstringpath必要
アップグレードするプロジェクトの ID。
値の例: proj-xx
リクエスト・ボディapplication/json
planstring必要
アップグレード先のサブスクリプションプラン。指定可能な値は Standard、Enterprise、または BusinessCritical です。
bash
export TOKEN="YOUR_API_KEY"
export projectId="proj-xx"
curl --request PATCH \
--url "${BASE_URL}/v2/projects/${projectId}/plan" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"plan": "Enterprise"
}'
レスポンス200 OK - application/json
なし
成功レスポンス
codeinteger
レスポンスコード。
値の例: 0
datastring
プロジェクトが正常にアップグレードされたことを示す文字列 'ok'。
失敗レスポンス。
codeinteger
レスポンスコード。
messagestring
エラーメッセージ。
Successjson
{
"code": 0,
"data": "ok"
}