文档首页/ 数据安全中心 DSC/ API参考/ API说明/ 敏感数据识别/ 获取敏感数据分类结果列表
更新时间:2025-07-09 GMT+08:00

获取敏感数据分类结果列表

功能介绍

获取敏感数据分类结果列表

调用方法

请参见如何调用API

URI

GET /v1/{project_id}/scan-jobs/{job_id}/classification-results

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID

job_id

String

敏感数据识别任务ID

表2 Query参数

参数

是否必选

参数类型

描述

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

表3 响应Body参数

参数

参数类型

描述

total

Integer

识别结果总数

classification_list

Array of ClassificationResultsEntity objects

识别结果对象列表

marker

Array of objects

分批结果

表4 ClassificationResultsEntity

参数

参数类型

描述

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

匹配规则列表

表5 ClassificationMatchInfo

参数

参数类型

描述

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

匹配规则列表

表6 MatchedExamples

参数

参数类型

描述

line_number

Long

行数

matched_content

String

规则内容

状态码:400

表7 响应Body参数

参数

参数类型

描述

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

无效请求

错误码

请参见错误码