API

LivednsTsigKey

A TSIG key for zone transfers: list, create or get one, or its configuration for a DNS server (config).

Operations

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

Method Route SDK operation Returns
POST /livedns/axfr/tsig create Created
GET /livedns/axfr/tsig list OK
GET /livedns/axfr/tsig/{id}/config/{software} load OK
GET /livedns/axfr/tsig/{id} 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:

livedns_tsig_keys, err := client.LivednsTsigKey(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_tsig_keys)
livedns_tsig_key, err := client.LivednsTsigKey(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_tsig_key)
created, err := client.LivednsTsigKey(nil).Create(map[string]any{"config_samples": map[string]any{}, "href": "example", "id": "example", "key_name": "example", "secret": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local livedns_tsig_keys, err = client:LivednsTsigKey():list()
local livedns_tsig_key, err = client:LivednsTsigKey():load({ id = "example_id" })
local created, err = client:LivednsTsigKey():create({ config_samples = {}, href = "example", id = "example", key_name = "example", secret = "example" })

PHP

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

$livedns_tsig_keys = $client->LivednsTsigKey()->list();
$livedns_tsig_key = $client->LivednsTsigKey()->load(["id" => "example_id"]);
$created = $client->LivednsTsigKey()->create(["config_samples" => [], "href" => "example", "id" => "example", "key_name" => "example", "secret" => "example"]);

Python

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

livedns_tsig_keys = client.LivednsTsigKey().list()
livedns_tsig_key = client.LivednsTsigKey().load({"id": "example_id"})
created = client.LivednsTsigKey().create({ "config_samples": {}, "href": "example", "id": "example", "key_name": "example", "secret": "example" })

Ruby

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

livedns_tsig_keys = client.LivednsTsigKey.list()
livedns_tsig_key = client.LivednsTsigKey.load({ "id" => "example_id" })
created = client.LivednsTsigKey.create({ "config_samples" => {}, "href" => "example", "id" => "example", "key_name" => "example", "secret" => "example" })

TypeScript

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

const livedns_tsig_keys = await client.LivednsTsigKey().list()
const livedns_tsig_key = await client.LivednsTsigKey().load({ id: "example_id" })
const created = await client.LivednsTsigKey().create({ config_samples: {}, href: "example", id: "example", key_name: "example", secret: "example" })

Fields

Field Type Required Description
config_samples object Yes Config Samples
href string Yes Href
id string Yes Id
key_name string Yes Key Name
secret string Yes Secret

create

POST /livedns/axfr/tsig

Operation ID: postLivednsAxfrTsig.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id query string No

Responses

201: Created

application/json

Property Type Required Description
href string Yes
id string Yes
key_name 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/axfr/tsig

Operation ID: getLivednsAxfrTsig.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
[].href string Yes
[].id string Yes
[].key_name string Yes
[].secret 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/axfr/tsig/{id}/config/{software}

Operation ID: getLivednsAxfrTsigIdConfigSoftware.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes
software path enum: bind, knot, nsd, powerdns Yes
sharing_id query string No

Responses

200: OK

application/json

The response is 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

GET /livedns/axfr/tsig/{id}

Operation ID: getLivednsAxfrTsigId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
config_samples object Yes
config_samples.bind string Yes
config_samples.knot string Yes
config_samples.nsd string Yes
config_samples.powerdns string Yes
href string Yes
id string Yes
key_name string Yes
secret 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