POST /config/import

批量原子导入配置条目:先全量门禁校验,任一条不过则整体不写。写面只认运维专用写 key。

配置服务 `ApiKeyAuth` application/json

请求体

字段类型必填示例约束描述
entries array of
字段类型必填示例约束描述
content_type string 否
data_id string 否
service_name string 否
yaml_body string 否
否
namespace string 否
reason string 否
replace_existing boolean 否

响应

状态描述Schema
200逐条导入结果(门禁失败/导入冲突亦为 200:整体不写,results[].ok=false + error_code/message)object
400body 非法、namespace 非法或入参校验失败(entries 空/reason 缺失)object
401缺少或无效的 X-API-Keyobject
403非写 key 或 key 的 namespace 与请求不符object
500服务内部错误object

引用的 Schema

service.ImportOutcome

字段类型必填示例约束描述
app_id string 否
environment string 否
key string 否
ok boolean 否
reason string 否
service_name string 否
skipped boolean 否
tenant_id string 否