接口请求域名: cam.intl.tencentcloudapi.com 。
本接口(ListAttachedGroupPolicies)可用于查询用户组关联的策略列表。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:ListAttachedGroupPolicies。 |
| Version | 是 | String | 公共参数,本接口取值:2019-01-16。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| TargetGroupId | 是 | Integer | 用户组ID |
| Page | 否 | Integer | 页码,默认值是 1,从 1 开始 |
| Rp | 否 | Integer | 每页大小,默认值是 20 |
| Keyword | 否 | String | 搜索关键字 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TotalNum | Integer | 策略总数。取值范围大于等于0。 |
| List | Array of AttachPolicyInfo | 策略列表 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询用户组3349关联的策略列表
https://cam.intl.tencentcloudapi.com/?Action=ListAttachedGroupPolicies
&TargetGroupId=3349
&Page=1
&Rp=10
&<公共请求参数>
{
"Response": {
"List": [
{
"OperateOwnerUin": "10001",
"PolicyName": "AdministratorAccess",
"Remark": "test policy remark",
"OperateUinType": 1,
"CreateMode": 1,
"Deactived": 1,
"AddTime": "2020-09-22 00:00:00",
"PolicyType": "User",
"PolicyId": 1,
"DeactivedDetail": [
"ccs"
],
"OperateUin": "10001"
}
],
"RequestId": "836d7034-9854-44f0-9d4a-ee57842f8644",
"TotalNum": 1
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError.SystemError | 内部错误。 |
| InvalidParameter.ParamError | 非法入参。 |
| InvalidParameter.SearchKeywordLengthError | 查询关键字长度错误。 |
文档反馈