Images and environments
Machine images, their components, launch environments and the image version the platform serves.
Machine images, their components, launch environments and the image version the platform serves.
List images
GET /v1/images
The built-in universal image and your private images.
Responses:
200OK. Body: list of MachineImage
Errors use the error envelope.
Save an image
POST /v1/images
Validates a manifest of components and saves it as a private image you can create Kisten from. Every component is already part of the universal image, so the image is ready at once.
Request body: CreateImageRequest
| Field | Type | Required | Description |
|---|---|---|---|
components | array of ImageComponentSelection | no | |
from | string | no | |
name | string | yes | |
resources | null or ImageResources | no |
Responses:
200OK. Body: MachineImage
Errors use the error envelope.
Resolve an image
POST /v1/images/resolve
Resolves a manifest without saving it: exact versions, added dependencies, recommended resources and content hashes.
Request body: ResolveImageRequest
| Field | Type | Required | Description |
|---|---|---|---|
components | array of ImageComponentSelection | no | |
from | string | no | |
resources | null or ImageResources | no |
Responses:
200OK. Body: ResolvedImagePlan
Errors use the error envelope.
Get an image
GET /v1/images/{id}
One built-in or private image by its ID.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Responses:
200OK. Body: MachineImage
Errors use the error envelope.
Delete an image
DELETE /v1/images/{id}
Deletes a private image. It answers 409 while any Kiste still uses it; the built-in image cannot be deleted.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The object's ID. |
Responses:
200OK. Body: DeletedImage
Errors use the error envelope.
List image components
GET /v1/image-components
The components an image manifest can select, with their exact versions and dependencies.
Responses:
200OK. Body: list of ImageComponent
Errors use the error envelope.
List environments
GET /v1/environments
Your launch environments.
Responses:
200OK. Body: list of EnvironmentResponse
Errors use the error envelope.
Create an environment
POST /v1/environments
Creates a launch environment: repositories to clone, variables, secret files and a setup script that runs in the background of a new Kiste. Secret files are stored encrypted.
Request body: CreateEnvironmentRequest
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
repositories | array of RepositorySpec | no | |
secret_files | array of SecretFileInput | no | |
setup_script | string | no | |
variables | map of string | no |
Responses:
200OK. Body: EnvironmentVersionResponse
Errors use the error envelope.
Get an environment
GET /v1/environments/{name}
An environment with its current version.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | The Kiste's name. |
Responses:
200OK. Body: EnvironmentVersionResponse
Errors use the error envelope.
Publish a new environment version
PUT /v1/environments/{name}
Every change creates a new, immutable version. A Kiste keeps the version it was created with.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | The Kiste's name. |
Request body: UpdateEnvironmentRequest
| Field | Type | Required | Description |
|---|---|---|---|
repositories | array of RepositorySpec | no | |
secret_files | array of SecretFileInput | no | |
setup_script | string | no | |
variables | map of string | no |
Responses:
200OK. Body: EnvironmentVersionResponse
Errors use the error envelope.
Get the current image version
GET /v1/runtime/image
The image version the platform serves and its release notes. A Kiste whose image_version differs has an update available; lines in the notes starting with BREAKING: deserve attention.
Responses:
200OK. Body: RuntimeImageResponse
Errors use the error envelope.