1
0
forked from docs/doc-exports
doc-exports/docs/modelarts/api-ref/DeleteAuthorizations.html
Lai, Weijian 2f0818cf3d ModelArts API 22.3.0 version-20240311
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-04-05 09:35:42 +00:00

5.2 KiB

Deleting Authorization

Function

This API is used to delete the authorization of a specified user or all users.

URI

DELETE /v2/{project_id}/authorizations

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

user_id

No

String

User ID. If user_id is set to all-users, the authorization of all IAM users will be deleted.

Request Parameters

None

Response Parameters

None

Example Requests

Delete the authorization of a specified user.

DELETE https://{endpoint}/v2/{project_id}/authorizations?user_id=****d80fb058844ae8b82aa66d9fe****

Example Responses

Status code: 200

OK

{
  "result" : "true"
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.