Skip to content

Clone a volume

POST/volumes/{name}/clone

Copies the quiescent volume {name} into a new volume. 409 when the target exists or the source is attached to a running sandbox.

path parameters
object
namestringrequired

Source volume to clone (must be quiescent).

Request bodyapplication/json
CloneVolReq
tostring

Name of the new volume to create.

Responses
201 CreatedCreated
Volume
attached_tostring
created_atstringdate-time
host_idstring
namestring
size_bytesintegerint64
400 Bad requestBad Request
ErrorResponse
errorstring
404 Not foundNot Found
ErrorResponse
errorstring
409 ConflictConflict
ErrorResponse
errorstring
501 Not Implemented
ErrorResponse
errorstring
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
POST/volumes/{name}/clone
cURL
curl '/volumes/{name}/clone' \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{}'
Response
201 Created
{
  "attached_to": "string",
  "created_at": "2026-01-02T15:04:05Z",
  "host_id": "string",
  "name": "string",
  "size_bytes": 0
}
Was this page helpful?