更新时间:2025-09-12 GMT+08:00
分享

新增保护措施

功能介绍

批量创建新的数据保护措施

调用方法

请参见如何调用API

URI

POST /v1/{project_id}/protect-measures/batch-create

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目唯一标识符

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

[数组元素]

Array of MeasureInfo objects

保护措施信息

表3 MeasureInfo

参数

是否必选

参数类型

描述

description

String

描述

life_cycle

String

生命周期类型

measure_type

String

措施类型

name

String

名称

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

id

String

ID

msg

String

消息

status

String

响应码

状态码:201

资源创建

请求示例

[ {
  "description" : "string",
  "life_cycle" : "string",
  "measure_type" : "string",
  "name" : "string"
} ]

响应示例

状态码

状态码

描述

200

创建成功

201

资源创建

401

未授权,用户未登录或令牌无效

403

无权限访问该资源

404

指定的项目不存在

错误码

请参见错误码

相关文档