Volumes

Attach

Attach a volume to a running instance.

post/api/v2/volumes/{volume_id}/attach

Path parameters

volume_idstring required

Request body

instance_idstring required
mount_pathstring
mode'rw' | 'ro'

Response

Successful Response

{"stackTrail":"paths:/api/v2/volumes/{volume_id}/attach:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 2 of the 22 revisions of this API.23

    • request property mode was restricted to a list of enum values

      request-property-became-enum

    • added the pattern ^/(workspace|mnt/[a-zA-Z0-9._-]+|data)$ to the request property mount_path

      request-property-pattern-added

    • added the new ro enum value to the request property mode

      request-property-enum-value-added

    • added the new rw enum value to the request property mode

      request-property-enum-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog