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.
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; |
| 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. |
| 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 |
| 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. |
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
}
{
"Response": {
"RequestId": "7006acf0-0b04-442d-a09e-1d2925cac79a",
"TaskId": "65a07eec-96ee-458d-850b-53dfe9b43125"
}
}
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 |
|---|---|
| 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. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários