Query the List of Entities Associated with the Policy

Last updated: 2020-06-05 19:40:30


    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 (ListEntitiesForPolicy) is used to query the list of instances associated with a policy.

    Request domain name:


    Input Parameters

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

    Parameter Name Type Required Description
    policyId int Yes Policy ID
    page int No Page number, which starts from 1. Default is 1.
    rp int No Page size. Default is 20
    entityFilter string No Available values: 'All', 'User', 'Group' and 'Role'. 'All': All types of instances; 'User': Only sub-accounts; 'Group': Only user groups; 'Role': Only roles. Default is 'All'.

    Output Parameters

    Parameter Name Type Description
    id string ID of a sub-account, role, or user group
    relatedType int 1: Sub-account; 2: User group: 3: Role
    name string Name of sub-account, role, or user group
    uin int Sub-account uin (optional)





        "code": 0,
        "message": "",
        "codeDesc": "Success",
        "data": {
            "totalNum": 2,
            "list": [
                    "id": "23742",
                    "relatedType": 2,
                    "name": "gtdx"
                    "id": "1133398",
                    "relatedType": 1,
                    "uin": 3449203261,
                    "name": "test1"

    Error Codes

    For more information, please 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