API referenceInstance API
GUIDE & REFERENCE

Storage Volumes

Every registered storage volumes instance operation, with source-derived inputs, outputs, access policy, and errors.

This reference covers 5 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.

MethodPathOperation
GET/v1/storage/volumesStorage volume list
POST/v1/storage/volumesStorage volume create
POST/v1/storage/volumes/attachStorage volume attach
POST/v1/storage/volumes/detachStorage volume detach
DELETE/v1/storage/volumes/:idStorage volume delete

GET /v1/storage/volumes

Storage volume list

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

records

Errors and validation

Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3187. Registration: akasha-daemon/src/main.rs:4619.

POST /v1/storage/volumes

Storage volume create

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonVolumeCreateRequest

FieldRust typeRequired on inputNotes
nameStringYes
purposeStringYes
descriptionOption<String>No; optional or defaultedSerde: default
kms_key_versionOption<u64>No; optional or defaultedSerde: default
providerVolumeProviderYes
struct VolumeCreateRequest {
    name: String,
    purpose: String,
    #[serde(default)]
    description: Option<String>,
    #[serde(default)]
    kms_key_version: Option<u64>,
    provider: VolumeProvider,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

record

Errors and validation

Directly referenced error variants: from. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3167. Registration: akasha-daemon/src/main.rs:4619.

POST /v1/storage/volumes/attach

Storage volume attach

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonVolumeAttachRequest

FieldRust typeRequired on inputNotes
volume_idStringYes
namespaceStringYes
purposeOption<String>No; optional or defaultedSerde: default
struct VolumeAttachRequest {
    volume_id: String,
    namespace: String,
    #[serde(default)]
    purpose: Option<String>,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

record

Errors and validation

Directly referenced error variants: from. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3196. Registration: akasha-daemon/src/main.rs:4623.

POST /v1/storage/volumes/detach

Storage volume detach

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonVolumeDetachRequest

FieldRust typeRequired on inputNotes
volume_idStringYes
struct VolumeDetachRequest {
    volume_id: String,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

record

Errors and validation

Directly referenced error variants: from. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3237. Registration: akasha-daemon/src/main.rs:4624.

DELETE /v1/storage/volumes/:id

Storage volume delete

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

PathString

{
  "type": "string"
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

record

Errors and validation

Directly referenced error variants: from. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3264. Registration: akasha-daemon/src/main.rs:4625.

On this page