curl --location --request PUT 'https://api.hetzner.cloud/v1/volumes/' \
--header 'Content-Type: application/json' \
--data-raw '{
"labels": {
"labelkey": "value"
},
"name": "database-storage"
}'
{
"volume": {
"created": "2016-01-30T23:50:11.000Z",
"format": "xfs",
"id": 4711,
"labels": {
"labelkey": "value"
},
"linux_device": "/dev/disk/by-id/scsi-0HC_Volume_4711",
"location": {
"city": "Falkenstein",
"country": "DE",
"description": "Falkenstein DC Park 1",
"id": 1,
"latitude": 50.47612,
"longitude": 12.370071,
"name": "fsn1",
"network_zone": "eu-central"
},
"name": "database-storage",
"protection": {
"delete": false
},
"server": 12,
"size": 42,
"status": "available"
}
}