Domain name for API request: teo.tencentcloudapi.com.
This API is used to create a shipping task.
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: CreateLogTopicTask. |
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. |
LogSetId | Yes | String | ID of the logset. |
LogSetRegion | Yes | String | Region of the logset. |
TopicName | Yes | String | Topic name of the logset. |
TaskName | Yes | String | Name of the shipping task. |
ZoneId | Yes | String | ID of the site. |
ZoneName | Yes | String | Name of the site. |
EntityType | Yes | String | Type of the shipping entity. Values:domain : L7 acceleration logs;application : L4 acceleration logs;web-rateLiming : Rate limiting logs;web-attack : Web security logs;web-rule : Custom rule logs;web-bot : Bot management logs. |
Period | Yes | Integer | Retention period of the log topic. Value range: 1–366 (in days). |
EntityList.N | No | Array of String | List of shipping entities. |
Area | No | String | Acceleration region. Values:mainland : Chinese mainland.overseas : Global (outside the Chinese mainland). |
Parameter Name | Type | Description |
---|---|---|
TopicId | String | ID of the log topic created. |
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: CreateLogTopicTask
<Common request parameters>
{
"LogSetRegion": "ap-guangzhou",
"ZoneName": "hello.club",
"ZoneId": "zone-28569s6od5na",
"EntityType": "application",
"Period": 10,
"TopicName": "test_topic",
"TaskName": "test_task",
"EntityList": [
"test"
],
"LogSetId": "33a900b2-9860-4da0-be91-bcce94c290ce"
}
{
"Response": {
"TopicId": "ace8680b-55b9-498b-a113-056ab68d1da1",
"RequestId": "40be710a-9706-4b22-865e-c9739111ef1a"
}
}
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.CreateClsLogTopicTaskFailed | Failed to create the log topic: The topic/task name already exists. |
LimitExceeded | The quota limit has been reached. |
ResourceUnavailable.AvailableDomainNotFound | No domain names available. |
本页内容是否解决了您的问题?