Domain name for API request: cls.intl.tencentcloudapi.com.
This API is used to obtain logs or metric topic lists and supports pagination.
A maximum of 50 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: DescribeTopics. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Filters.N | No | Array of Filter |
Note: Each request can have up to 10 Filters. The upper limit of Filter.Values is 100. |
| Offset | No | Integer | Page offset. Default value: 0. |
| Limit | No | Integer | Maximum number of entries per page. Default value: 20. Maximum value: 100. |
| PreciseSearch | No | Integer | Control whether the related fields in Filters are exact matches.
|
| BizType | No | Integer | Topic type -0: Log topic, default value -Metric topic |
| Parameter Name | Type | Description |
|---|---|---|
| Topics | Array of TopicInfo | Topic list |
| TotalCount | Integer | Total number |
| 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. |
Obtaining the Log Topic List
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTopics
<Common request parameters>
{
"Filters": [],
"Offset": 0,
"Limit": 1
}
{
"Response": {
"RequestId": "9402a324-xxxx-xxxx-xxxx-2bc613cd187e",
"Topics": [
{
"AssumerName": "",
"AssumerUin": 0,
"AutoSplit": true,
"BizType": 0,
"CreateTime": "2024-12-26 19:28:55",
"Describes": "",
"EffectiveDate": "",
"Extends": {
"AnonymousAccess": null
},
"HotPeriod": 0,
"Index": true,
"IsWebTracking": false,
"KeyId": "",
"LogsetId": "fd0605ca-xxxx-xxxx-xxxx-592e5233c2db",
"MaxSplitPartitions": 50,
"MigrationStatus": 0,
"PartitionCount": 1,
"Period": 1,
"RoleName": "",
"Status": true,
"StorageType": "hot",
"SubAssumerName": "",
"Tags": [],
"TopicAsyncTaskID": "",
"TopicId": "8a41c585-xxxx-xxxx-xxxx-c358a595f662",
"TopicName": "topic-name-test"
}
],
"TotalCount": 1544
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.TagQpsLimit | The frequency of tag service requests is limited. |
| FailedOperation.Timeout | Operation timed out |
| InternalError | Internal error. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameterValue | Incorrect parameter value. |
| MissingParameter | Missing parameter. |
| OperationDenied | Operation denied. |
| OperationDenied.ACLFailed | ACL verification failed. |
| OperationDenied.AccountDestroy | The account has been terminated. |
| OperationDenied.AccountIsolate | The account has overdue payments. |
| OperationDenied.AccountNotExists | The account does not exist. |
| OperationDenied.AnalysisSwitchClose | The analysis feature is not enabled for the field. |
| ResourceNotFound.LogsetNotExist | The specified logset does not exist. |
| ResourceNotFound.TopicNotExist | The log topic does not exist. |
| UnsupportedOperation | Unsupported operation. |
文档反馈