All Products
Search
Document Center

Security Center:GetVirusScanLatestTaskStatistic

Last Updated:Jun 17, 2026

Retrieves the scan information of the latest virus scan.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:GetVirusScanLatestTaskStatistic

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. Alibaba Cloud generates a unique identifier for each request. You can use the ID to troubleshoot issues.

7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1

Data

object

The custom result data.

TaskId

string

The ID of the scan task.

fc98d58eb56f699d49bf7ebbd6d7****

ScanTime

integer

The timestamp of the scan. Unit: milliseconds.

1681145862000

Status

integer

The status of the scan task.

Valid values for the main task:

  • 0: The task is pending.

  • 10: The scan is in progress.

  • 100: The scan is complete.

Valid values for the subtask:

  • 0: The scan is pending.

  • 20: The detection script is delivered.

  • 50: The scan is running on the server.

  • 100: The scan is complete.

0

SuspiciousCount

integer

The number of security alerts detected by the scan.

2

SuspiciousMachine

integer

The number of servers on which risks are detected.

2

SafeMachine

integer

The number of servers on which no risks are detected.

1

ScanMachine

integer

The number of servers scanned in this virus scan.

3

ScanType

string

The scan type of this virus scan. Valid values:

  • system: automatic system scan.

  • user: user-defined scan.

system

ScanPath

array

The file paths specified for scanning when the scan type is user-defined.

string

The file path.

C:/test1

Progress

string

The progress percentage of the scan task.

92

MachineName

string

The name of the server.

testMahine1

CompleteMachine

integer

The number of servers that completed the scan.

2

UnCompleteMachine

integer

The number of servers that have not completed the scan or failed the scan.

1

RiskLevel

string

The highest risk level of the alerts detected by the scan. Valid values:

  • high: high-risk.

  • medium: medium-risk.

  • low: low-risk.

medium

Examples

Success response

JSON format

{
  "RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1",
  "Data": {
    "TaskId": "fc98d58eb56f699d49bf7ebbd6d7****",
    "ScanTime": 1681145862000,
    "Status": 0,
    "SuspiciousCount": 2,
    "SuspiciousMachine": 2,
    "SafeMachine": 1,
    "ScanMachine": 3,
    "ScanType": "system",
    "ScanPath": [
      "C:/test1"
    ],
    "Progress": "92",
    "MachineName": "testMahine1",
    "CompleteMachine": 2,
    "UnCompleteMachine": 1,
    "RiskLevel": "medium"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

500 ServerError ServerError
403 NoPermission caller has no permission

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.