A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to /v2/registry/subscription
.
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.registry.get_subscription()
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.