All Products
Search
Document Center

Security Center:CreateVirusScanOnceTask

Last Updated:Feb 20, 2024

Creates a one-time virus scan task that is immediately executed.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SelectionKeystringNo

The key that stores the asset information.

Note You can call the GetAssetSelectionConfig operation to obtain the key value.
845de1ec-4b08-42e1-b564-31321e48xxxx
ScanTypestringNo

The type of the virus scan. Valid values:

  • system: system scan.
  • user: custom scan.
system
ScanPatharrayNo

The information about the scan path that is required for a custom scan.

stringNo

The absolute path of the file.

/var/spool/cron

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

CE500770-42D3-442E-9DDD-156E0F9F3B45

Examples

Sample success responses

JSONformat

{
  "RequestId": "CE500770-42D3-442E-9DDD-156E0F9F3B45"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history