digitalocean v0.1.1 DigitalOcean.Domain

API methods for interacting with the Domain module.

See the Domain Reference.

Summary

Functions

Create a new Domain

Similar to create/2 but returns the response body only

Delete a Domain

Similar to delete/1 but returns the response body only

List all Domains

Similar to list/0 but returns the response body only

Get an existing Domain

Similar to show/1 but returns the response body only

Functions

create(name, ip)

Create a new Domain.

Example

iex> DigitalOcean.Domain.create("example.com", "1.2.3.4")
{:ok, code, head, body}
create!(name, ip)

Similar to create/2 but returns the response body only.

delete(name)

Delete a Domain.

delete!(name)

Similar to delete/1 but returns the response body only.

list()

List all Domains.

list!()

Similar to list/0 but returns the response body only.

show(name)

Get an existing Domain.

show!(name)

Similar to show/1 but returns the response body only.