Get regions

GET /api/v1/serverless/regions

Retrieve the available cloud service provider regions where a project can be created.

Responses

  • 200 application/json

    The regions list

    Hide response attributes Show response attributes object
    • id string Required

      Unique human-readable identifier for a region in Elastic Cloud.

    • name string Required

      The human readable name for the region

    • csp string Required

      The identifier of the cloud service provider hosting this region.

      Values are aws, gcp, or azure.

    • csp_region string Required

      The unique identifier of the underlying cloud service provider region.

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • errors array[object] Required
      Hide errors attributes Show errors attributes object
      • message string Required

        A human-readable message of the error.

      • code string Required

        An identifier for this type of error.

GET /api/v1/serverless/regions
curl \
 -X GET https://api.elastic-cloud.com/api/v1/serverless/regions
Response examples (200)
[
  {
    "id": "aws-us-east-1",
    "name": "US (Virginia)",
    "csp": "aws",
    "csp_region": "us-east-1"
  }
]
Response examples (401)
{
  "errors": [
    {
      "message": "Explicative error message",
      "code": "code.error"
    }
  ]
}