All Products
Search
Document Center

Microservices Engine:QueryGatewayRegion

Last Updated:Mar 24, 2023

Queries available regions.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The data structure.

RequestIdstring

The ID of the request.

9e78a671-4b9b-4dd4-99c1-0b9da87d3dec
HttpStatusCodeinteger

The HTTP status code returned.

200
Messagestring

The message returned.

The request is successfully processed.
Codeinteger

The status code returned.

200
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Dataarray

The returned data.

string

The information about regions.

{"cn-hanghzou"}

Examples

Sample success responses

JSONformat

{
  "RequestId": "9e78a671-4b9b-4dd4-99c1-0b9da87d3dec",
  "HttpStatusCode": 200,
  "Message": "The request is successfully processed.\n",
  "Code": 200,
  "Success": true,
  "Data": [
    "{\"cn-hanghzou\"}"
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400duplicatedClusterAliasNameduplicated cluster alias nameThe instance name is duplicate. User another name.
400illegalRequestillegal request:%sInvalid request: %s
400invalidParameterparameter error:%sInvalid input parameter: %s
403NoPermissionYou are not authorized to perform this operation.-
404clusterNotFoundcluster not foundThe cluster is not found.
500systemErrorsystem errorAn error occurred on the system. Try again later.
500regcenterErrorregister center error:%sInstance request error: %s

For a list of error codes, visit the Service error codes.