Interlaken
API referenceStorageDisks

Migrate a disk to another host (LINSTOR-replicated)

POST
/api/v1/disks/{id}/migrate

Requires the disks:update permission.

Moves a disk between hosts. The target hypervisor pulls data from the source via LINSTOR replication. Refuses when the disk is attached to a running VM — stop the VM first.

Authorization

AuthorizationBearer <token>

An access token from this zone's POST /oauth/token, or a session token from POST /api/v1/auth/login. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/disks/string/migrate" \  -H "Content-Type: application/json" \  -d '{    "target_host_id": "5fa08e70-cef9-414c-b387-7bde7b6f4011"  }'
Empty