Preview adding a data disk
POST/disks/array/add/plan
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" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/disks/array/add/plan"
Computes the add plan: the target disk's own identity (model, WWN or serial, size, its existing filesystem if any), its assigned mountpoint and the exact typed confirmation addDisk requires. Refuses a disk that would leave a parity disk smaller than the array's largest data disk, and a device already identified as one of the array's own members by WWN or serial, applying the same validation array setup runs over the resulting data set. Read-only: nothing is formatted or persisted.
Request
Responses
- 200
- default
The add plan.
An error response.