Volumes
Persistent folders a task mounts between runs (task.volumes). Structure only: the content never goes through the API.
| Command | HTTP | Description |
|---|---|---|
volumes list | GET /v1/volumes | List volumes |
volumes create | POST /v1/volumes | Create volume |
volumes get | GET /v1/volumes/{id} | Get the volume |
volumes update | PATCH /v1/volumes/{id} | Update volume |
volumes delete | DELETE /v1/volumes/{id} | Delete volume (soft delete) |
volumes files | GET /v1/volumes/{id}/files | List the files of the volume |
volumes syncs | GET /v1/volumes/{id}/syncs | List the syncs of the volume |
Examples​
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits the fields that come back — worth using on every list/get to save context. See Global flags for the full reference.
# List volumes
kobana kadu volumes list --fields "id,name,size_bytes,quota_bytes"
# Create volume
kobana kadu volumes create \
--json '{"name": "newsletter", "label": "LABEL", "quota_mb": 500}'
# Get the volume
kobana kadu volumes get --params '{"id": "VOLUME_ID"}'
# Update volume
kobana kadu volumes update \
--params '{"id": "VOLUME_ID"}' \
--json '{"quota_mb": 1024}'
# Delete volume (soft delete)
kobana kadu volumes delete \
--params '{"id": "VOLUME_ID"}' \
--dry-run
# List the files of the volume
kobana kadu volumes files --params '{"id": "VOLUME_ID"}' --fields "path,size_bytes"
# List the syncs of the volume
kobana kadu volumes syncs --params '{"id": "VOLUME_ID"}'
Next steps​
- Task volumes — how a task declares and uses a volume.
- Schema introspection — every parameter this resource accepts.