Dnsimple.VanityNameServers (dnsimple v3.1.0) View Source

Provides functions to interact with the vanity name server endpoints.

See:

Link to this section Summary

Link to this section Functions

Link to this function

disable_vanity_name_servers(client, account_id, domain_id, options \\ [])

View Source

Specs

disable_vanity_name_servers(
  Dnsimple.Client.t(),
  String.t() | integer(),
  String.t() | integer(),
  Keyword.t()
) :: {:ok | :error, Dnsimple.Response.t()}

Disables vanity name servers for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.VanityNameServers.disable_vanity_name_servers(client, account_id = 1010, domain_id = "example.com")
Link to this function

enable_vanity_name_servers(client, account_id, domain_id, options \\ [])

View Source

Specs

enable_vanity_name_servers(
  Dnsimple.Client.t(),
  String.t() | integer(),
  String.t() | integer(),
  Keyword.t()
) :: {:ok | :error, Dnsimple.Response.t()}

Enables vanity name servers for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.VanityNameServers.enable_vanity_name_servers(client, account_id = 1010, domain_id = "example.com")