v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Network Volumes

add network-disk

Adds a network disk to be used to create network volume offers, or adds machines to an existing network disk.

CLI Usage: vastai add network_disk <machine_id>... <mount_point> [options]

post/api/v0/network_disk/

Request body

machine_idinteger

ID of the machine to add network disk to

machine_idsinteger[]

IDs of machines to add network disk to

mount_pointstring required

Path to mount point of networked storage on machine or machines

disk_idinteger

ID of network disk, if adding machines to existing disk

Response

Successful response

successboolean
disk_idinteger

ID of disk created or added to machines

Example response

{
  "success": true,
  "disk_id": 2
}
All 89 operations