Domain name for API request: cam.tencentcloudapi.com.
This API is used to list policies associated with the user (including those inherited from the user group).
A maximum of 5 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ListAttachedUserAllPolicies. |
Version | Yes | String | Common Params. The value used for this API: 2019-01-16. |
Region | No | String | Common Params. This parameter is not required for this API. |
TargetUin | Yes | Integer | Target user ID. |
Rp | Yes | Integer | The number of policies displayed on each page. Value range: 1-200. |
Page | Yes | Integer | Page number. Value range: 1-200. |
AttachType | Yes | Integer | 0 : return policies that are directly associated and inherited from the user group; 1 : return policies that are directly associated; 2 : return policies inherited from the user group. |
StrategyType | No | Integer | Policy type. |
Keyword | No | String | Keyword for searching. |
Parameter Name | Type | Description |
---|---|---|
PolicyList | Array of AttachedUserPolicy | Policy list. |
TotalNum | Integer | Total number of policies. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://cam.tencentcloudapi.com/?Action=ListAttachedUserAllPolicies
&Rp=1
&Page=10
&AttachType=1
&TargetUin=1234565
&<Common request parameters>
{
"Response": {
"TotalNum": 11,
"PolicyList": [
{
"PolicyId": "522474",
"PolicyName": "policygen-20191204195412",
"Description": "",
"AddTime": "2019-12-04 19:56:35",
"StrategyType": "1",
"CreateMode": "3",
"Deactived": 1,
"Groups": [],
"DeactivedDetail": [
"xx"
]
}
],
"RequestId": "d369dabb-ebc9-4598-baae-e1177e9e3868"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameter.ParamError | Invalid input parameter. |
ResourceNotFound.UserNotExist | User does not exist. |
UnauthorizedOperation | Unauthorized operation. |
本页内容是否解决了您的问题?