All Products
Search
Document Center

Security Center:ModifyOperateVul

Last Updated:Jan 28, 2023

Handles detected vulnerabilities. You can fix or ignore vulnerabilities. You can also verify the vulnerability fixes.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InfostringYes

The details of the vulnerability. The value of this parameter is in the JSON format and contains the following fields:

  • name: the name of the vulnerability.

  • uuid: the UUID of the server on which the vulnerability is detected.

  • tag: the tag that is added to the vulnerability. Valid values:

    • oval: Linux software vulnerability
    • system: Windows system vulnerability
    • cms: Web-CMS vulnerability
NoteYou can call the DescribeVulList operation to query the tags that are added to vulnerabilities of other types.
  • isFront: specifies whether a pre-patch is required to fix the Windows system vulnerability. This field is required only for Windows system vulnerabilities. Valid values:

    • 0: no
    • 1: yes
NoteYou can fix multiple vulnerabilities at a time. Separate the details of multiple vulnerabilities with commas (,). You can call the DescribeVulLIst operation to query the details of vulnerabilities.
[{"name":"alilinux2:2.1903:ALINUX2-SA-2022:0007","uuid":"a3bb82a8-a3bd-4546-acce-45ac34af****","tag":"oval","isFront":0},{"name":"alilinux2:2.1903:ALINUX2-SA-2022:0007","uuid":"98a6fecc-88cd-46f2-8e35-f808a388****","tag":"oval","isFront":0}]
OperateTypestringYes

The operation that you want to perform on the vulnerability. Valid values:

  • vul_fix: fixes the vulnerability.
  • vul_verify: verifies the vulnerability fix.
  • vul_ignore: ignores the vulnerability.
  • vul_undo_ignore: cancels ignoring the vulnerability.
  • vul_delete: deletes the vulnerability.
vul_fix
TypestringYes

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerability
  • sys: Windows system vulnerability
  • cms: Web-CMS vulnerability
  • emg: urgent vulnerability
  • app: application vulnerability
  • sca: vulnerability that is detected based on software component analysis
NoteYou cannot fix the urgent vulnerabilities, application vulnerabilities, or vulnerabilities that are detected based on software component analysis.
cve
ReasonstringNo

The reason why the vulnerability is ignored.

NoteThis parameter is required only when you set OperateType to vul_ignore.
not operate

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

DFE4F166-1AC9-4FAC-A4E4-F0608AD705A6

Example

Normal return example

JSONFormat

{
  "RequestId": "DFE4F166-1AC9-4FAC-A4E4-F0608AD705A6"
}

Error codes

Http codeError codeError messageDescription
400TrialLimitmore than limit-
400InnerErrorInnerError-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the API error center.

Change history

Change timeSummary of changesOperate
2022-08-01The error codes of the API operation has changed
Change itemChange content
Error CodesThe error codes of the API operation has changed
    delete Error Codes: 400
2022-08-01The error codes of the API operation has changed
Change itemChange content
Error CodesThe error codes of the API operation has changed
    delete Error Codes: 400