Domain name for API request: cam.intl.tencentcloudapi.com.
Query all account lists.
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.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ListAccounts. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-16. |
| Region | No | String | Common Params. This parameter is not required. |
| MaxItems | No | Integer | Number of returned results. If the returned results are truncated after reaching the MaxItems limit, the response parameter IsTruncated will be equal to true. Value range: [1, 100] |
| Marker | No | String | When the return result of the request is truncated, you can use Marker to get the content after the current truncation position. |
| UserType | No | String | Type of user Enumeration values:
|
| Parameter Name | Type | Description |
|---|---|---|
| Users | Array of ListAllUser | Sub-account list. |
| Marker | String | This field is returned only when IsTruncated is true. If it returns true, you need to continue to call this API and use Marker to get the truncated content. |
| IsTruncated | Boolean | Whether the returned result of the request is truncated. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Get the sub-account list of all types
POST / HTTP/1.1
Host: cam.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ListAllSubAccounts
<Common request parameters>
{}
{
"Response": {
"IsTruncated": false,
"Marker": "",
"Users": [
{
"ConsoleLogin": 1,
"CountryCode": "86",
"CreateTime": "2022-11-23 17:07:28",
"Email": "gavi*******@tencent.com",
"Name": "gavi*******@tencent.com",
"PhoneNum": "132****0828",
"Remark": "",
"Uid": 906949110,
"Uin": 0,
"UserType": "Owner"
}
],
"RequestId": "e89738b3-7eb3-46fe-be37-7d3210625d78"
}
}
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 | Parameter error. |
| InvalidParameter.PaginationTokenInvalid | Invalid pageToken. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback