GET
/
cloud
/
v1
/
regions
/
{region_id}
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
region = client.cloud.regions.get(
    region_id=11,
)
print(region.id)
{
  "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.

Path Parameters

region_id
integer
required

Region ID

Examples:

11

Query Parameters

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.