DigitalOcean.ImageAction (digital_ocean v0.1.0)

Link to this section Summary

Functions

Create an action for an image.

Retrieve an action for an image.

Retrieve a list of image actions.

Link to this section Functions

Link to this function

create(image_id, opts)

Specs

Create an action for an image.

Example transferring an image to another region

iex> DigitalOcean.ImageAction.create(
...>   7938269,
...>   type: "transfer",
...>   region: "nyc2"
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }

Example converting an image from a backup to a snapshot

iex> DigitalOcean.ImageAction.create(
...>   7938291,
...>   type: "convert"
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function

get(image_id, action_id)

Specs

Retrieve an action for an image.

Examples

iex> DigitalOcean.ImageAction.get(7938269, 36805527) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function

list(image_id, opts \\ [])

Specs

Retrieve a list of image actions.

Examples

iex> DigitalOcean.ImageAction.list() |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }