查询敏感数据识别分级分类树结构信息
功能介绍
查询敏感数据识别分级分类树结构信息
调用方法
请参见如何调用API。
URI
GET /v1/{project_id}/scan-templates/{template_id}/classifications
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID |
|
template_id |
是 |
String |
模板ID |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
template_id |
String |
识别模板ID |
|
template_category |
String |
识别模板分类 |
|
template_name |
String |
识别模板名称 |
|
classification_trees |
Array of TemplateClassificationTree objects |
分级分类属性结构 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
分级分类ID |
|
project_id |
String |
项目ID |
|
name |
String |
分级分类名称 |
|
root_id |
String |
分级分类根ID |
|
parent_id |
String |
分级分类上级ID |
|
depth |
Integer |
深度 |
|
children_nums |
Integer |
子分级分类总数 |
|
create_time |
Long |
创建时间 |
|
update_time |
Long |
更新时间 |
|
rule_nums |
Long |
规则个数 |
|
children |
Array of TemplateClassificationTree objects |
子分类分级列表 |
状态码:400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码 |
|
error_msg |
String |
错误信息 |
请求示例
查询敏感数据识别分级分类树结构信息
GET /v1/{project_id}/scan-templates/{template_id}/classifications
响应示例
状态码:200
请求成功
{
"template_id" : "xxxxxxxxxxxx",
"template_category" : "BUILT_IN",
"template_name" : "xxxxxxxxxxxx",
"classification_trees" : [ {
"id" : "xxxxxxxxxxxx",
"project_id" : "xxxxxxxxxxxx",
"name" : "xxxxxxxxxxxx",
"root_id" : "xxxxxxxxxxxx",
"parent_id" : "",
"depth" : 1,
"children_nums" : 1,
"create_time" : 1686888427971,
"update_time" : 1686888427971,
"rule_nums" : 3,
"children" : [ {
"id" : "xxxxxxxxxxxx",
"project_id" : "xxxxxxxxxxxx",
"name" : "xxxxxxxxxxxx",
"root_id" : "xxxxxxxxxxxx",
"parent_id" : "xxxxxxxxxxxx",
"depth" : 1,
"children_nums" : 0,
"create_time" : 1686888427971,
"update_time" : 1686888427971,
"rule_nums" : 5,
"children" : null
} ]
} ]
}
状态码:400
无效请求
{
"error_code" : "dsc.40000011",
"error_msg" : "Invalid parameter"
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
请求成功 |
|
400 |
无效请求 |
错误码
请参见错误码。