GET
/
cloud
/
v1
/
regions
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.regions.list()
page = page.results[0]
print(page.id)
{
  "count": 1,
  "results": [
    {
      "access_level": "core",
      "ai_service_endpoint_id": 6,
      "available_volume_types": [
        "standard",
        "ssd_hiiops",
        "cold"
      ],
      "coordinates": {
        "latitude": 41.40338,
        "longitude": 2.17403
      },
      "country": "LU",
      "created_at": "2019-12-31T23:59:59",
      "created_on": "2019-12-31T23:59:59",
      "ddos_endpoint_id": 3,
      "display_name": "Luxembourg",
      "endpoint_type": "public",
      "external_network_id": "c843c3e6-ef4d-4b92-8db2-e16ac05c5650",
      "file_share_types": [
        "standard",
        "vast"
      ],
      "has_ai": true,
      "has_ai_gpu": true,
      "has_baremetal": false,
      "has_basic_vm": false,
      "has_dbaas": false,
      "has_k8s": true,
      "has_kvm": true,
      "has_sfs": false,
      "id": 1,
      "keystone_id": 1,
      "keystone_name": "ED-9",
      "metrics_database_id": 1,
      "state": "NEW",
      "task_id": null,
      "vlan_physical_network": "br-ex",
      "zone": "EMEA"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

limit
integer
default:100

Limit the number of returned regions. Falls back to default of 100 if not specified. Limited by max limit value of 1000

Required range: 0 < x <= 1000
Examples:

100

offset
integer
default:0

Offset value is used to exclude the first set of records from the result

Required range: x >= 0
Examples:

0

order_by
enum<string>

Order by field and direction.

Available options:
created_at.asc,
created_at.desc,
display_name.asc,
display_name.desc
product
enum<string>

If defined then return only regions that support given product.

Available options:
containers,
inference
show_volume_types
boolean
default:false

If true, null available_volume_type is replaced with a list of available volume types.

Examples:

false

Response

200 - application/json

OK

The response is of type object.