For AI agents: the complete documentation index is at https://www.daytona.com/llms.txt. Append .md to any docs page URL to get it as Markdown.

Sign Up
Skip to Content

RegistriesService

class RegistriesService()

Project container-registry credentials, which image pulls and builds use to reach private registries.

Passwords are write-only: the API never returns them, and the SDK keeps no copy of one it sends.

RegistriesService.__init__

def __init__() -> None

RegistriesService.delete

def delete(host: str, /) -> None

Delete the credential for host.

RegistriesService.get

def get(host: str, /) -> Registry

Fetch one registry credential's metadata (never its password).

Daytona Cloud does not serve this read yet: until it does, it raises NotFoundError even for a credential that exists; use list or iter there.

RegistriesService.iter

def iter(*,
         cursor: Optional[str] = None,
         limit: Optional[int] = None) -> Iterator[Registry]

RegistriesService.list

def list(*,
         cursor: Optional[str] = None,
         limit: Optional[int] = None) -> ListResult[Registry]

List one page of registry credential metadata (never passwords).

RegistriesService.set

def set(host: str,
        /,
        *,
        username: str,
        kind: SetRegistryKind,
        password: Optional[str] = None,
        description: Optional[str] = None) -> Registry

Create or replace the credential for host and return its metadata.

The API replaces the whole credential, so each call states all of it, with one request: kind is required (basic for a plain username and password), and description omitted (or None) leaves the credential without one. password (write-only, never returned) is required for every kind but ecr_role, whose username is the IAM role ARN the platform assumes.

AsyncRegistriesService

class AsyncRegistriesService()

Project container-registry credentials, which image pulls and builds use to reach private registries.

Passwords are write-only: the API never returns them, and the SDK keeps no copy of one it sends.

AsyncRegistriesService.__init__

def __init__() -> None

AsyncRegistriesService.list

async def list(*,
               cursor: Optional[str] = None,
               limit: Optional[int] = None) -> ListResult[Registry]

List one page of registry credential metadata (never passwords).

AsyncRegistriesService.iter

async def iter(*,
               cursor: Optional[str] = None,
               limit: Optional[int] = None) -> AsyncIterator[Registry]

AsyncRegistriesService.get

async def get(host: str, /) -> Registry

Fetch one registry credential's metadata (never its password).

Daytona Cloud does not serve this read yet: until it does, it raises NotFoundError even for a credential that exists; use list or iter there.

AsyncRegistriesService.set

async def set(host: str,
              /,
              *,
              username: str,
              kind: SetRegistryKind,
              password: Optional[str] = None,
              description: Optional[str] = None) -> Registry

Create or replace the credential for host and return its metadata.

The API replaces the whole credential, so each call states all of it, with one request: kind is required (basic for a plain username and password), and description omitted (or None) leaves the credential without one. password (write-only, never returned) is required for every kind but ecr_role, whose username is the IAM role ARN the platform assumes.

AsyncRegistriesService.delete

async def delete(host: str, /) -> None

Delete the credential for host.

Registry

@dataclass(frozen=True, slots=True, kw_only=True)
class Registry()

A project registry credential's metadata; the password is write-only and never returned.

Attributes:

  • host str
  • kind RegistryKind
  • raw_kind str
  • username str
  • created_at datetime
  • updated_at datetime
  • description Optional[str] = None

SetRegistryKind

SetRegistryKind = Literal['basic', 'ghcr', 'gcr', 'ecr', 'ecr_role']

The kinds registries.set() takes; for ecr_role the username is the IAM role ARN the platform assumes, and no password is needed.