Detaches a policy from a user or role.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:DeleteAbacAuthorization |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AuthorizationId |
integer |
Yes |
The authorization ID. |
123*** |
| IdentityType |
string |
Yes |
The type of object from which you want to detach the policy. Valid values:
|
USER |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID, which can be used to query logs and troubleshoot issues. |
207176D7-A9B3-55CE-A9DA-14E223A31913 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Result |
string |
Indicates whether the policy was detached from the user or role. |
true |
Examples
Success response
JSON format
{
"RequestId": "207176D7-A9B3-55CE-A9DA-14E223A31913",
"Success": true,
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Result": "true"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.