from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
gpu_baremetal_flavor_list = client.cloud.gpu_baremetal_clusters.flavors.list(
project_id=1,
region_id=7,
)
print(gpu_baremetal_flavor_list.count)
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"disabled": false,
"hardware_description": {
"cpu": "1x Intel Xeon 4C/8T 3.7 GHz",
"disk": "2x 250GiB SSD",
"gpu": "1x NVIDIA 11GB",
"network": "1x 500Mbps",
"ram": "32 GiB"
},
"hardware_properties": {
"gpu_count": 123,
"gpu_manufacturer": "<string>",
"gpu_model": "<string>"
},
"name": "g1-gpu-1-2-1"
}
]
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
gpu_baremetal_flavor_list = client.cloud.gpu_baremetal_clusters.flavors.list(
project_id=1,
region_id=7,
)
print(gpu_baremetal_flavor_list.count)
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"disabled": false,
"hardware_description": {
"cpu": "1x Intel Xeon 4C/8T 3.7 GHz",
"disk": "2x 250GiB SSD",
"gpu": "1x NVIDIA 11GB",
"network": "1x 500Mbps",
"ram": "32 GiB"
},
"hardware_properties": {
"gpu_count": 123,
"gpu_manufacturer": "<string>",
"gpu_model": "<string>"
},
"name": "g1-gpu-1-2-1"
}
]
}
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
Set to true
to remove the disabled flavors from the response.
true
Set to true
if the response should include flavor prices.
true
OK
The response is of type object
.
Was this page helpful?