POST
/
api
/
v0
/
network_disk
/
add network-disk
curl --request POST \
  --url https://console.vast.ai/api/v0/network_disk/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "machine_id": 123,
  "machine_ids": [
    123
  ],
  "mount_point": "<string>",
  "disk_id": 123
}'
{
  "success": true,
  "disk_id": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mount_point
string
required

Path to mount point of networked storage on machine or machines

machine_id
integer

ID of the machine to add network disk to

machine_ids
integer[]

IDs of machines to add network disk to

disk_id
integer

ID of network disk, if adding machines to existing disk

Response

Successful response

success
boolean
disk_id
integer

ID of disk created or added to machines