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

查询敏感数据识别分级分类模板列表

功能介绍

查询敏感数据识别分级分类模板列表

调用方法

请参见如何调用API

URI

GET /v1/{project_id}/scan-templates

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID

表2 Query参数

参数

是否必选

参数类型

描述

offset

Integer

页码

limit

Integer

分页大小

请求参数

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

total

Integer

识别模板总数

scan_templates_list

Array of ScanTemplateEntity objects

识别模板列表

表4 ScanTemplateEntity

参数

参数类型

描述

id

String

识别模板ID

project_id

String

项目ID

name

String

模板名称

description

String

模板描述

category

String

模板分类

is_default

Boolean

是否默认模板

create_time

Long

创建时间

update_time

Long

更新时间

is_deleted

Boolean

是否删除

状态码:400

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息

请求示例

查询敏感数据识别分级分类模板列表

GET /v1/{project_id}/scan-templates

响应示例

状态码:200

请求成功

{
  "scan_templates_list" : [ {
    "id" : "xxxxxxxxxxxx",
    "project_id" : "xxxxxxxxxxxx",
    "name" : "xxxxxxxxxxxx",
    "description" : "xxxxxxxxxxxx",
    "category" : "BUILT_IN",
    "is_default" : true,
    "create_time" : 1710560820120,
    "update_time" : 1710573345350,
    "is_deleted" : false
  } ],
  "total" : 1
}

状态码:400

无效请求

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

状态码

状态码

描述

200

请求成功

400

无效请求

错误码

请参见错误码