应用与数据集成平台 ROMA CONNECT-查询API列表:响应示例

时间:2023-11-29 17:31:39

响应示例

状态码: 200

OK

{
  "total" : 1,
  "size" : 1,
  "apis" : [ {
    "name" : "Api_http",
    "type" : 1,
    "version" : "V0.0.1",
    "req_protocol" : "HTTPS",
    "req_method" : "GET",
    "req_uri" : "/test/http",
    "auth_type" : "AUTHORIZER",
    "auth_opt" : {
      "app_code_auth_type" : "DISABLE"
    },
    "cors" : false,
    "match_mode" : "NORMAL",
    "backend_type" : "HTTP",
    "remark" : "Web backend API",
    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
    "body_remark" : "",
    "result_normal_sample" : "",
    "result_failure_sample" : "",
    "authorizer_id" : "8d0443832a194eaa84244e0c1c1912ac",
    "tags" : [ "webApi" ],
    "roma_app_id" : "f37f5e81d9cb4424bf704ef2b0ac7600",
    "domain_name" : "",
    "id" : "5f918d104dc84480a75166ba99efff21",
    "status" : 1,
    "arrange_necessary" : 2,
    "register_time" : "2020-07-31T12:42:51Z",
    "update_time" : "2020-08-02T16:32:47.046289Z",
    "group_name" : "api_group_001",
    "group_version" : "V1",
    "run_env_name" : "RELEASE",
    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
    "publish_id" : "6f918d104dc84480a75166ba99efff41",
    "publish_time" : "2020-07-31 12:42:51",
    "roma_app_name" : "roma-3xfg",
    "ld_api_id" : "",
    "backend_api" : null,
    "api_group_info" : null,
    "req_params" : null
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : "APIG.2012",
  "error_msg" : "Invalid parameter value,parameterName:name. 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.3030",
  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
}

状态码: 500

Internal Server Error

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