INFO-openapi治理元数据
更新时间: 2024-03-11 02:44:19
阅读 981
INFO-openapi治理元数据
适用模块
openapi 设置表或字段安全等级示例具体说明
1、openapi接口使用参照:https://study.sf.163.com/documents/read/service_support/dsc-p-a-01162、接口(logic/data/update)说明参照:
https://docs.popo.netease.com/lingxi/c78b014c6bdc4b5aa8303d4f3ee0b9c5?appVersion=3.75.3&deviceType=0&popo_hidenativebar=1&popo_noindicator=1&disposable_login_token=1
3、接口使用
3.1、LTS 7.0 update0.8及其以后:
jdbc url通过select * from mammut.pf_hive_cluster \G
接口:
http://easydemo-prod-openapi.163yun.com/openapi/easydmap/logic/data/update
入参:
{ "url":"jdbc:hive2://dsc-demo08.jdlt.163.org:2182,dsc-demo10.jdlt.163.org:2182,dsc-demo09.jdlt.163.org:2182/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;principal=hive/_HOST@BDMS_DEMO.COM",
"type":"hive",
"user":"bdms",
"db":"bdms",
"table":"conf_test111",
"securityLevel":"3", #表安全等级
"authType":"AKSK",
"timestamp":1690255039878,
"accessKey":"44974d8a1c7d41d581524b204e2c0285",
"sig":"7ddaddd973aa42a3d0608a51ca450952",
"columnInfos":[{
"columnName":"userid",
"securityLevel":"2" #字段安全等级
}]
}
上述接口执行两遍,一次草稿、一次自动免审批发布
3.2、LTS 7.0 update0.8之前:
接口:
http://easydemo-prod-openapi.163yun.com/openapi/easydmap/logic/data/update
入参:
{ "url":"jdbc:hive2://dsc-demo08.jdlt.163.org:2182,dsc-demo10.jdlt.163.org:2182,dsc-demo09.jdlt.163.org:2182/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;principal=hive/_HOST@BDMS_DEMO.COM",
"type":"hive",
"user":"bdms",
"db":"bdms",
"table":"conf_test111",
"securityLevel":"3",
"authType":"AKSK",
"timestamp":1690255039878,
"accessKey":"44974d8a1c7d41d581524b204e2c0285",
"metaDataStatus":"DRAFT", #强制设置草稿态
"sig":"7ddaddd973aa42a3d0608a51ca450952" }
3.2.1、接口调用一次,生成草稿
3.2.2、页面发布(可批量发布、可设置数据治理管理员免审批发布)
使用示例
具体使用说明作者:林帅
文档反馈
以上内容对您是否有帮助?