更新时间:2022-12-29 GMT+08:00
查询脱敏任务执行列表
功能介绍
查询脱敏任务执行列表
URI
GET /v1/{project_id}/sdg/server/mask/dbs/templates/{template_id}/tasks
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目ID |
template_id | 是 | String | 模板ID |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
workspace_id | 否 | String | 工作区ID |
offset | 否 | Integer | 页码 |
limit | 否 | Integer | 分页大小 |
请求参数
无
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
tasks | Array of DBMaskTaskInfo objects | 脱敏任务列表 |
total | Integer | 脱敏任务总数 |
参数 | 参数类型 | 描述 |
|---|---|---|
db_type | String | DB类型 |
end_time | Long | 任务结束时间 |
execute_line | Integer | 执行行数 |
id | String | 任务ID |
progress | Integer | 执行进度 |
run_status | String | 任务运行状态 |
start_time | Long | 任务开始时间 |
task_template_id | String | 任务模板ID |
type | String | 任务类型 |
状态码: 400
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误信息 |
请求示例
查询脱敏任务执行列表
GET /v1/{project_id}/sdg/server/mask/dbs/templates/{template_id}/tasks 响应示例
状态码: 200
OK
{
"tasks" : [ {
"db_type" : "MySQL",
"end_time" : 1658717568622,
"execute_line" : 100000,
"id" : "xxxxxxxxxxxx",
"progress" : 100,
"run_status" : "FINISHED",
"start_time" : 1658717544469,
"task_template_id" : "xxxxxxxxxxxx",
"type" : "MANUAL"
} ],
"total" : 1
} 状态码: 400
无效请求
{
"error_code" : "dsc.40000011",
"error_msg" : "Invalid parameter"
} 状态码
状态码 | 描述 |
|---|---|
200 | OK |
400 | 无效请求 |
错误码
请参见错误码。
父主题:数据静态脱敏

