tencent cloud

APIs

CreateDspmExportTask

Download
聚焦模式
字号
最后更新时间: 2026-09-01 10:02:52

1. API Description

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

This API is used to create log export tasks.

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: CreateDspmExportTask.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
MemberId.N No Array of String

Group account member id

DangerLevel No Integer

Risk level (0-Safe, 1-Low risk, 2-Medium-risk, 3-High-risk, -1-All)

DbName No String

Database name

DbPort No Integer

Database port

DbIp No String

Database IP

AssetsId No Integer

Asset ID.

SessionId No String

Session ID

ClientSideIp No String

Client IP address

EndTime No Integer

End time.

HitRule No Integer

Hit rule.

StartTime No Integer

Start time.

FuzzySearch No String

Fuzzy query

UserName No String

Username.

ClientName No String

Client

SourceTypes.N No Array of String

Traffic source. Parameter value: Agent/Proxy/empty. If Agent is passed, agent logs will be returned. If Proxy is passed, proxy logs will be returned. If both or neither are passed, return all.

TableName No String

Table name, length limited to 64. For multiple table name queries, use space-separated.

FieldName No String

Field name, length limited to 64. For multiple field name queries, use space-separated.

SqlMainTypes.N No Array of String

Main SQL types: DDL, DML, DCL, TCL

SqlType No String

Operation type

RowNumMin No Integer

Minimum number of affected rows

RowNumMax No Integer

Maximum number of affected rows

DbTypes.N No Array of String

Database type

RetNo No Integer

Response code

ClientDriverName No String

Client tool

ClientPort No Integer

Client port

LogId No String

Audit log ID.

DangerLevels.N No Array of Integer

Risk level array (0-secure, 1-low risk, 2-medium-risk, 3-high-risk). To select all, import all values. If empty, see the DangerLevel input parameter.

SensitiveCategoryRule No String

Field classification

SensitiveLevelRisk No String

Field classification

TrxId No Integer

Transaction Id.

ClientMac No String

clientMac

3. Output Parameters

Parameter Name Type Description
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 an Export Task

Input Example

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

{
    "DangerLevel": 0,
    "DbName": "cdb-mysql",
    "DbPort": 0,
    "DbIp": "127.0.0.1",
    "AssetsId": 3306,
    "SessionId": "1711987200000-140227893131008-2045",
    "ClientSideIp": "127.0.0.1",
    "EndTime": 0,
    "HitRule": 0,
    "StartTime": 0,
    "FuzzySearch": "select",
    "UserName": "root",
    "ClientName": "VM-0-124",
    "SourceTypes": [
        "Agent"
    ]
}

Output Example

{
    "Response": {
        "RequestId": "0e67fb37-ebe9-4e44-8bc8-7810b66ce6a2"
    }
}

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

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈