from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
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:59Z",
"created_on": "2019-12-31T23:59:59Z",
"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"
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
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:59Z",
"created_on": "2019-12-31T23:59:59Z",
"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"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Region ID
11
If true, null available_volume_type
is replaced with a list of available volume types.
false
OK
The response is of type object
.
Was this page helpful?