湖仓构建 LakeFormation-列举Catalog下所有的函数:响应示例

时间:2025-02-12 14:54:57

响应示例

状态码: 200

OK

{  "page_info" : {    "current_count" : 2,    "next_marker" : null,    "previous_marker" : null  },  "functions" : [ {    "catalog_name" : "catalog_1",    "database_name" : "database",    "function_name" : "123kk",    "function_type" : "JAVA",    "owner" : "owner_1",    "owner_type" : "USER",    "owner_auth_source_type" : " IAM ",    "class_name" : "lxy",    "create_time" : "2022-12-08T08:18:54.000+00:00",    "resource_uris" : [ {      "type" : "FILE",      "uri" : "obs://lakeformation-test/test2/6/"    } ]  }, {    "catalog_name" : "catalog_2",    "database_name" : "database",    "function_name" : "1456",    "function_type" : "JAVA",    "owner" : "owner_2",    "owner_type" : "USER",    "owner_auth_source_type" : "IAM",    "class_name" : "34",    "create_time" : "2022-12-09T01:50:56.000+00:00",    "resource_uris" : [ {      "type" : "JAR",      "uri" : "obs://lakeformation-test/"    }, {      "type" : "FILE",      "uri" : "obs://lakeformation-test/test3/"    } ]  } ]}

状态码: 400

Bad Request

{  "error_code" : "common.01000001",  "error_msg" : "failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"}

状态码: 401

Unauthorized

{  "error_code": 'APIG.1002',  "error_msg": 'Incorrect token or token resolution failed'}

状态码: 403

Forbidden

{  "error" : {    "code" : "403",    "message" : "X-Auth-Token is invalid in the request",    "error_code" : null,    "error_msg" : null,    "title" : "Forbidden"  },  "error_code" : "403",  "error_msg" : "X-Auth-Token is invalid in the request",  "title" : "Forbidden"}

状态码: 404

Not Found

{  "error_code" : "common.01000001",  "error_msg" : "response status exception, code: 404"}

状态码: 500

Internal Server Error

{  "error_code" : "common.00000500",  "error_msg" : "internal error"}
support.huaweicloud.com/api-lakeformation/ListAllFunctions.html