应用与数据集成平台 ROMA Connect-部署后端API:响应示例

时间:2023-11-01 16:22:58

响应示例

状态码: 200

OK

{  "api_definition" : {    "content_type" : "json",    "created_time" : "2020-09-18T09:25:59Z",    "description" : "",    "id" : "bd42841c20184da6bbf457c6d8a06e37",    "instance" : "f0fa1789-3b76-433b-a787-9892951c620e",    "method" : "GET",    "modified_time" : "2020-09-19T06:29:35Z",    "name" : "livedata_api_demo",    "parameters" : [ ],    "path" : "/test/function",    "return_format" : false,    "roma_app_id" : "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d",    "roma_app_name" : "app-demo",    "scripts" : [ {      "type" : "SQL",      "object_name" : "fun",      "content" : "ZnVuY3Rpb24gZXhlY3V0ZShkYXRhKSB7CiAgICByZXR1cm4gIkhlbGxvIHdvcmxkISIKfQ==",      "created_time" : "2020-09-19T06:29:35Z",      "modified_time" : "2020-09-19T06:29:35Z"    } ],    "status" : 4,    "type" : "function",    "version" : "1.0.1"  },  "api_id" : "1d0432f1a82a49d08b9308ae7bd96ca6",  "deploy_time" : "2020-09-19T06:58:13Z",  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",  "group_id" : "01ce7564a2544713b80c7c08eb85f5d0",  "id" : "5e19590f54444d8a9b8fe698ce26e9fe",  "ld_api_id" : "bd42841c20184da6bbf457c6d8a06e37"}

状态码: 400

Bad Request

{  "error_code" : "APIG.2011",  "error_msg" : "Invalid parameter value,parameterName:auth_type. Please refer to the support documentation"}

状态码: 401

Unauthorized

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

状态码: 403

Forbidden

{  "error_code" : "APIG.1005",  "error_msg" : "No permissions to request this method"}

状态码: 404

Not Found

{  "error_code" : "APIG.3084",  "error_msg" : "The livedata API does not exist, id: bd42841c20184da6bbf457c6d8a06e37"}

状态码: 409

Conflict

{  "error_code" : "APIG.3479",  "error_msg" : "the roma app used for deploy must be the same as the roma app of the ld api"}

状态码: 500

Internal Server Error

{  "error_code" : "APIG.9999",  "error_msg" : "System error"}
support.huaweicloud.com/api-roma/PublishLiveDataApi.html