ListPolicesForUserGroup
Queries policies for multiple user groups within your Alibaba Cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:ListPolicesForUserGroup |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserGroupIds |
array |
Yes |
The IDs of the user groups. You can enter up to 100 user group IDs. |
|
|
string |
No |
The ID of the user group. You can obtain the ID from the results of the following operations:
|
usergroup-6f1ef2fc56b6**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5F04DFBD-3F48-5F70-AE72-474026670128 |
| UserGroups |
array<object> |
The list of user groups. |
|
|
array<object> |
A user group. |
||
| UserGroupId |
string |
The ID of the user group. |
usergroup-6f1ef2fc56b6**** |
| Polices |
array<object> |
The policies. |
|
|
object |
A policy. |
||
| PolicyId |
string |
The ID of the policy. |
pa-policy-ce2bf7236fab**** |
| PolicyType |
string |
The policy type. Valid values:
Valid values:
|
PrivateAccess |
| Name |
string |
The name of the policy. |
private_access_policy_name |
Examples
Success response
JSON format
{
"RequestId": "5F04DFBD-3F48-5F70-AE72-474026670128",
"UserGroups": [
{
"UserGroupId": "usergroup-6f1ef2fc56b6****",
"Polices": [
{
"PolicyId": "pa-policy-ce2bf7236fab****",
"PolicyType": "PrivateAccess",
"Name": "private_access_policy_name"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.