tencent cloud

APIs

CreateSplunkDeliver

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-06-10 15:00:30

1. API Description

Domain name for API request: cls.intl.tencentcloudapi.com.

Create a Splunk delivery 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: CreateSplunkDeliver.
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.
TopicId Yes String

log topic id

Name Yes String

The splunk delivery task name has the following restrictions: - Cannot be empty - Length not greater than 256 - Can only contain aA-zZ, underscore, -, 0-9

NetInfo Yes NetInfo

Splunk delivery task - target configuration - network info

MetadataInfo Yes MetadataInfo

Splunk delivery task meta information

HasServiceLog No Integer

Whether service logs are enabled 1: Disabled; 2: Enabled; Enabled by default

IndexAck No Integer

Advanced configuration - Whether to enable the indexer; 1 - Disable; 2 - Enable;
Default: 1

Source No String

Advanced configuration - data source; no more than 64 characters

SourceType No String

Advanced configuration - data source type; no more than 64 characters

Index No String

Advanced configuration - Indexes written to Splunk; no more than 64 characters

Channel No String

Advanced configuration - Channel.
To meet the limitation: If the indexer is enabled, then Channel is required.

DSLFilter No String

Log pre-filtering - filter out original data before writing to Splunk

ExternalRole No ExternalRole

Advanced configuration - Cross-account delivery user role authorization information

For reference: Create custom role

3. Output Parameters

Parameter Name Type Description
TaskId String

splunk delivery task id

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.

4. Example

Example1 Creating a Splunk Delivery Task

Input Example

POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSplunkDeliver
<Common request parameters>

{
    "TopicId": "d1d7d473-827e-4dad-9a42-f0287ad43125",
    "Name": "name-test15",
    "NetInfo": {
        "Host": "10.0.0.112",
        "Port": 8088,
        "Token": "59f9b80c-ae2f-43c1-8c93-436094343125",
        "NetType": 1,
        "VpcId": "vpc-k1bdf0ds",
        "VirtualGatewayType": 0,
        "IsSSL": true
    },
    "MetadataInfo": {
        "Format": "json"
    },
    "IndexAck": 1
}

Output Example

{
    "Response": {
        "RequestId": "7006acf0-0b04-442d-a09e-1d2925cac79a",
        "TaskId": "65a07eec-96ee-458d-850b-53dfe9b43125"
    }
}

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
AuthFailure CAM signature/authentication error.
AuthFailure.UnauthorizedOperation Request unauthorized.
FailedOperation Operation failed.
FailedOperation.Timeout Operation timed out
InternalError Internal error.
InternalError.DbError DB Error.
InternalError.IllegalRole Illegal role.
InvalidParameter Incorrect parameter.
InvalidParameter.ParamError Parameter error.
InvalidParameterValue Incorrect parameter value.
LimitExceeded.RecordOutOfLimit Record exceeds limit
MissingParameter Missing parameter.
UnauthorizedOperation Unauthorized operation.
UnknownParameter Unknown parameter error.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan