POST
/
volumes
Create volume
curl --request POST \
  --url https://api.blaxel.ai/v0/volumes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    {
      "message": "<string>",
      "revision": "<string>",
      "status": "<string>",
      "time": "<string>",
      "type": "<string>"
    }
  ],
  "metadata": {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "displayName": "<string>",
    "labels": {},
    "name": "<string>",
    "plan": "<any>",
    "workspace": "<string>"
  },
  "spec": {
    "region": "<string>",
    "size": 123
  },
  "state": {
    "attachedTo": "<string>"
  },
  "status": "<string>",
  "terminatedAt": "<string>"
}'
{
  "events": [
    {
      "message": "<string>",
      "revision": "<string>",
      "status": "<string>",
      "time": "<string>",
      "type": "<string>"
    }
  ],
  "metadata": {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "displayName": "<string>",
    "labels": {},
    "name": "<string>",
    "plan": "<any>",
    "workspace": "<string>"
  },
  "spec": {
    "region": "<string>",
    "size": 123
  },
  "state": {
    "attachedTo": "<string>"
  },
  "status": "<string>",
  "terminatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Volume resource for persistent storage

Response

200 - application/json

successful operation

Volume resource for persistent storage