Skip to main content

Add a data disk to the running array

POST 

/disks/array/add

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"

Queues a Topology job that formats or adopts the disk, then regenerates mount units, the pool and snapraid.conf from SQLite. The confirmation must be the exact string the matching planDiskAdd call returned; a wrong or missing one is refused with confirmation_required and formats nothing.

Request​

Responses​

The queued Topology job.