oceanex v0.2.4 Oceanex.Resource.Droplet

DigitalOcean Droplet resource api calls.

Link to this section Summary

Functions

Get a specific droplet action records.

Get a specific droplet action records.

Call actions on tagged droplets.

List all droplet records.

Get a specific droplet backup records.

Change kernel of a droplet.

Create a droplet, or multiple droplets.

Delete a specific droplet.

Delete droplets by tag name.

Disable backups for a droplet.

Enable backups for a droplet.

Enable IPv6 on a droplet.

Enable private networking on a droplet.

Get a specific droplet record.

Get a specific droplet kernel records.

Get a specific droplet neighbor records.

Password reset on a droplet.

Power Cycle a droplet.

Power off a droplet.

Power on a droplet.

Reboot a droplet.

Rebuild a droplet.

Rename a droplet.

Resize a droplet.

Restore a droplet.

Shutdown a droplet.

Take snapshot of a droplet.

Get a specific droplet snapshot records.

Link to this section Functions

Link to this function

action(droplet_id, action_id)

Get a specific droplet action records.

Link to this function

actions(droplet_id)

Get a specific droplet action records.

Link to this function

actions_on_tagged(tag_name, opts)

Call actions on tagged droplets.

Examples

Oceanex.Resource.Droplet.actions_on_tagged(tag_name, %{type: type})
Link to this function

all(opts \\ %{})

List all droplet records.

Link to this function

backups(droplet_id)

Get a specific droplet backup records.

Link to this function

change_kernel(droplet_id, opts)

Change kernel of a droplet.

Examples

Oceanex.Resource.Droplet.change_kernel(droplet_id, %{kernel: kernel})

Create a droplet, or multiple droplets.

Examples

Oceanex.Resource.Droplet.create(%{name: name, region: region, size: size, image: image})

Oceanex.Resource.Droplet.create(%{names: names, region: region, size: size, image: image})
Link to this function

destroy(droplet_id)

Delete a specific droplet.

Link to this function

destroy_by_tag(tag_name)

Delete droplets by tag name.

Link to this function

disable_backups(droplet_id)

Disable backups for a droplet.

Link to this function

enable_backups(droplet_id)

Enable backups for a droplet.

Link to this function

enable_ipv6(droplet_id)

Enable IPv6 on a droplet.

Link to this function

enable_private_networking(droplet_id)

Enable private networking on a droplet.

Link to this function

find(droplet_id)

Get a specific droplet record.

Link to this function

kernels(droplet_id)

Get a specific droplet kernel records.

Link to this function

neighbors(droplet_id)

Get a specific droplet neighbor records.

Link to this function

password_reset(droplet_id)

Password reset on a droplet.

Link to this function

power_cycle(droplet_id)

Power Cycle a droplet.

Link to this function

power_off(droplet_id)

Power off a droplet.

Link to this function

power_on(droplet_id)

Power on a droplet.

Link to this function

reboot(droplet_id)

Reboot a droplet.

Link to this function

rebuild(droplet_id, opts)

Rebuild a droplet.

Examples

Oceanex.Resource.Droplet.rebuild(droplet_id, %{image: image})
Link to this function

rename(droplet_id, opts)

Rename a droplet.

Examples

Oceanex.Resource.Droplet.rename(droplet_id, %{name: name})
Link to this function

resize(droplet_id, opts)

Resize a droplet.

Examples

Oceanex.Resource.Droplet.resize(droplet_id, %{size: size})
Link to this function

restore(droplet_id, opts)

Restore a droplet.

Examples

Oceanex.Resource.Droplet.restore(droplet_id, %{image: image})
Link to this function

shutdown(droplet_id)

Shutdown a droplet.

Link to this function

snapshot(droplet_id, opts)

Take snapshot of a droplet.

Examples

Oceanex.Resource.Droplet.snapshot(droplet_id, %{name: name})
Link to this function

snapshots(droplet_id)

Get a specific droplet snapshot records.