digitalocean v0.1.1 DigitalOcean.Domain.Record

API methods for interacting with the Domain Record module.

See the Domain Record Reference.

Summary

Functions

Create a new Domain Record

Similar to create/2 but returns the response body only

Delete a Domain Record

Similar to delete/2 but returns the response body only

List all Records for a Domain

Similar to list/0 but returns the response body only

Get an existing Record for a Domain

Similar to show/2 but returns the response body only

Update an existing Domain Record

Similar to update/3 but returns the response body only

Functions

create(domain, attrs)

Create a new Domain Record.

Example

iex> DigitalOcean.Domain.Record.create("example.com",
    %{type: "A", name: "www", data: "162.10.66.0"})
create!(domain, attrs)

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

delete(domain, record_id)

Delete a Domain Record.

delete!(domain, record_id)

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

list(domain)

List all Records for a Domain.

list!(domain)

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

show(domain, record_id)

Get an existing Record for a Domain.

Example

iex> DigitalOcean.Domain.Record.show("example.com", 3352896)
show!(domain, record_id)

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

update(domain, record_id, attrs)

Update an existing Domain Record.

Example

iex> DigitalOcean.Domain.Record.update("example.com", 3352896, %{name: "blog"})
update!(domain, record_id, attrs)

Similar to update/3 but returns the response body only.