クラウドロールの削除 (V2)
Soft-deletes a custom role. Deletion is not cascading: if the role still has any active binding (user, group, or API key), the request is rejected with 21141 this role is in use. Revoke all of its bindings first, then delete the role. The request is also rejected if it would remove the last principal able to manage roles in a scope, or if the role is pre-defined.
DELETE/v2/roles/{roleId}
https://api.cloud.zilliz.com
shell
export BASE_URL="https://api.cloud.zilliz.com"
パラメータ
Authorizationstringheader必要
認証トークンは、適切な権限を持つ API キーである必要があります。
値の例: Bearer {{TOKEN}}
roleIdstringpath必要
ロール ID。
値の例: r-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
bash
export TOKEN="YOUR_API_KEY"
export roleId="r-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl --request DELETE \
--url "${BASE_URL}/v2/roles/${roleId}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
レスポンス200 OK - application/json
成功した結果またはエラーメッセージを返します。
成功したレスポンス。
codeinteger必要
レスポンスコード。
値の例: 0
databoolean必要
操作が成功したかどうか。
失敗したレスポンス。
codeinteger必要
レスポンスコード。
messagestring必要
エラーメッセージ。
Successjson
{
"code": 0,
"data": true
}