Updates the name, description, or content of an attribute-based access control (ABAC) policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:UpdateAbacPolicy |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AbacPolicyName |
string |
No |
The name of the permission policy. |
policy_test |
| AbacPolicyDesc |
string |
No |
The description of the policy. |
test |
| AbacPolicyContent |
string |
No |
The content of the policy. |
{ "Statement": [ { "Action": "*", "Effect": "Allow", "Resource": "*", "Condition": { "StringEqualsIgnoreCase": { "dms:DbType": [ "redis" ] } } } ], "Version": "1" } |
| AbacPolicyId |
integer |
Yes |
The ID of the policy. |
12**** |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the ID of the tenant, go to the 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 |
|||
| RequestId |
string |
The request ID. You can use this ID to query logs and troubleshoot issues. |
CE43759B-5A72-560A-BF3D-862F38B36B9E |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| UpdatePolicyResult |
integer |
Indicates whether the policy was updated. |
true |
Examples
Success response
JSON format
{
"RequestId": "CE43759B-5A72-560A-BF3D-862F38B36B9E",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"UpdatePolicyResult": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.