from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
registry_list = client.cloud.registries.list(
project_id=0,
region_id=0,
)
print(registry_list.count)
{
"count": 1,
"results": [
{
"created_at": "2024-06-18T09:36:53.335000Z",
"id": 1,
"name": "company-name",
"repo_count": 1,
"storage_limit": 5,
"storage_used": 1000000000,
"updated_at": "2024-06-18T09:36:53.335000Z",
"url": "<string>"
}
]
}
List all container registries in the specified project and region.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
registry_list = client.cloud.registries.list(
project_id=0,
region_id=0,
)
print(registry_list.count)
{
"count": 1,
"results": [
{
"created_at": "2024-06-18T09:36:53.335000Z",
"id": 1,
"name": "company-name",
"repo_count": 1,
"storage_limit": 5,
"storage_used": 1000000000,
"updated_at": "2024-06-18T09:36:53.335000Z",
"url": "<string>"
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
List of registries
The response is of type object
.
Was this page helpful?