Zum Hauptinhalt springen

List Stacks belonging to a Project

GET/projects/{projectId}/stacks/
v2
GET
container-list-stacks

Request

  • projectIdstring (uuid)
    required

    ID of the Project to list Stacks for.

Responses

application/json

OK

  • Array[
  • *object
    • descriptionstring
      required
    • disabledboolean
      required
    • idstring (uuid)
      required
    • prefixstring
      required

      Prefix for all service-names in this stack.

    • projectIdstring (uuid)
      required
    • servicesarray of object
      • Array[
      • *object
        • 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
  • ]
  • volumesarray of object
    • Array[
    • *object
      • idstring (uuid)
        required
      • namestring
        required
      • orphanedboolean
        required

        Whether the Volume is attached to a Stack.

      • stackIdstring (uuid)
        required
      • storageUsageInBytesinteger
        required
      • storageUsageInBytesSetAtstring (date-time)
        required
    • ]
  • ]

    Usage examples

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