Manually scans virus.

Description

When you call this operation, you must specify a workspace or a cloud desktop by specifying the OfficeSiteId or DesktopId parameter.

Note When you specify a workspace, all cloud desktops within the workspace are scanned.

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 StartVirusScanTask

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

RegionId String Yes cn-hangzhou

The ID of the region.

OfficeSiteId.N RepeatList No cn-hangzhou+dir-363353****

The ID of workspace N.

DesktopId.N RepeatList No ecd-138dsptkrt00u****

The ID of cloud desktop N.

Response parameters

Parameter Type Example Description
RequestId String 9C638DCB-E5A8-423E-9C3B-06BCBB564B11

The ID of the request.

ScanTaskId Long 123456

The ID of the virus scan task.

Examples

Sample requests

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

Sample success responses

XML format

<StartVirusScanTaskResponse>
      <ScanTaskId>123456</ScanTaskId>
      <RequestId>9C638DCB-E5A8-423E-9C3B-06BCBB564B11</RequestId>
</StartVirusScanTaskResponse>

JSON format

{
    "ScanTaskId": "123456",
    "RequestId": "9C638DCB-E5A8-423E-9C3B-06BCBB564B11"
}