Handles multiple vulnerabilities at a time.

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 OperateVuls

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

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

The ID of cloud desktop N.

OperateType String Yes vul_fix

The operation to perform on the vulnerability. Valid values:

  • vul_fix: fixes the vulnerability. The system fixes the vulnerability.
  • vul_verify: verifies whether the vulnerability is fixed. Perform this operation after the vulnerability is fixed and the cloud desktop is restarted.
  • vul_ignore: ignores the vulnerability. After you ignore the vulnerability, the system gives no more prompts about the vulnerability.
  • vul_undo_ignore: cancels the ignore operation on the vulnerability. After you cancel the ignore operation on the vulnerability, the system gives prompts about the vulnerability again.
Precondition Integer Yes 1

Specifies whether to record the previous state of the vulnerability. Valid values:

  • 0: The previous state of the vulnerability is not recorded.
  • 1: The previous state of the vulnerability is recorded.
RegionId String Yes cn-hangzhou

The ID of the region.

Type String Yes sys

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerability
  • sys: Windows system vulnerability
VulName.N RepeatList Yes 5000803

The name of vulnerability N.

Reason String No test

The reason why the vulnerability is fixed.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=OperateVuls
&DesktopId.1=ecd-138dsptkrt00u****
&OperateType=vul_fix
&Precondition=1
&RegionId=cn-hangzhou
&Type=sys
&VulName.1=5000803
&<Common request parameters>

Sample success responses

XML format

<OperateVulsResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</OperateVulsResponse>

JSON format

{
    "RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}