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
action(droplet_id, action_id)
Get a specific droplet action records.
actions(droplet_id)
Get a specific droplet action records.
actions_on_tagged(tag_name, opts)
Call actions on tagged droplets.
Examples
Oceanex.Resource.Droplet.actions_on_tagged(tag_name, %{type: type})
all(opts \\ %{})
List all droplet records.
backups(droplet_id)
Get a specific droplet backup records.
change_kernel(droplet_id, opts)
Change kernel of a droplet.
Examples
Oceanex.Resource.Droplet.change_kernel(droplet_id, %{kernel: kernel})
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})
destroy(droplet_id)
Delete a specific droplet.
destroy_by_tag(tag_name)
Delete droplets by tag name.
disable_backups(droplet_id)
Disable backups for a droplet.
enable_backups(droplet_id)
Enable backups for a droplet.
enable_ipv6(droplet_id)
Enable IPv6 on a droplet.
enable_private_networking(droplet_id)
Enable private networking on a droplet.
find(droplet_id)
Get a specific droplet record.
kernels(droplet_id)
Get a specific droplet kernel records.
neighbors(droplet_id)
Get a specific droplet neighbor records.
password_reset(droplet_id)
Password reset on a droplet.
power_cycle(droplet_id)
Power Cycle a droplet.
power_off(droplet_id)
Power off a droplet.
power_on(droplet_id)
Power on a droplet.
reboot(droplet_id)
Reboot a droplet.
rebuild(droplet_id, opts)
Rebuild a droplet.
Examples
Oceanex.Resource.Droplet.rebuild(droplet_id, %{image: image})
rename(droplet_id, opts)
Rename a droplet.
Examples
Oceanex.Resource.Droplet.rename(droplet_id, %{name: name})
resize(droplet_id, opts)
Resize a droplet.
Examples
Oceanex.Resource.Droplet.resize(droplet_id, %{size: size})
restore(droplet_id, opts)
Restore a droplet.
Examples
Oceanex.Resource.Droplet.restore(droplet_id, %{image: image})
shutdown(droplet_id)
Shutdown a droplet.
snapshot(droplet_id, opts)
Take snapshot of a droplet.
Examples
Oceanex.Resource.Droplet.snapshot(droplet_id, %{name: name})
snapshots(droplet_id)
Get a specific droplet snapshot records.