Performs operations on detected vulnerabilities. You can fix, verify, or ignore vulnerabilities.

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 ModifyOperateVul

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

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.
RegionId String Yes cn-hangzhou

The ID of the region.

Type String Yes cve

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerability
  • sys: Windows system vulnerability
VulInfo.N.Name String No oval:com.redhat.rhsa:def:20171100

The name of vulnerability N.

VulInfo.N.DesktopId String No ecd-138dsptkrt00u****

The ID of cloud desktop N in which vulnerabilities are detected.

VulInfo.N.Tag String No oval

The tag of vulnerability N.

Reason String No Postpone the fix

The reason why the vulnerability is ignored.

This parameter is required only when OperateType is set to vul_ignore.

Response parameters

Parameter Type Example Description
RequestId String 484256DA-D816-44D2-9D86-B6EE4D5BA78C

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyOperateVul
&OperateType=vul_fix
&RegionId=cn-hangzhou
&Type=cve
&<Common request parameters>

Sample success responses

XML format

<ModifyOperateVul>
      <RequestId>484256DA-D816-44D2-9D86-B6EE4D5BA78C</RequestId>
</ModifyOperateVul>

JSON format

{
    "RequestId":"484256DA-D816-44D2-9D86-B6EE4D5BA78C"
}