Zum Hauptinhalt springen

Get a Service belonging to a Stack

GET/stacks/{stackId}/services/{serviceId}/
v2
GET
container-get-service

Request

  • stackIdstring (uuid)
    required

    ID of the Stack the Service belongs to. ID of the default Stack equals the ID of the Project.

  • serviceIdstring (uuid)
    required

    ID of the Service to be retrieved.

Responses

application/json

OK

  • deployedStateobject
    required
    • commandarray of string
      • Array[
      • *string
      • ]
  • entrypointarray of string
    • Array[
    • *string
    • ]
  • envsobject
    • *string
  • imagestring
    required
  • portsarray of string
    • Array[
    • *string
    • ]
  • volumesarray of string
    • Array[
    • *string
    • ]
  • descriptionstring
    required
  • idstring (uuid)
    required
  • pendingStateobject
    required
    • commandarray of string
      • Array[
      • *string
      • ]
  • entrypointarray of string
    • Array[
    • *string
    • ]
  • envsobject
    • *string
  • imagestring
    required
  • portsarray of string
    • Array[
    • *string
    • ]
  • volumesarray of string
    • Array[
    • *string
    • ]
  • projectIdstring (uuid)
    required
  • serviceNamestring
    required
  • stackIdstring (uuid)
    required
  • statusstring (one of: running, stopped, restarting, error, creating, starting)
    required
  • Usage examples

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