Create empty volume
Changed onCreates a new empty volume of the specified size.
post/volumes
Request
- Base URLhttp://localhost:4973
- URLhttp://localhost:4973/volumes
- AuthHTTP bearer
Request body
Example request
{
"id": "vol-data-1",
"name": "my-data-volume",
"size_gb": 10,
"tags": {
"team": "backend",
"env": "staging"
}
}Response
Volume created
Example response
{
"id": "vol-data-1",
"name": "my-data-volume",
"size_gb": 10,
"tags": {
"team": "backend",
"env": "staging"
},
"attachments": [
{
"instance_id": "inst-abc123",
"mount_path": "/mnt/data"
}
],
"created_at": "2025-01-15T09:00:00Z"
}Changes
- warning
removed the request property
- warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added the optional property
to the response with the status
- warning
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info