Workload Volumes

POST /internal/environments/{environment_id}/volumes

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

environment_idinteger required

Environment ID

Request body

namestring required

2-64 characters of [a-z0-9_.-], starting with a letter or digit; unique per environment.

retain_on_deleteboolean

Keep the data when the volume is deleted.

size_mbinteger nullable

Response

backingstring required

named (a Docker named volume).

created_atstring required

ISO 8601, UTC.

environment_idinteger required
idinteger required
namestring required
node_idinteger nullable

The node holding the data: null until first created, 0 for the control plane. A replica that mounts it is pinned there.

pin_reasonstring nullable

The pin the console shows, e.g. "pinned to node 0 by volume data".

retain_on_deleteboolean required
size_mbinteger nullable
updated_atstring required

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    3 more changes in this revision