Performs a virus scan task on a server or multiple servers.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TargetInfo | string | Yes | The asset on which you want to perform a virus scan task. You can select servers or server groups to scan for viruses. The value is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that contains the following fields:
| [{"type":"uuid","name":"Host001","target":"503201a7-14c6-4280-801b-1169ed42****"}] |
Response parameters
Examples
Sample success responses
JSON
format
{
"ScanTaskId": 282832,
"RequestId": "DAE17926-4ABE-4DBD-9600-DDCB9B200F35"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
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.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-08-01 | The Error code has changed | View Change Details |
2022-08-01 | The Error code has changed | View Change Details |