Querying List of Policies Associated with a User Group

Last updated: 2020-06-05 19:43:11

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CAM API 3.0 which is standardized and faster.

    API Description

    This API (ListAttachedGroupPolicies) is used to query the list of policies associated with a user group.

    Request domain name:

    cam.api.qcloud.com 

    Input Parameters

    The following request parameter list only provides the API request parameters. Other parameters can be found in Common Request Parameters.

    Parameter Name Type Required Description
    groupId int Yes User group ID
    page int No Page number, which starts from 1. It defaults to 1.
    rp int No Page size. It defaults to 20.

    Output Parameters

    For more information, see ListPolicies API description.

    Example

    Input

    https://cam.api.qcloud.com/v2/index.php
    ?groupId=34444
    &page=1
    &rp=20
    &SignatureMethod=HmacSHA256
    &Action=ListAttachedGroupPolicies
    &Region=gz
    &SecretId=AKIDWwGVed95Zu693ltdoopjcKrDct20DKky
    &Nonce=44835
    &Timestamp=1523262775
    &RequestClient=SDK_PHP_1.1&
    Signature=vBfc7JZiDSZZysKesDoywMN3ca80pgZmWVdiQ4QXJJg%3D

    Output

    {
        "code": 0,
        "message": "",
        "codeDesc": "Success",
        "data": {
            "totalNum": 1,
            "list": [
                {
                    "policyId": 1,
                    "policyName": "AdministratorAccess",
                    "addTime": "2018-04-09 16:31:19",
                    "createMode": 2
                }
            ]
        }
    }

    Error Codes

    For more information, see Error Codes.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help