API

DomainLivedns

A domain's LiveDNS status, and switching the domain to LiveDNS (create).

Operations

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

Method Route SDK operation Returns
POST /domain/domains/{domain}/livedns create Accepted
GET /domain/domains/{domain}/livedns load 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:

domain_livedns, err := client.DomainLivedns(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_livedns)
created, err := client.DomainLivedns(nil).Create(map[string]any{"domain": "example", "current": "example", "message": "example", "nameservers": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local domain_livedns, err = client:DomainLivedns():load({ domain = "example" })
local created, err = client:DomainLivedns():create({ domain = "example", current = "example", message = "example", nameservers = {} })

PHP

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

$domain_livedns = $client->DomainLivedns()->load(["domain" => "example"]);
$created = $client->DomainLivedns()->create(["domain" => "example", "current" => "example", "message" => "example", "nameservers" => []]);

Python

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

domain_livedns = client.DomainLivedns().load({"domain": "example"})
created = client.DomainLivedns().create({ "domain": "example", "current": "example", "message": "example", "nameservers": [] })

Ruby

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

domain_livedns = client.DomainLivedns.load({ "domain" => "example" })
created = client.DomainLivedns.create({ "domain" => "example", "current" => "example", "message" => "example", "nameservers" => [] })

TypeScript

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

const domain_livedns = await client.DomainLivedns().load({ domain: "example" })
const created = await client.DomainLivedns().create({ domain: "example", current: "example", message: "example", nameservers: [] })

Fields

Field Type Required Description
current string Yes Current
dnssec_available boolean No Dnssec Available
livednssec_available boolean No Livednssec Available
message string Yes Message
nameservers array Yes Nameservers

create

POST /domain/domains/{domain}/livedns

Operation ID: postDomainDomainsDomainLivedns.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

202: Accepted

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

load

GET /domain/domains/{domain}/livedns

Operation ID: getDomainDomainsDomainLivedns.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
current enum: classic, livedns, premium_dns, other Yes
dnssec_available boolean No
livednssec_available boolean No
nameservers array of 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