Skip to main content

kobana kadu volumes

Commands of kobana kadu volumes. Every global option (Global options) applies here.

CommandHTTPDescription
volumes listGET /v1/volumesList volumes
volumes createPOST /v1/volumesCreate volume
volumes getGET /v1/volumes/{id}Get the volume
volumes updatePATCH /v1/volumes/{id}Update volume
volumes deleteDELETE /v1/volumes/{id}Delete volume (soft delete)
volumes filesGET /v1/volumes/{id}/filesList the files of the volume
volumes syncsGET /v1/volumes/{id}/syncsList the syncs of the volume

volumes list​

List volumes

kobana kadu volumes list [OPTIONS]

GET /v1/volumes

Query parameters

NameTypeRequiredDescription
cursorstringno
limitnumberno
sort_bystringnoField in snake_case: created_at (default), updated_at or a filterable field.
sort_orderstringnoDefault: desc. Values: asc, desc.

Responses

HTTPDescription
200OK
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes create​

Create volume

kobana kadu volumes create [OPTIONS]

POST /v1/volumes

Request body

NameTypeRequiredDescription
namestringyes
environment_idstring (uuid)no
labelstringno
workspace_idstring (uuid)no
quota_mbintegernoDefault: 1024.
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.volumes.create.

Responses

HTTPDescription
201created
400VALIDATION_ERROR
409CONFLICT β€” a live volume with this name already exists in the environment / IDEMPOTENCY_KEY_REUSED
422VALIDATION_ERROR β€” environment or workspace of another organization
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes get​

Get the volume

kobana kadu volumes get [ID] [OPTIONS]

GET /v1/volumes/{id}

Path arguments: id

Responses

HTTPDescription
200OK
404not found
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes update​

Update volume

kobana kadu volumes update [ID] [OPTIONS]

PATCH /v1/volumes/{id}

Name and environment do not change: skills and the kadu.yaml reference the volume by them.

Path arguments: id

Request body

NameTypeRequiredDescription
labelstringno
workspace_idstring (uuid)no
quota_mbintegernoDefault: 1024.
custom_metadataobjectno

More fields and nested objects: kobana schema kadu.volumes.update.

Responses

HTTPDescription
200OK
404NOT_FOUND
409IDEMPOTENCY_KEY_REUSED
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes delete​

Delete volume (soft delete)

kobana kadu volumes delete [ID] [OPTIONS]

DELETE /v1/volumes/{id}

The content is kept for 30 days before the purge. Refused while the kadu.yaml declares the volume or a run is writing to it.

Path arguments: id

Responses

HTTPDescription
200OK
404NOT_FOUND
409REPO_MANAGED β€” declared in the kadu.yaml / VOLUME_IN_USE β€” a run is writing to it
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes files​

List the files of the volume

kobana kadu volumes files [ID] [OPTIONS]

GET /v1/volumes/{id}/files

In path order. Metadata only: the content is never returned.

Path arguments: id

Query parameters

NameTypeRequiredDescription
path_prefixstringno
cursorstringno
limitnumbernoDefault: 200.

Responses

HTTPDescription
200OK
400VALIDATION_ERROR β€” invalid cursor
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).

volumes syncs​

List the syncs of the volume

kobana kadu volumes syncs [ID] [OPTIONS]

GET /v1/volumes/{id}/syncs

The runs that mounted the volume, newest first, with the outcome of each sync.

Path arguments: id

Query parameters

NameTypeRequiredDescription
limitnumberno

Responses

HTTPDescription
200OK
404NOT_FOUND
503AS_UNAVAILABLE β€” token verification is unavailable (Authorization Server down or configuration missing). Try again (Retry-After).