Domain name for API request: teo.tencentcloudapi.com.
This API is used to query bot attack logs.
A maximum of 100 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: DescribeBotLog. |
Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
StartTime | Yes | Timestamp ISO8601 | The start time. |
EndTime | Yes | Timestamp ISO8601 | The end time. |
ZoneIds.N | No | Array of String | List of sites to be queried. All sites will be selected if this field is not specified. |
Domains.N | No | Array of String | List of subdomain names to be queried. All subdomain names will be selected if this field is not specified. |
Limit | No | Integer | Limit on paginated queries. Default value: 20. Maximum value: 1000. |
Offset | No | Integer | The page offset. Default value: 0. |
QueryCondition.N | No | Array of QueryCondition | The key of the parameter QueryCondition, which is used to specify a filter. Values:action : The action;sipCountryCode : The country code of the attacker IP;attackIp : Attacker IP;ruleId : Rule ID;eventId : The event ID;ua : User agent;requestMethod : Request method;uri : Uniform resource identifier. |
Area | No | String | Data storage region. Values:overseas : Global (outside the Chinese mainland);mainland : Chinese mainland. |
Parameter Name | Type | Description |
---|---|---|
Data | Array of BotLog | The list of bot attack data. Note: This field may return null, indicating that no valid values can be obtained. |
TotalCount | Integer | Total number of query results. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBotLog
<Common request parameters>
{
"Offset": 0,
"Limit": 10,
"ZoneIds": [
"zone-21xfqlh4qjee"
],
"StartTime": "2020-09-22T00:00:00+00:00",
"Domains": [
"www.baidu.com"
],
"EndTime": "2020-09-22T00:00:00+00:00",
"QueryCondition": [
{
"Operator": "equals",
"Value": [
"monitor"
],
"Key": "action"
}
],
"Area": "overseas"
}
{
"Response": {
"TotalCount": 10,
"Data": [
{
"AttackContent": "",
"AttackIp": "120.241.137.74",
"AttackTime": 1660035802,
"Domain": "cooper5.wshxin.cn",
"EventId": "91558071885490496",
"Label": "none",
"RequestMethod": "GET",
"RequestUri": "/",
"RuleDetailList": [
{
"Action": "drop",
"Description": "Marketing",
"RuleId": 1003,
"RuleTypeName": "uabot"
}
],
"SipCountryCode": "CN",
"Ua": "SemrushBot",
"AttackType": "Bot",
"HttpLog": "",
"RuleId": 1,
"RiskLevel": "5",
"Maliciousness": "",
"DetectionMethod": "",
"DisposalMethod": "",
"Confidence": ""
}
],
"RequestId": "40b7844d-e4d9-4072-824d-f3a8bc85b487"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Was this page helpful?