Queries virus scan tasks based on conditions such as the task type, task status, and server information.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TaskId | string | No | The ID of the virus scan task. Note
You can call the ListVirusScanTask operation to query the ID.
| 1471d8ebb96795b41ede090b9758**** |
ScanType | string | No | The type of the virus scan task. Valid values:
| user |
Status | integer | No | The status of the virus scan task. Valid values:
| 1 |
StartTime | long | No | The timestamp when the virus scan task started. Unit: milliseconds. | 1680919232000 |
EndTime | long | No | The timestamp when the virus scan task ended. Unit: milliseconds. | 1680919232999 |
RootTask | boolean | No | Specifies whether the virus scan task is the root task. | true |
RootTaskId | string | No | The ID of the root task. Note
You can call the GetVirusScanLatestTaskStatistic operation to query the ID.
| 89f5d7813bd59dd237580a8664b3xxxx |
MachineName | string | No | The name of the server. | oracle-win-001**** |
InternetIp | string | No | The public IP address of the server. | 120.27.XX.XX |
IntranetIp | string | No | The private IP address of the server. | 172.26.XX.XX |
CurrentPage | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 20. | 20 |
StatusList | array | No | The statuses of virus scan tasks. | |
integer | No | The status of the virus scan task. Valid values:
| 1 | |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A4EB8B1C-1DEC-5E18-BCD0-D1BBB3936FA7",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 224
},
"List": [
{
"TaskId": "2e75557bfa570381f5c516cad9b6xxxx",
"ScanType": "system",
"Status": 1,
"StartTime": 1651290987000,
"EndTime": 1662343860051,
"InstanceName": "sql-test-0****",
"InternetIp": "8.210.XX.XX",
"IntranetIp": "172.25.XX.XX",
"TaskName": "VIRUS_VUL_SCHEDULE_SCAN",
"Progress": 62,
"ScanPath": [
"C:/test1"
],
"Uuid": "49e25e0f-bb51-4a5a-a1b3-13a4ddaa****"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.