Queries the status of a virus scan task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeScanTaskProgress

The operation that you want to perform. Set the value to DescribeScanTaskProgress.

RegionId String Yes cn-hangzhou

The ID of the region.

TaskId Long No 123456

The ID of the virus scan task. If this parameter is not specified, the status of the latest scan task is queried by default.

You can call the StartVirusScanTask operation to query the ID of a virus scan task.

Response parameters

Parameter Type Example Description
CreateTime String 2021-05-18T02:40:24Z

The time when the task was created.

RequestId String B9C6780A-1783-4E3F-A6AD-6C99F5A7FBDE

The ID of the request.

TaskStatus String Success

The status of the task. Valid values:

  • init: The task is being initialized.
  • Processing: The task is in progress.
  • Success: The task is completed.
  • Failed: The task failed.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DescribeScanTaskProgress
&RegionId=cn-hangzhou
&TaskId=123456
&<Common request parameters>

Sample success responses

XML format

<DescribeScanTaskProgressResponse>
      <RequestId>B9C6780A-1783-4E3F-A6AD-6C99F5A7FBDE</RequestId>
      <CreateTime>2021-05-18T02:40:24Z</CreateTime>
      <TaskStatus>Success</TaskStatus>
</DescribeScanTaskProgressResponse>

JSON format

{
    "RequestId": "B9C6780A-1783-4E3F-A6AD-6C99F5A7FBDE",
    "CreateTime": "2021-05-18T02:40:24Z",
    "TaskStatus": "Success"
}