Retrieves a list of attribute-based access control (ABAC) policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListAbacPolicies |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The number of entries to return on each page. |
20 |
| PageNumber |
integer |
No |
The page number. |
1 |
| SearchKey |
string |
No |
The search keyword. Fuzzy match is supported. |
policy_test |
| 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 |
|||
| RequestId |
string |
The request ID, which can be used to locate logs and troubleshoot issues. |
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 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Tid |
integer |
The ID of the tenant. |
3*** |
| PolicyList |
array<object> |
The details of the permission policies. |
|
|
object |
The details of a permission policy. |
||
| AbacPolicyId |
integer |
The ID of the policy. |
12**** |
| AbacPolicyName |
string |
The name of the policy. |
policy_test |
| AbacPolicyDesc |
string |
The description of the policy. |
test |
| AbacPolicyContent |
string |
The content of the policy. |
{ "Statement": [ { "Action": "*", "Effect": "Allow", "Resource": "*", "Condition": { "StringEqualsIgnoreCase": { "dms:DbType": [ "redis" ] } } } ], "Version": "1" } |
| CreatorId |
integer |
The ID of the user who created the policy. |
51**** |
| AbacPolicySource |
string |
The source of the policy. |
USER_DEFINE |
| TotalCount |
integer |
The total number of policies. |
5 |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Tid": 0,
"PolicyList": [
{
"AbacPolicyId": 0,
"AbacPolicyName": "policy_test\n",
"AbacPolicyDesc": "test",
"AbacPolicyContent": "{\n \"Statement\": [\n {\n \"Action\": \"*\",\n \"Effect\": \"Allow\",\n \"Resource\": \"*\",\n \"Condition\": {\n \"StringEqualsIgnoreCase\": {\n \"dms:DbType\": [\n \"redis\"\n ]\n }\n }\n }\n ],\n \"Version\": \"1\"\n}",
"CreatorId": 0,
"AbacPolicySource": "USER_DEFINE\n"
}
],
"TotalCount": 5
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.