Skip to main content

Get a Volume belonging to a Stack

GET/stacks/{stackId}/volumes/{volumeId}/
v2
GET
container-get-volume

Request

  • stackIdstring (uuid)
    required

    ID of the Stack the Volume belongs too. ID of the default Stack equals the ID of the Project.

  • volumeIdstring (uuid)
    required

    ID of the Volume to be retrieved.

Responses

application/json

OK

  • idstring (uuid)
    required
  • linkedServicesarray of string (uuid)
    • Array[
    • *string (uuid)
    • ]
  • namestring
    required
  • orphanedboolean
    required

    Whether the Volume is attached to a Stack.

  • stackIdstring (uuid)
    required
  • storageUsageInBytesinteger (int64)
    required
  • storageUsageInBytesSetAtstring (date-time)
    required
  • Usage examples

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