API网关 APIG-查看APP未绑定的API列表:响应示例

时间:2023-12-01 09:42:58

响应示例

状态码: 200

OK

{
  "total" : 2,
  "size" : 2,
  "apis" : [ {
    "auth_type" : "APP",
    "run_env_name" : "",
    "group_name" : "api_group_001",
    "publish_id" : "",
    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
    "name" : "Api_function",
    "remark" : "FunctionGraph backend API",
    "run_env_id" : "",
    "id" : "abd9c4b2ff974888b0ba79be7e6b2763",
    "req_uri" : "/test/function"
  }, {
    "auth_type" : "APP",
    "run_env_name" : "RELEASE",
    "group_name" : "APIGroup_d3da",
    "publish_id" : "ca2631e233a74a758744ae1e19cc5ad7",
    "group_id" : "6acd94abe58747ee8a73b10c70817bac",
    "name" : "API_test",
    "remark" : "FunctionGraph backend API",
    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
    "id" : "11cbec3a7a8345ca981b86d161bc436e",
    "req_uri" : "/appcode"
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : "APIG.2012",
  "error_msg" : "Invalid parameter value,parameterName:api_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.3004",
  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
}

状态码: 500

Internal Server Error

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