cURL
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 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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