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_capacity_list = client.cloud.inference.get_capacity_by_region()
print(region_capacity_list.count){
"count": 1,
"results": [
{
"capacity": [
{
"capacity": 1,
"flavor_name": "<string>"
}
],
"region_id": 123
}
]
}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_capacity_list = client.cloud.inference.get_capacity_by_region()
print(region_capacity_list.count){
"count": 1,
"results": [
{
"capacity": [
{
"capacity": 1,
"flavor_name": "<string>"
}
],
"region_id": 123
}
]
}API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Was this page helpful?