tencent cloud

APIs

CreateEDRManualScan

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

1. API Description

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

Triggered after you click start scanning. It supports multi-account and multiple asset types. When both hosts and container clusters are selected, it splits into two independent tasks (host + container).

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

Asset selection method: all - all assets/tag - select by tag (hosts only)/direct - direct selection

ScanType Yes String

Detection mode: full - full-disk detection / quick - rapid detection / include - detect specified paths only / exclude - exclude specified paths

MemberId.N No Array of String

Group account member id

InstanceIDsWithAppId.N No Array of InstanceIDWithAppIdItem

Directly selected host list (used when AssetSelectionType=direct or all)

ExcludeInstanceIDsWithAppId.N No Array of InstanceIDWithAppIdItem

Host list for removal (used when AssetSelectionType=all)

TagIds.N No Array of Integer

Tag ID corresponding to the host

ClusterIDsWithAppId.N No Array of ClusterWithAppIdItem

Cluster list for direct selection

ExcludeClusterIDsWithAppId.N No Array of ClusterWithAppIdItem

Cluster list for removal (used when AssetSelectionType=all)

CustomPaths.N No Array of String

Selected path list (required when ScanType is include or exclude, up to 100 entries)

Timeout No Integer

Timeout period in seconds, upper limit 7200

EnableMemShellScan No Integer

Whether deep detection is enabled: 0-No/1-Yes

3. Output Parameters

Parameter Name Type Description
Tasks Array of CreatedTaskItem

List of created tasks (one for the host and one for the container)

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 Create a task in tag mode

Input Example

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

{
    "AssetSelectionType": "tag",
    "ScanType": "include",
    "MemberId": [
        "mem-tencent-54213b157ddf7170"
    ],
    "TagIds": [
        139
    ],
    "CustomPaths": [
        "/tmp"
    ],
    "Timeout": 1800,
    "EnableMemShellScan": 0
}

Output Example

{
    "Response": {
        "Tasks": [
            {
                "AppId": 260199972,
                "TaskId": 304,
                "TaskType": "HOST"
            }
        ],
        "RequestId": "00dc20af-e070-4c80-b24c-becae48e73cb"
    }
}

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.
InternalError Internal error.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
MissingParameter Parameters are missing.
OperationDenied Operation denied.
ResourceNotFound The resource does not exist.

帮助和支持

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

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

文档反馈