Domain name for API request: csip.intl.tencentcloudapi.com.
This API is used to modify vulnerability scanning (period scanning).
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: ModifyVulScanPeriodic. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| Status | Yes | Integer | Period scanning switch (0-off, 1-on) |
| VulCategory.N | Yes | Array of String | Vulnerability type Enumeration value:
|
| Level.N | Yes | Array of String | Vulnerability level Enumeration value:
|
| Method | Yes | String | Scanning method (VersionCompare: version comparison, POC: POC detection, VersionComparePOC: version comparison+POC detection) |
| StartTime | Yes | String | Start time (09:00:00) |
| EndTime | Yes | String | End time (18:00:00) |
| AssetRange | Yes | Integer | Asset scope (0-All assets, 1-Custom assets, 2-Remove asset, 3-Automatic asset match) |
| CycleType | Yes | Integer | Period scanning type Enumeration value:
|
| Timeout | Yes | Integer | Scan timeout duration Measurement unit: second |
| CycleValue.N | No | Array of Integer | Cycle value Value ranges from 1 to 31 Measurement unit: day of the week or per month |
| MemberId.N | No | Array of String | Group account member id |
| AssetList.N | No | Array of String | Asset list (instance_id list) |
| AllowSync | No | Integer | Whether to run the synchronize configuration 0-not allowed, 1-allowed |
| EnableSync | No | Integer | Whether the admin account has enabled the auto sync configuration switch 0-Off, 1-On |
| SyncTo.N | No | Array of Integer | Configuration sync to which account appid |
| TagIds.N | No | Array of Integer | Tag ID |
| 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. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyVulScanPeriodic
<Common request parameters>
{
"Status": 1,
"VulCategory": [
"LINUX"
],
"Level": [
"CRITICAL"
],
"Method": "VersionComparePOC",
"StartTime": "03:50",
"EndTime": "05:50",
"AssetRange": 0,
"CycleType": 2,
"Timeout": 3600,
"CycleValue": [
1
],
"MemberId": [
"mem-ten********7************"
],
"AssetList": [
"ins-********"
]
}
{
"Response": {
"RequestId": "bcb33b18-dbc7-4685-aa41-1ad51d0f9a3d"
}
}
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 |
|---|---|
| InternalError | Internal error. |
文档反馈