oceanex v0.2.0 Oceanex.Resource.Droplet

DigitalOcean Droplet resource api calls.

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

Functions

action(droplet_id, action_id)

Get a specific droplet action records.

action!(droplet_id, action_id)
actions(droplet_id)

Get a specific droplet action records.

actions!(droplet_id)
actions_on_tagged(tag_name, opts)

Call actions on tagged droplets.

Examples

Oceanex.Resource.Droplet.actions_on_tagged(tag_name, %{type: type})
actions_on_tagged!(tag_name, opts)
all(opts \\ %{})

List all droplet records.

backups(droplet_id)

Get a specific droplet backup records.

backups!(droplet_id)
change_kernel(droplet_id, opts)

Change kernel of a droplet.

Examples

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

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})
create!(opts)
destroy(droplet_id)

Delete a specific droplet.

destroy!(droplet_id)
destroy_by_tag(tag_name)

Delete droplets by tag name.

destroy_by_tag!(tag_name)
disable_backups(droplet_id)

Disable backups for a droplet.

disable_backups!(droplet_id)
enable_backups(droplet_id)

Enable backups for a droplet.

enable_backups!(droplet_id)
enable_ipv6(droplet_id)

Enable IPv6 on a droplet.

enable_ipv6!(droplet_id)
enable_private_networking(droplet_id)

Enable private networking on a droplet.

enable_private_networking!(droplet_id)
find(droplet_id)

Get a specific droplet record.

find!(droplet_id)
kernels(droplet_id)

Get a specific droplet kernel records.

kernels!(droplet_id)
neighbors(droplet_id)

Get a specific droplet neighbor records.

neighbors!(droplet_id)
password_reset(droplet_id)

Password reset on a droplet.

password_reset!(droplet_id)
power_cycle(droplet_id)

Power Cycle a droplet.

power_cycle!(droplet_id)
power_off(droplet_id)

Power off a droplet.

power_off!(droplet_id)
power_on(droplet_id)

Power on a droplet.

power_on!(droplet_id)
reboot(droplet_id)

Reboot a droplet.

reboot!(droplet_id)
rebuild(droplet_id, opts)

Rebuild a droplet.

Examples

Oceanex.Resource.Droplet.rebuild(droplet_id, %{image: image})
rebuild!(droplet_id, opts)
rename(droplet_id, opts)

Rename a droplet.

Examples

Oceanex.Resource.Droplet.rename(droplet_id, %{name: name})
rename!(droplet_id, opts)
resize(droplet_id, opts)

Resize a droplet.

Examples

Oceanex.Resource.Droplet.resize(droplet_id, %{size: size})
resize!(droplet_id, opts)
restore(droplet_id, opts)

Restore a droplet.

Examples

Oceanex.Resource.Droplet.restore(droplet_id, %{image: image})
restore!(droplet_id, opts)
shutdown(droplet_id)

Shutdown a droplet.

shutdown!(droplet_id)
snapshot(droplet_id, opts)

Take snapshot of a droplet.

Examples

Oceanex.Resource.Droplet.snapshot(droplet_id, %{name: name})
snapshot!(droplet_id, opts)
snapshots(droplet_id)

Get a specific droplet snapshot records.

snapshots!(droplet_id)