import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
registry_list = client.cloud.registries.list(
project_id=0,
region_id=0,
)
print(registry_list.count)
List all container registries in the specified project and region.
GET
/
cloud
/
v1
/
registries
/
{project_id}
/
{region_id}
Python
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
registry_list = client.cloud.registries.list(
project_id=0,
region_id=0,
)
print(registry_list.count)