from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
gpu_baremetal_cluster = client.cloud.gpu_baremetal_clusters.get(
cluster_id="1aaaab48-10d0-46d9-80cc-85209284ceb4",
project_id=1,
region_id=7,
)
print(gpu_baremetal_cluster.id)
{
"created_at": "2024-12-31T23:59:59Z",
"flavor": "g3-ai-32-192-1500-l40s-48-1",
"id": "1aaaab48-10d0-46d9-80cc-85209284ceb4",
"managed_by": "user",
"name": "my virtual gpu cluster",
"servers_count": 2,
"servers_ids": [
"b4522653-fbcd-44a0-a949-541570a52281",
"e56192de-ed28-452a-b775-eeeacc795e3b"
],
"servers_settings": {
"interfaces": [
{
"ip_family": "ipv4",
"name": "eth0",
"type": "<string>"
}
],
"security_groups": [
{
"name": "default"
}
],
"ssh_key_name": "my-ssh-key",
"user_data": "eyJ0ZXN0IjogImRhdGEifQ=="
},
"status": "active",
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"updated_at": "2025-01-11T23:59:59Z"
}
Get detailed information about a specific bare metal GPU cluster.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
gpu_baremetal_cluster = client.cloud.gpu_baremetal_clusters.get(
cluster_id="1aaaab48-10d0-46d9-80cc-85209284ceb4",
project_id=1,
region_id=7,
)
print(gpu_baremetal_cluster.id)
{
"created_at": "2024-12-31T23:59:59Z",
"flavor": "g3-ai-32-192-1500-l40s-48-1",
"id": "1aaaab48-10d0-46d9-80cc-85209284ceb4",
"managed_by": "user",
"name": "my virtual gpu cluster",
"servers_count": 2,
"servers_ids": [
"b4522653-fbcd-44a0-a949-541570a52281",
"e56192de-ed28-452a-b775-eeeacc795e3b"
],
"servers_settings": {
"interfaces": [
{
"ip_family": "ipv4",
"name": "eth0",
"type": "<string>"
}
],
"security_groups": [
{
"name": "default"
}
],
"ssh_key_name": "my-ssh-key",
"user_data": "eyJ0ZXN0IjogImRhdGEifQ=="
},
"status": "active",
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"updated_at": "2025-01-11T23:59:59Z"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
1
Region ID
7
Cluster unique identifier
"1aaaab48-10d0-46d9-80cc-85209284ceb4"
OK
The response is of type object
.
Was this page helpful?