tencent cloud

Feedback

DescribeScanVulSetting

Last updated: 2024-12-06 15:39:10

1. API Description

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

This API is used to query the configuration for regular detection.

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: DescribeScanVulSetting.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.

3. Output Parameters

Parameter Name Type Description
VulCategories String Vulnerability type: 1 - web-cms vulnerabilities; 2 - application vulnerabilities; 4 - Linux software vulnerabilities; 5 - Windows system vulnerabilities
VulLevels String Severity level: 1 - low-risk; 2 - medium-risk; 3 - high-risk; 4 - critical (multiple selections are separated by English commas)
TimerInterval Integer Regular detection interval (days)
TimerTime String Regular detection time, such as 00:00
VulEmergency Integer Whether an emergency vulnerability: 0 - no; 1 - yes
StartTime String Start time
EnableScan Integer Whether enabled
EndTime String End time
ClickTimeout Integer One-click scan timeout duration, such as 1800 seconds
Uuids Array of String If empty, scan hosts with all Professional, Premium, and General Discount editions by default; if not empty, only scan the selected hosts.
ScanMethod Integer
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 Querying Information about Scheduled Detection Configuration

This example shows you how to use AppID to query the information about scheduled detection configuration.

Input Example

https://cwp.intl.tencentcloudapi.com/?Action=DescribeScanVulSetting
&<Common request parameters>

Output Example

{
    "Response": {
        "ClickTimeout": 0,
        "EnableScan": 0,
        "EndTime": "23:50",
        "RequestId": "54111d3a-373d-4175-80dd-8d855b595647",
        "ScanMethod": 0,
        "StartTime": "00:40",
        "TimerInterval": 1,
        "TimerTime": "00:40",
        "Uuids": [],
        "VulCategories": "4;5;1;2",
        "VulEmergency": 1,
        "VulLevels": "1;2;3;4"
    }
}

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
InternalError.MainDBFail Failed to manipulate the data.
InvalidParameter Incorrect parameter.
InvalidParameter.MissingParameter Missing parameter.
InvalidParameter.ParsingError Incorrect parameter parsing.
InvalidParameterValue Invalid parameter value.
MissingParameter Missing parameter error.