To list all repositories in your container registry, send a GET request to /v2/registry/$REGISTRY_NAME/repositoriesV2
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
per_page |
integer | False | Number of items returned per page | 20 |
page |
integer | False | Which ‘page’ of paginated results to return. Ignored when ‘page_token’ is provided. | 1 |
page_token |
string | False | Token to retrieve of the next or previous set of results more quickly than using ‘page’. | |
registry_name |
string | True | The name of a container registry. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.registry.list_repositories_v2(registry_name="example")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.