API

LivednsDomain

A domain on LiveDNS, by fqdn: list, add, get or update one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /livedns/domains create Created
GET /livedns/domains list OK
GET /livedns/domains/{fqdn} load OK
PATCH /livedns/domains/{fqdn} update OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

livedns_domains, err := client.LivednsDomain(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_domains)
livedns_domain, err := client.LivednsDomain(nil).Load(map[string]any{"fqdn": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_domain)
created, err := client.LivednsDomain(nil).Create(map[string]any{"fqdn": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.LivednsDomain(nil).Update(map[string]any{"fqdn": "example", "automatic_snapshots": true}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local livedns_domains, err = client:LivednsDomain():list()
local livedns_domain, err = client:LivednsDomain():load({ fqdn = "example" })
local created, err = client:LivednsDomain():create({ fqdn = "example" })
local updated, err = client:LivednsDomain():update({ fqdn = "example", automatic_snapshots = true })

PHP

Construct client as shown in the PHP setup, then call the operations:

$livedns_domains = $client->LivednsDomain()->list();
$livedns_domain = $client->LivednsDomain()->load(["fqdn" => "example"]);
$created = $client->LivednsDomain()->create(["fqdn" => "example"]);
$updated = $client->LivednsDomain()->update(["fqdn" => "example", "automatic_snapshots" => true]);

Python

Construct client as shown in the Python setup, then call the operations:

livedns_domains = client.LivednsDomain().list()
livedns_domain = client.LivednsDomain().load({"fqdn": "example"})
created = client.LivednsDomain().create({ "fqdn": "example" })
updated = client.LivednsDomain().update({"fqdn": "example", "automatic_snapshots": True})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

livedns_domains = client.LivednsDomain.list()
livedns_domain = client.LivednsDomain.load({ "fqdn" => "example" })
created = client.LivednsDomain.create({ "fqdn" => "example" })
updated = client.LivednsDomain.update({ "fqdn" => "example", "automatic_snapshots" => true })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const livedns_domains = await client.LivednsDomain().list()
const livedns_domain = await client.LivednsDomain().load({ fqdn: "example" })
const created = await client.LivednsDomain().create({ fqdn: "example" })
const updated = await client.LivednsDomain().update({ fqdn: "example", automatic_snapshots: true })

Fields

Field Type Required Description
automatic_snapshots boolean Yes Automatic Snapshots
domain_href string Yes Domain Href
domain_keys_href string Yes Domain Keys Href
domain_records_href string Yes Domain Records Href
fqdn string Yes Fqdn
message string Yes Message
zone object No Zone

create

POST /livedns/domains

Operation ID: postLivednsDomains.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id query string No

Request body

application/json

Property Type Required Description
fqdn string Yes
zone object No
zone.items array of object No
zone.items[].rrset_name string Yes
zone.items[].rrset_ttl integer No
zone.items[].rrset_type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
zone.items[].rrset_values array of string Yes
zone.ttl integer No

Responses

201: Created

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

list

GET /livedns/domains

Operation ID: getLivednsDomains.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
page query integer No
per_page query integer No
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
[].domain_href string Yes
[].domain_records_href string Yes
[].fqdn string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /livedns/domains/{fqdn}

Operation ID: getLivednsDomainsFqdn.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Responses

200: OK

application/json

Property Type Required Description
automatic_snapshots boolean Yes
domain_href string Yes
domain_keys_href string Yes
domain_records_href string Yes
fqdn string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

update

PATCH /livedns/domains/{fqdn}

Operation ID: patchLivednsDomainsFqdn.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Request body

application/json

Property Type Required Description
automatic_snapshots boolean No

Responses

200: OK

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes