tencent cloud

文档反馈

ModifyLogTopicTask

最后更新时间:2022-11-28 16:50:35
This document is currently invalid. Please refer to the documentation page of the product.

1. API Description

Domain name for API request: teo.tencentcloudapi.com.

This API is used to modify a shipping task.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: ModifyLogTopicTask.
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.
ZoneId Yes String ID of the site.
LogSetRegion Yes String Region of the logset.
LogSetId Yes String ID of the logset.
TopicId Yes String ID of the log topic.
EntityType No 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.
  • TaskName No String Name of the shipping task.
    TopicName No String The new topic name. If you do not specify this field, no changes will be made.
    LogSetName No String The new logset name.
    Period No Integer The retention period of the updated logset.
    DropEntityList.N No Array of String List of shipping entities to be deleted.
    AddedEntityList.N No Array of String List of shipping entities to be added.

    3. Output Parameters

    Parameter Name Type Description
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Modifying a shipping task

    Input Example

    POST / HTTP/1.1
    Host: teo.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyLogTopicTask
    <Common request parameters>
    
    {
        "TopicId": "0a396698-d589-42b6-a6a2-701777d3afe0",
        "LogSetId": "33a900b2-9860-4da0-be91-bcce94c290ce",
        "EntityType": "application",
        "Period": 11,
        "ZoneId": "zone-28569s6od5na",
        "LogSetRegion": "ap-guangzhou",
        "LogSetName": "new_log_set",
        "TopicName": "new_topic_name"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "952c708d-abaf-464c-84cf-d1447887cf65"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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.
    LimitExceeded The quota limit has been reached.