云服务器内容精选

  • 编辑和删除Elasticsearch脱敏任务 等待运行或运行中的脱敏任务不支持编辑或删除。 在Elasticsearch脱敏任务列表中,在目标脱敏任务的“操作”列,单击“编辑”,可修改脱敏任务配置信息,配置脱敏任务信息请参见创建并运行Elasticsearch脱敏任务。 图6 编辑Elasticsearch脱敏任务 在Elasticsearch脱敏任务列表中,在目标脱敏任务的“操作”列,单击“删除”,如图7所示。 图7 删除Elasticsearch脱敏任务 脱敏任务删除后不支持恢复,建议您谨慎操作。
  • 响应示例 状态码: 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 表3 响应Body参数 参数 参数类型 描述 tasks Array of DBMaskTaskInfo objects 脱敏任务列表 total Integer 脱敏任务总数 表4 DBMaskTaskInfo 参数 参数类型 描述 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 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息
  • URI GET /v1/{project_id}/sdg/server/mask/dbs/templates/{template_id}/tasks 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID template_id 是 String 模板ID 表2 Query参数 参数 是否必选 参数类型 描述 workspace_id 否 String 工作区ID offset 否 Integer 页码 limit 否 Integer 分页大小