DigitalOcean.Droplet.create

You're seeing just the function create, go back to DigitalOcean.Droplet module for more information.

Specs

Create one or more droplets.

Example creating a single droplet

iex> DigitalOcean.Droplet.create(
...>   name: "example.com",
...>   region: "nyc3",
...>   size: "s-1vcpu-1gb",
...>   image: "ubuntu-16-04-x64",
...>   ssh_keys: [107149],
...>   backups: false,
...>   ipv6: true,
...>   tags: ["web"]
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }

Example creating multiple droplets

iex> DigitalOcean.Droplet.create(
...>   names: [
...>     "sub-01.example.com",
...>     "sub-02.example.com",
...>   ],
...>   region: "nyc3",
...>   size: "s-1vcpu-1gb",
...>   image: "ubuntu-16-04-x64",
...>   ssh_keys: [107149],
...>   backups: false,
...>   ipv6: true,
...>   tags: ["web"]
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }