Skip to main content

Eject an external disk

POST 

/disks/external/:label/eject

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/disks/external/{label}/eject"

Unmounts /mnt/disks/<label>, then spins the disk down.

Request​

Responses​

The ejected external disk.