Updated on 2025-09-22 GMT+08:00

Changing the Status of a Vulnerability

Function

This API is used to change the status of a vulnerability.

URI

PUT /v5/{project_id}/vulnerability/status

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

No

String

Enterprise project ID. The value 0 indicates the default enterprise project. To query all enterprise projects, set this parameter to all_granted_eps.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

Content-Type

No

String

Default value: application/json; charset=utf-8

Table 4 Request body parameters

Parameter

Mandatory

Type

Description

operate_type

Yes

String

Operation type.

  • ignore

  • not_ignore: unignore

  • immediate_repair: fix

  • verify

data_list

Yes

Array of VulOperateInfo objects

Vulnerability list

Table 5 VulOperateInfo

Parameter

Mandatory

Type

Description

vul_id

Yes

String

Vulnerability ID

host_id_list

Yes

Array of strings

Server list

Response Parameters

Status code: 200

successful response

None

Example Requests

Change the vulnerability status of the server whose ID is 71a15ecc-049f-4cca-bd28-5e90aca1817f. Change the status of EulerOS-SA-2021-1894 to ignored.

{
  "operate_type" : "ignore",
  "data_list" : [ {
    "vul_id" : "EulerOS-SA-2021-1894",
    "host_id_list" : [ "71a15ecc-049f-4cca-bd28-5e90aca1817f" ]
  } ]
}

Example Responses

None

Status Codes

Status Code

Description

200

successful response

Error Codes

See Error Codes.