文档首页/ 数据安全中心 DSC/ API参考/ API说明/ 敏感数据识别/ 查询敏感数据识别任务的子任务列表
更新时间:2025-08-01 GMT+08:00
分享

查询敏感数据识别任务的子任务列表

功能介绍

查询敏感数据识别任务的子任务列表

调用方法

请参见如何调用API

URI

GET /v1/{project_id}/sdg/scan/job/{job_id}/task

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID

job_id

String

敏感数据识别任务ID

表2 Query参数

参数

是否必选

参数类型

描述

offset

Integer

页码

limit

Integer

分页大小

请求参数

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

total

Integer

子任务总数

tasks

Array of ScanTask objects

子任务列表

表4 ScanTask

参数

参数类型

描述

id

String

任务ID

category

String

资产类型

status

String

任务状态

progress

Integer

任务进度

asset_name

String

资产名称

asset_id

String

资产ID

start_time

Long

任务开始时间

end_time

Long

任务结束时间

scanned_object_num

Integer

已识别对象数

to_be_scanned_object_num

Integer

待识别对象数

scan_speed

Integer

扫描速率

skip_object_num

Integer

跳过对象数

last_scan_risk

String

上次识别结果

security_level_name

String

识别结果

security_level_color

Integer

识别结果等级

状态码:400

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

请求示例

查询敏感数据识别任务的子任务列表

GET /v1/{project_id}/sdg/scan/job/{job_id}/task

响应示例

状态码:200

请求成功

{
  "tasks" : [ {
    "id" : "xxxxxxxxxxxx",
    "category" : "OBS",
    "status" : "FINISHED",
    "progress" : 0,
    "asset_name" : "xxxx",
    "asset_id" : "xxxxxxxxxxxx",
    "start_time" : 1711960461182,
    "end_time" : 1711961941073,
    "scanned_object_num" : 4,
    "to_be_scanned_object_num" : 0,
    "scan_speed" : 1,
    "skip_object_num" : 15,
    "last_scan_risk" : "HIGH",
    "security_level_name" : "L4",
    "security_level_color" : 9
  } ],
  "total" : 1
}

状态码:400

无效请求

{
  "error_code" : "dsc.40000011",
  "error_msg" : "Invalid parameter"
}

状态码

状态码

描述

200

请求成功

400

无效请求

错误码

请参见错误码

相关文档