Help Center/ Data Security Center/ API Reference/ API Description/ Asset Management/ Obtaining the Latest Scan Task Details of an Asset
Updated on 2026-01-13 GMT+08:00

Obtaining the Latest Scan Task Details of an Asset

Function

This API is used to obtain the latest scan task details of a specified asset, including the task status and execution result.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/sdg/asset/{asset_id}/last-job

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

asset_id

Yes

String

Asset ID, which uniquely identifies an asset.

project_id

Yes

String

Project ID, which is used to identify a specific project.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

job_id

String

Unique identifier of the job, which uniquely identifies a job.

job_name

String

Job name, which identifies a job.

task_id

String

Unique identifier of the task, which uniquely identifies a task.

type

String

Job type, which indicates the job category. The options are OBS, DATABASE, BIGDATA, GIT, MRS, MRS_HIVE, LTS, UNKNOWN, and ALL.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Latest task details of the asset obtained.

401

Unauthorized access. The request is rejected.

403

Unauthorized operation. The request is rejected.

404

The asset does not exist. Failed to obtain the asset.

Error Codes

See Error Codes.