Skip to content
Hayonix

API reference · Schema

AttachVolumeRequest

Mount the volume in a pod. This reconfigures the pod: its container is recreated (only volume data survives) and it may move to the volume’s host.

  • pod_idstringrequired

    ID of the pod

    ID with prefix pod_

  • mount_pathstringrequired

    Absolute path the volume is mounted at inside the container

    2–256 characters

  • read_onlyboolean

    Mount read-only (network volumes only; a pod volume is always writable)

    default false

  • dry_runboolean

    Only report what would change (nothing is applied)

    default false

Example
{
  "pod_id": "pod_01jc5zq4m8k3v6x9t2w7r0b1e4",
  "mount_path": "/data",
  "dry_run": true
}

Used by