All Products
Search
Document Center

OpenSearch:DescribeRegions

Last Updated:Oct 16, 2024

Queries the endpoints of all regions that support OpenSearch.

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 syntax

GET /v4/openapi/regions HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The request ID.

3B7E42BD-1D63-2F6B-C8E0-41BACEA76EEB
resultarray<object>

The results returned.

resultobject
endpointstring

The endpoint.

opensearch.cn-hangzhou.aliyuncs.com
regionIdstring

The region ID.

cn-hangzhou
localNamestring

The region name.

China (Hangzhou)
consoleUrlstring

The console URL.

https://opensearch-cn-hangzhou.console.aliyun.com

Examples

Sample success responses

JSONformat

{
  "requestId": "3B7E42BD-1D63-2F6B-C8E0-41BACEA76EEB",
  "result": [
    {
      "endpoint": "opensearch.cn-hangzhou.aliyuncs.com",
      "regionId": "cn-hangzhou",
      "localName": "China (Hangzhou)\n",
      "consoleUrl": "https://opensearch-cn-hangzhou.console.aliyun.com"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history