接口请求域名: cam.intl.tencentcloudapi.com 。
列出用户关联的策略(包括随组关联)
默认接口请求频率限制:5次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:ListAttachedUserAllPolicies。 |
| Version | 是 | String | 公共参数,本接口取值:2019-01-16。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| TargetUin | 是 | Integer | 目标用户Uin |
| Rp | 是 | Integer | 每页数量,必须大于 0 且小于等于 200。 |
| Page | 是 | Integer | 页码,从 1开始,不能大于 200。 |
| AttachType | 是 | Integer | 关联类型。0:返回直接关联和随组关联策略,1:只返回直接关联策略,2:只返回随组关联策略。 |
| StrategyType | 否 | Integer | 策略类型。1表示自定义策略,2表示预设策略。 |
| Keyword | 否 | String | 搜索关键字 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| PolicyList | Array of AttachedUserPolicy | 策略列表数据。 |
| TotalNum | Integer | 策略总数。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
https://cam.intl.tencentcloudapi.com/?Action=ListAttachedUserAllPolicies
&Rp=1
&Page=10
&AttachType=1
&TargetUin=100020328651
&<公共请求参数>
{
"Response": {
"TotalNum": 1,
"PolicyList": [
{
"AddTime": "2020-01-16 15:09:27",
"CreateMode": "2",
"Deactived": 1,
"DeactivedDetail": [
"consolesms"
],
"Description": "短信(SMS)全读写访问权限",
"Groups": [
{
"GroupId": 93878,
"GroupName": "系统运维"
}
],
"PolicyId": "219064",
"PolicyName": "QcloudSMSFullAccess",
"StrategyType": "2"
}
],
"RequestId": "d369dabb-ebc9-4598-baae-e1177e9e3868"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InvalidParameter.ParamError | 非法入参。 |
| ResourceNotFound.UserNotExist | 用户不存在。 |
| UnauthorizedOperation | 未授权操作。 |
文档反馈