- API Reference
- Authorization Management
- Deleting Authorization
Deleting Authorization¶
Function¶
This API is used to delete the authorization of a specified user or all users.
Debugging¶
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
URI¶
DELETE /v2/{project_id}/authorizations
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID. For details, see Obtaining a Project ID and Name. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
user_id | No | String | User ID. If this parameter is set to all, 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.
last updated: 2024-11-14 08:44 UTC - commit: 3b80612feba1452e3d3adbec6770d8e1b5070820
Page Contents