from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_region_capacity_list = client.cloud.inference.get_capacity_by_region()
print(inference_region_capacity_list.count)
{
"count": 1,
"results": [
{
"capacity": [
{
"capacity": 42,
"flavor_name": "inference-16vcpu-232gib-1xh100-80gb"
}
],
"region_id": 4
}
]
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_region_capacity_list = client.cloud.inference.get_capacity_by_region()
print(inference_region_capacity_list.count)
{
"count": 1,
"results": [
{
"capacity": [
{
"capacity": 42,
"flavor_name": "inference-16vcpu-232gib-1xh100-80gb"
}
],
"region_id": 4
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
OK
The response is of type object
.
Was this page helpful?