API网关 APIG-查询环境列表:响应示例

时间:2023-12-01 09:43:03

响应示例

状态码: 200

OK

{
  "total" : 2,
  "size" : 2,
  "envs" : [ {
    "create_time" : "2019-02-12T19:42:19.914989Z",
    "name" : "RELEASE",
    "remark" : "xxx",
    "id" : "DEFAULT_ENVIRONMENT_RELEASE_ID"
  }, {
    "create_time" : "2020-07-31T06:41:43Z",
    "name" : "DEV",
    "remark" : "Development environment",
    "id" : "7a1ad0c350844ee69479b47df9a881cb"
  } ]
}

状态码: 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"
}

状态码: 500

Internal Server Error

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