POST
/
api
/
v0
/
network_volume
/
list network-volume
curl --request POST \
  --url https://console.vast.ai/api/v0/network_volume/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "price_disk": 123,
  "disk_id": 123,
  "size": 123,
  "credit_discount_max": 123,
  "end_date": 123
}'
{
  "success": true,
  "disk_id": "created network volume ask with id 6 and size 24"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
disk_id
integer
required

ID of network disk for which offer is being created

price_disk
number

Price per GB of network volume storage

size
integer

Size in GB of the amount of space available to be rented

credit_discount_max
number

Maximum discount rate allowed for prepaid credits

end_date
number

Unix timestamp for when the listing expires

Response

Successful response

success
boolean
msg
string

status message