Hexoku.API.Domains

Domains define what web routes should be routed to an app on Heroku.

Attributes

id
unique identifier of item generated by Heroku
hostname
full hostname
created_at
when item was created
updated_at
when item was last modified

For more info read the Heroku API Reference

Source

Summary

create(client, app, domain)

Create a new domain

delete(client, app, domain)

Delete an existing domain

info(client, app, domain)

Info for existing domain

list(client, app)

List existing domains

Functions

create(client, app, domain)

Specs:

  • create(Hexoku.Client.t, binary, binary) :: Map.t

Create a new domain.

Examples

client |> Hexoku.API.Domains.create("myapp", "myapp.example.com")
Source
delete(client, app, domain)

Specs:

  • delete(Hexoku.Client.t, binary, binary) :: Map.t

Delete an existing domain

Examples

client |> Hexoku.API.Domains.delete("myapp", "myapp.example.com")
Source
info(client, app, domain)

Specs:

  • info(Hexoku.Client.t, binary, binary) :: Map.t

Info for existing domain.

Examples

client |> Hexoku.API.Domains.info("myapp", "myapp.example.com")
Source
list(client, app)

Specs:

  • list(Hexoku.Client.t, binary) :: [Map.t]

List existing domains.

Examples

client |> Hexoku.API.Domains.list("myapp")
Source