digitalocean v0.1.1 DigitalOcean.Volume

API methods for interacting with the Block Storage module.

See the Block Storage Reference.

Summary

Functions

Similar to create/4 but returns the response body only

Delete a Volume by its id

Delete a Volume by its name and region pair

Similar to delete/1 but returns the response body only

Similar to delete/2 but returns the response body only

List all Block Storage volumes

Similar to list/0 but returns the response body only

Get Volume information by its id

Get Volume information by its name and region pair

Similar to show/1 but returns the response body only

Similar to show/2 but returns the response body only

Functions

create(name, size, region, desc \\ "")

Create a new volume.

Example

iex> DigitalOcean.Volume.create("example", 10, "nyc1", "Block store for examples.")
create!(name, size, region, desc \\ "")

Similar to create/4 but returns the response body only.

delete(vol_id)

Delete a Volume by its id.

delete(name, region)

Delete a Volume by its name and region pair.

delete!(vol_id)

Similar to delete/1 but returns the response body only.

delete!(name, region)

Similar to delete/2 but returns the response body only.

list()

List all Block Storage volumes.

list!()

Similar to list/0 but returns the response body only.

show(vol_id)

Get Volume information by its id.

Example

iex> DigitalOcean.Volume.show("7724db7c-e098-11e5-b522-000f53304e51")
show(name, region)

Get Volume information by its name and region pair.

Example

iex> DigitalOcean.Volume.show("example", "nyc1")
show!(vol_id)

Similar to show/1 but returns the response body only.

show!(name, region)

Similar to show/2 but returns the response body only.