All Products
Search
Document Center

Server Load Balancer:DescribeRegions

更新時間:Oct 11, 2024

Queries available regions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AcceptLanguagestringNo

The supported language. Valid values:

  • zh-CN: Chinese
  • en-US: English
  • ja: Japanese
zh-CN
RegionIdstringNo

The ID of the region.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6
Regionsarray<object>

The list of regions.

Regionobject
RegionEndpointstring

The endpoint of the region.

slb.aliyuncs.com
LocalNamestring

The name of the region.

China (Beijing)
RegionIdstring

The ID of the region.

cn-beijing

Examples

Sample success responses

JSONformat

{
  "RequestId": "1651FBB6-4FBF-49FF-A9F5-DF5D696C7EC6",
  "Regions": {
    "Region": [
      {
        "RegionEndpoint": "slb.aliyuncs.com",
        "LocalName": "China (Beijing)",
        "RegionId": "cn-beijing"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterInvalidParameter-
400InvalidParameterIllegal parameter, query.namespace is not auth.
400LocationServiceTimeoutLocation service connection timeout. Please try again later.-

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

Change history

Change timeSummary of changesOperation
2023-09-08The Error code has changedView Change Details