cURL
curl --request POST \ --url https://console.vast.ai/api/v0/network_disk/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "mount_point": "<string>", "machine_id": 123, "machine_ids": [ 123 ], "disk_id": 123 } '
{ "success": true, "disk_id": 2 }
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]
vastai add network_disk <machine_id>... <mount_point> [options]
API key must be provided in the Authorization header
Path to mount point of networked storage on machine or machines
ID of the machine to add network disk to
IDs of machines to add network disk to
ID of network disk, if adding machines to existing disk
Successful response
ID of disk created or added to machines