Important
Creating Block Storage volumes via the Instances API is deprected and the information below is proposed for informative purposes only. Learn how to create a volume using the Block Storage API.
Your opinion helps us make a better documentation.
Creating Block Storage volumes via the Instances API is deprected and the information below is proposed for informative purposes only. Learn how to create a volume using the Block Storage API.
To complete the actions presented below, you must have:
curl -q \-H "X-Auth-Token: $SCW_SECRET_KEY" \-H 'Content-Type: application/json' \-X POST \-d '{"name": "block-volume-101", "organization": "'$SCW_ORGANIZATION'", "size": 10000000000, "volume_type": "b_ssd"}' \https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes
curl -q \-H "X-Auth-Token: $SCW_SECRET_KEY" \-H 'Content-Type: application/json' \https://api.scaleway.com/instance/v1/zones/fr-par-1/volumes/b3a42fb1-e85c-46e9-b0a6-9adb62278295{"volume": {"size": 10000000000,"state": "available","name": "block-volume101","modification_date": "2019-09-03T09:57:53.742130+00:00",..."id": "b3a42fb1-e85c-46e9-b0a6-9adb62278295","volume_type": "b_ssd","server": null}}
Your opinion helps us make a better documentation.