Sign Up

Docker Registry

GET/docker-registry
AuthorizationBearer <token>

API Key access

In: header

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/docker-registry"
[  {    "id": "123e4567-e89b-12d3-a456-426614174000",    "name": "My Docker Hub",    "url": "https://registry.hub.docker.com",    "username": "username",    "project": "my-project",    "registryType": "internal",    "createdAt": "2024-01-31T12:00:00Z",    "updatedAt": "2024-01-31T12:00:00Z"  }]
POST/docker-registry
AuthorizationBearer <token>

API Key access

In: header

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/docker-registry" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "url": "string",    "username": "string",    "password": "string"  }'
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "name": "My Docker Hub",  "url": "https://registry.hub.docker.com",  "username": "username",  "project": "my-project",  "registryType": "internal",  "createdAt": "2024-01-31T12:00:00Z",  "updatedAt": "2024-01-31T12:00:00Z"}
GET/docker-registry/registry-push-access
AuthorizationBearer <token>

API Key access

In: header

Query Parameters

regionId?string

ID of the region where the snapshot will be available (defaults to organization default region)

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/docker-registry/registry-push-access"
{  "username": "temp-user-123",  "secret": "eyJhbGciOiJIUzI1NiIs...",  "registryUrl": "registry.example.com",  "registryId": "123e4567-e89b-12d3-a456-426614174000",  "project": "library",  "expiresAt": "2023-12-31T23:59:59Z"}
GET/docker-registry/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

ID of the docker registry

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/docker-registry/string"
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "name": "My Docker Hub",  "url": "https://registry.hub.docker.com",  "username": "username",  "project": "my-project",  "registryType": "internal",  "createdAt": "2024-01-31T12:00:00Z",  "updatedAt": "2024-01-31T12:00:00Z"}
PATCH/docker-registry/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

ID of the docker registry

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/docker-registry/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "url": "string",    "username": "string"  }'
{  "id": "123e4567-e89b-12d3-a456-426614174000",  "name": "My Docker Hub",  "url": "https://registry.hub.docker.com",  "username": "username",  "project": "my-project",  "registryType": "internal",  "createdAt": "2024-01-31T12:00:00Z",  "updatedAt": "2024-01-31T12:00:00Z"}
DELETE/docker-registry/{id}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

id*string

ID of the docker registry

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

curl -X DELETE "https://example.com/docker-registry/string"
Empty