查询子账号关联的策略列表

最近更新时间:2018-05-15 11:02:28

接口描述

本接口(ListAttachedUserPolicies)可用于查询子账号关联的策略列表。

请求域名:

cam.api.qcloud.com 

输入参数

以下请求参数列表仅列出了接口请求参数,未列出 公共请求参数

参数名称 类型 必选 描述
uin int 子账号 uin
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=AKIDWwGVed95Zu693ltdoopjcKrDct20DKky
&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
            }
        ]
    }
}

错误码

参见 错误码