Creates a policy for fine-grained access control over DMS features and data resources.
Operation description
This feature is in phased release. Only users included in the rollout can use this feature and the related APIs. For more information, see Manage policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateAbacPolicy |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AbacPolicyName |
string |
Yes |
The name of the policy. Must be unique within the tenant. |
policy_test |
| AbacPolicyDesc |
string |
No |
The description of the policy. |
test |
| AbacPolicyContent |
string |
Yes |
The policy content. Defines whether authorized users can access the resources and features specified in the policy. |
{ "Statement": [ { "Action": "*", "Effect": "Allow", "Resource": "*", "Condition": { "StringEqualsIgnoreCase": { "dms:DbType": [ "redis" ] } } } ], "Version": "1" } |
| 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 |
|||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| CreatePolicyResult |
integer |
The ID of the policy. |
12**** |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"CreatePolicyResult": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.