ListAttachedGroupPolicies

Last updated: 2019-12-14 11:40:22

PDF

1. API Description

API domain name: cam.tencentcloudapi.com.

This API (ListAttachedGroupPolicies) queries the list of policies associated with a user group.

Default API request rate limit: 20 requests/sec.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: ListAttachedGroupPolicies
Version Yes String Common parameter; the version of this API: 2019-01-16
Region No String Common parameter; optional for this API.
TargetGroupId Yes Integer User group ID
Page No Integer Page number starting from 1; 1 by default
Rp No Integer Number of entries per page; 20 by default

3. Output Parameters

Parameter name Type Description
TotalNum Integer Total number of policies
List Array of AttachPolicyInfo Policy list
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Sample 1. Querying the List of Policies Associated with a User Group

Query the list of policies associated with user group 3349

Input Sample Code

https://cam.tencentcloudapi.com/?Action=ListAttachedGroupPolicies
&TargetGroupId=3449
&Page=1
&Rp=10
&<Common request parameter>

Output Sample Code

{
  "Response": {
    "List": [
      {
        "PolicyId": 1,
        "PolicyName": "AdministratorAccess",
        "AddTime": "2018-04-09 16:31:19",
        "CreateMode": 2
      }
    ],
    "TotalNum": 10,
    "RequestId": "836d7034-9854-44f0-9d4a-ee57842f8644"
  }
}

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.

6. Error Codes

The following error codes are API business logic-related. For other error codes, see Common Error Codes.

Error Code Description
InternalError.SystemError Internal error.
InvalidParameter.ParamError Invalid input parameter.