最近更新时间:2021-08-27
ListPoliciesForUser
获取指定IAM子账号的全部权限
名称 | 数据类型 | 示例 | 描述 | 是否必填 |
---|---|---|---|---|
Action | String | ListPoliciesForUser | 系统规定参数,取值:ListPoliciesForUser | Y |
childId | String | d3fbd550-f4ba-4edf-a5f8-******** | 子账号id | Y |
page | Integer | 1 | 页码,从第一页开始 | N |
size | Integer | 10 | 每页数量 | N |
名称 | 数据类型 | 示例 | 说明 |
---|---|---|---|
Page | Integer | 1 | 页码 |
size | Integer | 10 | 每页数量 |
totalCount | Integer | 10 | 总数量 |
totalPages | Integer | 1 | 总页数 |
list | Array | 子账号信息集合 |
list详情:
名称 | 数据类型 | 示例 | 说明 |
---|---|---|---|
id | String | 48b1cb3a-8c31-46a7-aa31-*** | 子账号id |
name | String | Ebs**** | 策略名称 |
description | String | Ebs某资源访问 | 策略中文描述 |
linkType | String | user | 关联方式(user/group) |
type | String | system | 策略类型 |
policyDoc | String | 策略体(此接口不返回策略体详情) | |
updateTime | Date | 0 | 更新时间 |
http://api.unicloud.com/user/user?Action=ListPoliciesForUser&childId=53a2ee0c-09be-43d2-9184-******
{
"page": 1,
"size": 10,
"totalCount": 1,
"totalPages": null,
"list": [
{
"id": "1cdaeb87-722c-44f3-9440-******",
"name": "Ebs****",
"description": "Ebs某资源访问",
"linkType": "user",
"type": "system",
"policyDoc": null,
"updateTime": 1629412751000
}
]
}
错误码 | 错误信息 | 状态码 | 错误描述 |
---|---|---|---|
OverMaxPageSize | Max available page size is 200, please check your param. | 400 | 页面最多展示200条数据 |
OverMinPageSize | Min available page size is 1, please check your param. | 400 | 页面展示数量的取值最小为1 |
InvalidParameter | The id is null. | 400 | 子账号id不能为空。 |
InvalidParameter | PageError | 400 | 页码取值错误 |
Not Found | 用户不存在 | 404 | 用户不存在 |