接口描述
本接口(ListAttachedUserPolicies)可用于查询子账号关联的策略列表。
请求域名:
cam.api.qcloud.com
输入参数
以下请求参数列表仅列出了接口请求参数,未列出 公共请求参数。
参数名称 | 类型 | 必选 | 描述 |
---|---|---|---|
uin | int | 是 | 子账号 ID |
page | int | 否 | 页码,默认值为 1,从 1 开始 |
rp | int | 否 | 每页大小,默认值是 20 |
输出参数
参考 ListPolicies 接口说明。
示例
输入
https://cam.api.qcloud.com/v2/index.php
?uin=3449203261
&page=1
&rp=20
&SignatureMethod=HmacSHA256
&Action=ListAttachedUserPolicies
&Region=gz
&SecretId=************************************************************
&Nonce=33994
&Timestamp=1508492653
&RequestClient=SDK_PHP_1.1
&Signature=YQflvL9ZCPDfTJNum84oXRQex6iKKTNi2fwgLUh2qZE%3D
输出
{
"code": 0,
"message": "",
"codeDesc": "Success",
"data": {
"totalNum": 5,
"list": [
{
"policyId": 524497,
"policyName": "testpppName323",
"addTime": "2017-10-20 17:26:16",
"createMode": 2
},
{
"policyId": 296232,
"policyName": "QcloudCCSInnerFullAccess",
"addTime": "2017-10-20 17:11:19",
"createMode": 2
},
{
"policyId": 514581,
"policyName": "dsc35trc56",
"addTime": "2017-10-16 16:33:28",
"createMode": 1
},
{
"policyId": 419082,
"policyName": "QcloudCCRFullAccess",
"addTime": "2017-09-15 16:35:03",
"createMode": 2
},
{
"policyId": 219851,
"policyName": "QcloudCLBReadOnlyAccess",
"addTime": "2017-09-04 16:40:15",
"createMode": 2
}
]
}
}
错误码
参见 错误码。