Miosa.Computer.Volumes (Miosa v1.0.1)

Copy Markdown View Source

Per-computer volume attachment management.

  • GET /computers/:id/volumes — list/2
  • POST /computers/:id/volumes — attach/4
  • DELETE /computers/:id/volumes/:aid — detach/3

Summary

Functions

Attach a volume at mount_path inside the VM (POST /computers/:computer_id/volumes).

Detach a volume attachment by attachment ID (DELETE /computers/:computer_id/volumes/:attachment_id).

List volume attachments for a computer (GET /computers/:computer_id/volumes).

Functions

attach(client, computer_id, volume_id, mount_path)

Attach a volume at mount_path inside the VM (POST /computers/:computer_id/volumes).

detach(client, computer_id, attachment_id)

@spec detach(Miosa.Client.t(), String.t(), String.t()) ::
  :ok | {:error, Miosa.Error.t()}

Detach a volume attachment by attachment ID (DELETE /computers/:computer_id/volumes/:attachment_id).

list(client, computer_id)

List volume attachments for a computer (GET /computers/:computer_id/volumes).