curl --request PATCH \
--url https://api.ornn.com/v1/orchestrator/drives/{drive_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservation_id": "11111111-1111-4111-8111-111111111111",
"deployed": true,
"access_mode": "read-write",
"mount_path": "/home/tenant/volume"
}
'{
"attachment": {
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"reservation_id": "11111111-1111-4111-8111-111111111111",
"drive_id": "77777777-7777-4777-8777-777777777777",
"mount_path": "/home/tenant/volume",
"mount_mode": "fuse",
"access_mode": "read-write",
"state": "pre_positioning",
"error": null,
"created_at": "2026-10-14T12:05:00Z",
"placement": {
"state": "pre_positioning",
"target_region": "us-central1",
"error": null,
"ready_at": null,
"transfer": {
"state": "queued",
"objects_total": null,
"objects_copied": null,
"bytes_total": null,
"bytes_copied": null,
"error": null
}
}
}
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "storage_reservation_node_offline",
"message": "A node in this reservation is offline. Bring every node online."
}
}{
"detail": {
"code": "storage_location_unavailable",
"message": "Ornn cannot place storage for this reservation location yet. Ask Ornn Support to set a storage region for the facility."
}
}{
"code": "<string>",
"detail": "<string>"
}Attach or detach a volume
Attaches the volume to an owned reservation with deployed true, or detaches it with attached false. Ornn mounts an attached volume on every machine in the reservation; there is no per-machine selection. Every machine in the reservation must be online. A reservation holds one volume at a time, and a volume attaches to one reservation at a time. To change the access mode or mount path, detach first. Both operations are asynchronous: poll List volumes with reservation_id. Detaching keeps the volume and its data and does not change reservation billing.
curl --request PATCH \
--url https://api.ornn.com/v1/orchestrator/drives/{drive_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservation_id": "11111111-1111-4111-8111-111111111111",
"deployed": true,
"access_mode": "read-write",
"mount_path": "/home/tenant/volume"
}
'{
"attachment": {
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"reservation_id": "11111111-1111-4111-8111-111111111111",
"drive_id": "77777777-7777-4777-8777-777777777777",
"mount_path": "/home/tenant/volume",
"mount_mode": "fuse",
"access_mode": "read-write",
"state": "pre_positioning",
"error": null,
"created_at": "2026-10-14T12:05:00Z",
"placement": {
"state": "pre_positioning",
"target_region": "us-central1",
"error": null,
"ready_at": null,
"transfer": {
"state": "queued",
"objects_total": null,
"objects_copied": null,
"bytes_total": null,
"bytes_copied": null,
"error": null
}
}
}
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "storage_reservation_node_offline",
"message": "A node in this reservation is offline. Bring every node online."
}
}{
"detail": {
"code": "storage_location_unavailable",
"message": "Ornn cannot place storage for this reservation location yet. Ask Ornn Support to set a storage region for the facility."
}
}{
"code": "<string>",
"detail": "<string>"
}ornn volume-mounts attach <reservation-id> --volume <volume> --access read-write and ornn volume-mounts detach <reservation-id>. See Manage volumes through the API for the polling sequence.Authorizations
Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.
Path Parameters
Volume ID.
Body
An owned reservation.
Set true to attach and mount the volume on every machine in the reservation.
Set false to detach the volume from the reservation.
read-write, read-only Absolute path on each machine.
Response
The request was accepted. attachment.state is pre_positioning after an attach and detaching after a detach. attachment is null when there was nothing to detach.
A reservation's volume attachment.
Show child attributes
Show child attributes
Was this page helpful?