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

Service for managing the project's container-registry credentials.

Constructors

Constructor

new RegistriesService(token: Internal, init: never): RegistriesService;

Built by the SDK: get it from the client.

Parameters:

  • token Internal
  • init never

Returns:

  • RegistriesService

Methods

delete()

delete(host: string): Promise<void>;

Deletes the credential for host.

Parameters:

  • host string

Returns:

  • Promise<void>

get()

get(host: string): Promise<Registry>;

Gets one registry credential's metadata (never its password). Daytona Cloud does not serve this read yet: until it does, it throws NotFoundError even for a credential that exists; use list() or iter() there.

Parameters:

  • host string

Returns:

  • Promise<Registry>

iter()

iter(options: ListRegistriesOptions = {}): AsyncIterable<Registry>;

Parameters:

  • options ListRegistriesOptions = {}

Returns:

  • AsyncIterable<Registry>

list()

list(options: ListRegistriesOptions = {}): Promise<ListResult<Registry>>;

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

Parameters:

  • options ListRegistriesOptions = {}

Returns:

  • Promise<ListResult<Registry>>

set()

set(host: string, options: SetRegistryOptions): Promise<Registry>;

Creates or replaces the credential for host and returns its metadata.

Parameters:

  • host string
  • options SetRegistryOptions

Returns:

  • Promise<Registry>

ListRegistriesOptions

Properties:

  • cursor? string
  • limit? number

Registry

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

Properties:

  • host string - The normalized registry host (Docker Hub aliases read index.docker.io).
  • kind RegistryKind
  • rawKind string
  • username string
  • description? string
  • createdAt string
  • updatedAt string

SetRegistryKind

type SetRegistryKind = Exclude<RegistryKind, 'unknown'>

The kinds registries.set() takes; for ecr_role the username is the IAM role ARN the platform assumes.


SetRegistryOptions

Options for creating or replacing a registry credential. The API replaces the whole credential, so each call states all of it, with one request.

Properties:

  • username string
  • kind SetRegistryKind - basic for a plain username and password. For ecr_role, username is the IAM role ARN and no password is needed.
  • password? string - Write-only, never returned. Required for every kind but ecr_role.
  • description? string - Omitted leaves the credential without a description.