数据治理中心 DataArts Studio-获取数据源中表的字段:响应示例

时间:2023-11-01 16:20:39

响应示例

状态码: 200

Success,返回字段列表

{  "columns" : [ {    "comment" : "",    "column_name" : "age",    "column_type" : "integer",    "seq_number" : 2,    "primary" : false,    "partition_col" : false  }, {    "comment" : "",    "column_name" : "address",    "column_type" : "character varying",    "seq_number" : 3,    "primary" : false,    "partition_col" : false  }, {    "comment" : "",    "column_name" : "phonenum",    "column_type" : "character varying",    "seq_number" : 4,    "primary" : false,    "partition_col" : false  } ],  "total_count" : 7,  "table_id" : "NativeTable-9b18c0ad6ef5404caef4e6cbaccdae6f-postgres-dm_autotest-QQQQQQQstudents_infoweq"}

状态码: 400

{  "error_code" : "DAYU.4402",  "error_msg" : "The operation failed, detail msg {0}."}

状态码: 500

{  "error_code" : "DAYU.3531",  "error_msg" : "Internal server error: {0}"}
support.huaweicloud.com/api-dataartsstudio/getColumns_0.html