Zum Hauptinhalt springen

Pull image and recreate

POST/stacks/{stackId}/services/{serviceId}/actions/pull/
v2
POST
container-pull-image-for-service

Pulls the image for this container and recreates it. This is equivalent to running docker-compose pull and docker-compose up -d on the command line.

Request

  • stackIdstring (uuid)
    required

    ID of the Stack to pull the image of a Service for.

  • serviceIdstring (uuid)
    required

    ID of the Service to pull the image for.

Responses

Kein Request-Inhalt spezifiziert.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/stacks/f0f86186-0a5a-45b2-aa33-502777496347/services/f0f86186-0a5a-45b2-aa33-502777496347/actions/pull