API

LivednsAxfrSlave

A zone's secondary servers, by IP address: list, add or remove one.

Operations

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

Method Route SDK operation Returns
GET /livedns/domains/{fqdn}/axfr/slaves list OK
DELETE /livedns/domains/{fqdn}/axfr/slaves/{ip} remove Accepted
PUT /livedns/domains/{fqdn}/axfr/slaves/{ip} 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:

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

Lua

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

local livedns_axfr_slaves, err = client:LivednsAxfrSlave():list({ fqdn = "example" })
local updated, err = client:LivednsAxfrSlave():update({ fqdn = "example", ip = "example" })
local removed, err = client:LivednsAxfrSlave():remove({ fqdn = "example", ip = "example" })

PHP

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

$livedns_axfr_slaves = $client->LivednsAxfrSlave()->list(["fqdn" => "example"]);
$updated = $client->LivednsAxfrSlave()->update(["fqdn" => "example", "ip" => "example"]);
$client->LivednsAxfrSlave()->remove(["fqdn" => "example", "ip" => "example"]);

Python

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

livedns_axfr_slaves = client.LivednsAxfrSlave().list({"fqdn": "example"})
updated = client.LivednsAxfrSlave().update({"fqdn": "example", "ip": "example"})
client.LivednsAxfrSlave().remove({"fqdn": "example", "ip": "example"})

Ruby

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

livedns_axfr_slaves = client.LivednsAxfrSlave.list({ "fqdn" => "example" })
updated = client.LivednsAxfrSlave.update({ "fqdn" => "example", "ip" => "example" })
client.LivednsAxfrSlave.remove({ "fqdn" => "example", "ip" => "example" })

TypeScript

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

const livedns_axfr_slaves = await client.LivednsAxfrSlave().list({ fqdn: "example" })
const updated = await client.LivednsAxfrSlave().update({ fqdn: "example", ip: "example" })
await client.LivednsAxfrSlave().remove({ fqdn: "example", ip: "example" })

Fields

Field Type Required Description
message string Yes Message

list

GET /livedns/domains/{fqdn}/axfr/slaves

Operation ID: getLivednsDomainsFqdnAxfrSlaves.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Responses

200: OK

application/json

The response is array of string.

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

remove

DELETE /livedns/domains/{fqdn}/axfr/slaves/{ip}

Operation ID: deleteLivednsDomainsFqdnAxfrSlavesIp.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
ip path string Yes

Responses

202: Accepted
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}/axfr/slaves/{ip}

Operation ID: putLivednsDomainsFqdnAxfrSlavesIp.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
ip path string Yes

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