Help Center/ Host Security Service/ API Reference/ API Description/ Vulnerability Management/ Viewing the Handling History of Image Vulnerabilities
Updated on 2026-04-03 GMT+08:00

Viewing the Handling History of Image Vulnerabilities

Function

This API is used to view the handling history of an image vulnerability.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

GET /v5/{project_id}/image/vulnerability/handle-history

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID, which is used to specify the project that an asset belongs to. After the project ID is configured, you can query assets in the project using the project ID. For details about how to obtain it, see Obtaining a Project ID.

Constraints

N/A

Range

The value can contain 1 to 256 characters.

Default Value

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

No

String

Definition

Enterprise project ID, which is used to filter assets in different enterprise projects. For details, see Obtaining an Enterprise Project ID.

To query assets in all enterprise projects, set this parameter to all_granted_eps.

Constraints

You need to set this parameter only after the enterprise project function is enabled.

Range

The value can contain 1 to 256 characters.

Default Value

0: default enterprise project.

offset

No

Integer

Definition

Offset, which specifies the start position of the record to be returned.

Constraints

N/A

Range

The value range is 0 to 2,000,000.

Default Value

The default value is 0.

limit

No

Integer

Definition

Number of records displayed on each page.

Constraints

N/A

Range

Value range: 10-200

Default Value

10

vul_id

Yes

String

Definition

Vulnerability ID.

Constraints

N/A

Range

The value can contain 1 to 256 characters.

Default Value

N/A

image_id

No

String

Definition

Image ID.

Constraints

N/A

Range

The value can contain 1 to 256 characters.

Default Value

N/A

image_type

Yes

String

Definition

Image type.

Constraints

N/A

Range

  • local_image: local image

  • registry: repository image

Default Value

N/A

image_name

No

String

Definition

Image name.

Constraints

N/A

Range

Length: 0 to 256 characters

Default Value

N/A

status

No

String

Definition

Vulnerability status.

Constraints

N/A

Range

  • vul_status_unfix: not fixed

  • vul_status_ignored: ignored

Default Value

N/A

user_name

No

String

Definition

The user who handled it.

Constraints

N/A

Range

The value can contain 0 to 256 characters.

Default Value

N/A

handle_type

No

String

Definition

Operation type.

Constraints

N/A

Range

  • ignore: Ignore

  • not_ignore: unignore

  • add_to_whitelist: added to the whitelist

Default Value

N/A

app_name

No

String

Definition

Application name.

Constraints

N/A

Range

The value can contain 0 to 256 characters.

Default Value

N/A

app_version

No

String

Definition

Application version.

Constraints

N/A

Range

The value can contain 0 to 256 characters.

Default Value

N/A

remark

No

String

Definition

Remarks.

Constraints

N/A

Range

The value can contain 0 to 256 characters.

Default Value

N/A

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token, which contains user identity and permissions. The token can be used for identity authentication when an API is called. For details about how to obtain the token, see Obtaining a User Token.

Constraints

N/A

Range

The value can contain 1 to 32,768 characters.

Default Value

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total_num

Integer

Total

data_list

Array of GeneralImageVulOperationsResponseInfo objects

Vulnerability Handling Record Details

Table 5 GeneralImageVulOperationsResponseInfo

Parameter

Type

Description

image_id

String

Definition

Image ID.

Range

The value can contain 0 to 128 characters.

image_name

String

Definition

Image name.

Range

Length: 0 to 128 characters

user_name

String

Definition

The user who handled it.

Range

The value can contain 0 to 256 characters.

handle_time

Long

Handling time, in ms.

handle_type

String

Definition

Operation Type

Range

  • ignore: Ignore

  • not_ignore: unignore

  • add_to_whitelist: add to whitelist

status

String

Definition

Vulnerability status.

Range

  • vul_status_unfix: not fixed

  • vul_status_ignored: ignored

app_name

String

Definition

Software name.

Range

The value can contain 0 to 256 characters.

app_version

String

Definition

Software version.

Range

The value can contain 0 to 256 characters.

app_path

String

Definition

Software path.

Range

The value can contain 0 to 256 characters.

remark

String

Definition

Remarks.

Range

The value can contain 0 to 256 characters.

image_digest

String

Definition

Image identifier.

Range

The value can contain 0 to 256 characters.

image_version

String

Definition

Image tag.

Range

The value can contain 0 to 256 characters.

agent_id

String

Definition

Agent ID

Range

The value can contain 0 to 512 characters.

Example Requests

View the handling history of an image vulnerability

GET https://{endpoint}/v5/{project_id}/image/vulnerability/handle-history?offset=0&limit=200&enterprise_project_id=all_granted_eps

Example Responses

Status code: 200

Request succeeded.

{
  "total_num" : 1,
  "data_list" : [ {
    "image_id" : 123456,
    "image_name" : "image",
    "image_digest" : "xxx",
    "image_version" : "xxx",
    "agent_id" : "xxx",
    "user_name" : "scc_hss_g00840938_01",
    "handle_time" : 1736473343218,
    "handle_type" : "manual_repair",
    "status" : "vul_status_fixed",
    "app_name" : "async-http-client",
    "app_version" : "1.7.17",
    "app_path" : "/usr/local/bin/mysqld",
    "remark" : "One application vulnerability has been fixed."
  } ]
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

See Error Codes.