In this section

API Reference

The Deploys API, rendered directly from an OpenAPI spec.

This page is rendered entirely from the openapi.yaml file sitting next to it in this page bundle — no separate Swagger UI build step, no JS widget to keep updated, just Hugo parsing the spec at build time.

Deploys API

v1.0

Trigger and inspect deployments for a service.

Base URL: https://api.example.com/v1

get /services/{serviceId}/deploys

Returns the most recent deploys for a service, newest first.

Parameters

NameInTypeDescription
serviceId*pathstringThe service identifier.
limitqueryintegerMax number of results to return (default 20).

Responses

200 — A list of deploys.

array of object

404 — Service not found.
post /services/{serviceId}/deploys

Starts a new deploy of the given image to the service.

Parameters

NameInTypeDescription
serviceId*pathstringThe service identifier.

Request Body

application/json

FieldTypeDescription
image*stringContainer image, including tag.
replicasintegerDesired replica count. Defaults to current value.

Responses

202 — Deploy accepted and queued.
FieldTypeDescription
idstringUnique deploy identifier.
imagestringContainer image that was deployed.
startedAtstringISO-8601 timestamp.
statusstringOne of pending, running, succeeded, failed.
400 — Invalid request body.
get /services/{serviceId}/deploys/{deployId}

Parameters

NameInTypeDescription
serviceId*pathstringThe service identifier.
deployId*pathstringThe deploy identifier.

Responses

200 — The deploy.
FieldTypeDescription
idstringUnique deploy identifier.
imagestringContainer image that was deployed.
startedAtstringISO-8601 timestamp.
statusstringOne of pending, running, succeeded, failed.
Last updated May 20, 2024 Edit this page