获取敏感数据分类结果列表
功能介绍
获取敏感数据分类结果列表
调用方法
请参见如何调用API。
URI
GET /v1/{project_id}/scan-jobs/{job_id}/classification-results
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID |
job_id |
是 |
String |
敏感数据识别任务ID |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
offset |
否 |
Integer |
页码 |
limit |
否 |
Integer |
分页大小 |
keyword |
否 |
String |
敏感信息对象名称关键字 |
asset_type |
否 |
String |
资源类型 |
asset_id |
否 |
String |
资产ID |
security_level_ids |
否 |
Array of strings |
风险等级ID数组 |
marker |
否 |
Array of strings |
上一批/下一批信息 |
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
total |
Integer |
识别结果总数 |
classification_list |
Array of ClassificationResultsEntity objects |
识别结果对象列表 |
marker |
Array of objects |
分批结果 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
结果标记 |
project_id |
String |
项目ID |
job_id |
String |
子任务ID |
task_id |
String |
任务ID |
ins_id |
String |
实例ID |
asset_id |
String |
资产ID |
asset_name |
String |
资产名称 |
asset_type |
String |
资产类型 |
object_name |
String |
对象名称 |
object_full_path |
String |
对象全路径 |
security_level_name |
String |
识别结果 |
security_level_id |
String |
识别结果等级ID |
security_level_color |
Integer |
识别结果等级 |
create_time |
Long |
创建时间 |
update_time |
Long |
更新时间 |
scan_time |
Long |
识别个数 |
match_info |
Array of ClassificationMatchInfo objects |
匹配规则列表 |
参数 |
参数类型 |
描述 |
---|---|---|
template_id |
String |
识别模板ID |
template_name |
String |
识别模板名称 |
rule_id |
String |
规则ID |
rule_name |
String |
规则名称 |
security_level_name |
String |
识别结果等级名称 |
security_level_id |
String |
识别结果等级ID |
security_level_color |
Integer |
识别结果等级 |
classification_name |
String |
分类分级名称 |
classification_id |
String |
分类分级ID |
matched_detail |
String |
匹配明细 |
matched_examples |
Array of MatchedExamples objects |
匹配规则列表 |
状态码:400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误信息 |
请求示例
获取敏感数据识别结果列表
GET /v1/{project_id}/scan-jobs/{job_id}/classification-results
响应示例
状态码:200
请求成功
{ "classification_list" : [ { "id" : "xxxxxxxxxxxx", "project_id" : "xxxxxxxxxxxx", "job_id" : "xxxxxxxxxxxx", "task_id" : "xxxxxxxxxxxx", "ins_id" : "xxxxxxxxxxxx", "asset_id" : "xxxxxxxxxxxx", "asset_name" : "xxxxxxxxxxxx", "asset_type" : "OBS", "object_name" : "xxxxxxxxxxxx", "object_full_path" : "xxxxxxxxxxxx", "security_level_name" : "L4", "security_level_id" : "xxxxxxxxxxxx", "security_level_color" : 4, "create_time" : 1710560820120, "update_time" : 1710573345350, "scan_time" : 12293, "match_info" : [ { "template_id" : "xxxxxxxxxxxx", "template_name" : "xxxxxxxxxxxx", "rule_id" : "xxxxxxxxxxxx", "rule_name" : "xxxxx", "security_level_name" : "L4", "security_level_id" : "xxxxxxxxxxxx", "security_level_color" : 5, "classification_name" : "xxxxxxxxxxxx", "classification_id" : "xxxxxxxxxxxx", "matched_detail" : "xxx" } ] } ], "total" : 1, "marker" : [ { }, { } ] }
状态码:400
无效请求
{ "error_code" : "dsc.40000011", "error_msg" : "Invalid parameter" }
状态码
状态码 |
描述 |
---|---|
200 |
请求成功 |
400 |
无效请求 |
错误码
请参见错误码。