查询敏感数据识别任务列表
功能介绍
查询敏感数据识别任务列表
调用方法
请参见如何调用API。
URI
GET /v1/{project_id}/sdg/scan/job
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
offset |
否 |
Integer |
页码 |
limit |
否 |
Integer |
分页大小 |
content |
否 |
String |
任务名称 |
is_new |
否 |
Boolean |
是否新版分级分类 |
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
tasks |
Array of ScanJob objects |
本次返回的扫描任务列表 |
total |
Long |
任务总数 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
任务ID |
name |
String |
任务名称 |
rule_groups |
Array of strings |
任务使用的规则组 |
scan_templates |
Map<String,String> |
任务使用的模板 |
cycle |
String |
任务执行方式 |
status |
String |
任务当前状态 |
last_run_time |
Long |
任务上一次执行时间 |
create_time |
Long |
任务创建时间 |
last_scan_risk |
String |
任务上一次扫描风险等级结果 |
use_nlp |
Boolean |
是否使用了NLP进行扫描 |
open |
Boolean |
任务开启状态 |
topic_urn |
String |
SMN服务通知主题 |
start_time |
Long |
任务启动时间 |
security_level_name |
String |
识别结果风险等级名称 |
security_level_color |
Long |
识别结果风险等级 |
asset_infos |
Array of AssetInfo objects |
资产列表 |
状态码:400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误信息 |
请求示例
查询敏感数据识别任务列表
GET /v1/{project_id}/sdg/scan/job { "limit" : 10, "offset" : 0, "content" : "xxxxxxxxxxxx", "is_new" : true }
响应示例
状态码:200
请求成功
{ "total" : 1, "tasks" : [ { "id" : "xxxxxxxxxxxx", "name" : "xxxx", "cycle" : "xxxx", "status" : "FINISHED", "open" : true, "rule_groups" : [ "xxx" ], "scan_templates" : { "xxx" : "xxx" }, "last_run_time" : 1712904721162, "create_time" : 1712022723454, "last_scan_risk" : "HIGH", "use_nlp" : false, "topic_urn" : "", "start_time" : 0, "security_level_name" : "L4", "security_level_color" : 9, "asset_infos" : [ { "asset_id" : "xxx", "asset_type" : "obs" } ] } ] }
状态码:400
无效请求
{ "error_code" : "dsc.40000011", "error_msg" : "Invalid parameter" }
状态码
状态码 |
描述 |
---|---|
200 |
请求成功 |
400 |
无效请求 |
错误码
请参见错误码。