API

LivednsZone

A zone's whole record set, by fqdn: replace every record (update) or delete every record (remove).

Operations

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

Method Route SDK operation Returns
DELETE /livedns/domains/{fqdn}/records remove No Content
PUT /livedns/domains/{fqdn}/records update Created

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:

updated, err := client.LivednsZone(nil).Update(map[string]any{"fqdn": "example", "items": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.LivednsZone(nil).Remove(map[string]any{"fqdn": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local updated, err = client:LivednsZone():update({ fqdn = "example", items = {} })
local removed, err = client:LivednsZone():remove({ fqdn = "example" })

PHP

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

$updated = $client->LivednsZone()->update(["fqdn" => "example", "items" => []]);
$client->LivednsZone()->remove(["fqdn" => "example"]);

Python

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

updated = client.LivednsZone().update({"fqdn": "example", "items": []})
client.LivednsZone().remove({"fqdn": "example"})

Ruby

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

updated = client.LivednsZone.update({ "fqdn" => "example", "items" => [] })
client.LivednsZone.remove({ "fqdn" => "example" })

TypeScript

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

const updated = await client.LivednsZone().update({ fqdn: "example", items: [] })
await client.LivednsZone().remove({ fqdn: "example" })

Fields

Field Type Required Description
items array Yes Items
message string Yes Message
remove_apex_ns boolean No Remove Apex Ns

remove

DELETE /livedns/domains/{fqdn}/records

Operation ID: deleteLivednsDomainsFqdnRecords.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Responses

204: No Content
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

PUT /livedns/domains/{fqdn}/records

Operation ID: putLivednsDomainsFqdnRecords.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Request body

application/json

Property Type Required Description
items array of object Yes
items[].rrset_name string Yes
items[].rrset_ttl integer No
items[].rrset_type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
items[].rrset_values array of string Yes
remove_apex_ns boolean 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