Domain name for API request: cam.tencentcloudapi.com.
This API (ListAttachedUserPolicies) is used to query the list of policies associated with a sub-account.
A maximum of 20 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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: ListAttachedUserPolicies. |
Version | Yes | String | Common parameter. The value used for this API: 2019-01-16. |
Region | No | String | Common parameter. This parameter is not required for this API. |
TargetUin | Yes | Integer | Sub-account UIN |
Page | No | Integer | Page number, which starts from 1. Default is 1 |
Rp | No | Integer | Number of entries per page; 20 by default |
Parameter Name | Type | Description |
---|---|---|
TotalNum | Integer | Total number of policies |
List | Array of AttachPolicyInfo | Policy list |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to query the list of policies associated with a sub-account (ID: 3449203261).
https://cam.tencentcloudapi.com/?Action=ListAttachedUserPolicies
&TargetUin=3449203261
&Page=1
&Rp=10
&<Common request parameters>
{
"Response": {
"List": [
{
"PolicyId": 109360057,
"PolicyName": "test-0103",
"AddTime": "2022-01-03 10:38:28",
"CreateMode": 3,
"Remark": "",
"OperateOwnerUin": null,
"OperateUin": null,
"OperateUinType": null,
"PolicyType": "",
"Deactived": 0,
"DeactivedDetail": []
}
],
"TotalNum": 1,
"RequestId": "db1cdf3f-9b1a-47c5-88b3-c49089aaa811"
}
}
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 |
---|---|
InternalError.SystemError | Internal error. |
InvalidParameter.ParamError | Invalid input parameter. |
Was this page helpful?