LivednsKey
A zone's DNSSEC keys on LiveDNS: list, create, get, undelete (update) or delete 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/{fqdn}/keys |
create |
Created |
GET |
/livedns/domains/{fqdn}/keys |
list |
OK |
GET |
/livedns/domains/{fqdn}/keys/{id} |
load |
OK |
DELETE |
/livedns/domains/{fqdn}/keys/{id} |
remove |
No Content |
PATCH |
/livedns/domains/{fqdn}/keys/{id} |
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_keys, err := client.LivednsKey(nil).List(map[string]any{"fqdn": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(livedns_keys)
livedns_key, err := client.LivednsKey(nil).Load(map[string]any{"fqdn": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(livedns_key)
created, err := client.LivednsKey(nil).Create(map[string]any{"fqdn": "example", "flags": 1}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.LivednsKey(nil).Update(map[string]any{"id": "example_id", "fqdn": "example", "deleted": true}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
removed, err := client.LivednsKey(nil).Remove(map[string]any{"fqdn": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local livedns_keys, err = client:LivednsKey():list({ fqdn = "example" })
local livedns_key, err = client:LivednsKey():load({ fqdn = "example", id = "example_id" })
local created, err = client:LivednsKey():create({ fqdn = "example", flags = 1 })
local updated, err = client:LivednsKey():update({ id = "example_id", fqdn = "example", deleted = true })
local removed, err = client:LivednsKey():remove({ fqdn = "example", id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$livedns_keys = $client->LivednsKey()->list(["fqdn" => "example"]);
$livedns_key = $client->LivednsKey()->load(["fqdn" => "example", "id" => "example_id"]);
$created = $client->LivednsKey()->create(["fqdn" => "example", "flags" => 1]);
$updated = $client->LivednsKey()->update(["id" => "example_id", "fqdn" => "example", "deleted" => true]);
$client->LivednsKey()->remove(["fqdn" => "example", "id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
livedns_keys = client.LivednsKey().list({"fqdn": "example"})
livedns_key = client.LivednsKey().load({"fqdn": "example", "id": "example_id"})
created = client.LivednsKey().create({ "fqdn": "example", "flags": 1 })
updated = client.LivednsKey().update({"id": "example_id", "fqdn": "example", "deleted": True})
client.LivednsKey().remove({"fqdn": "example", "id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
livedns_keys = client.LivednsKey.list({ "fqdn" => "example" })
livedns_key = client.LivednsKey.load({ "fqdn" => "example", "id" => "example_id" })
created = client.LivednsKey.create({ "fqdn" => "example", "flags" => 1 })
updated = client.LivednsKey.update({ "id" => "example_id", "fqdn" => "example", "deleted" => true })
client.LivednsKey.remove({ "fqdn" => "example", "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const livedns_keys = await client.LivednsKey().list({ fqdn: "example" })
const livedns_key = await client.LivednsKey().load({ fqdn: "example", id: "example_id" })
const created = await client.LivednsKey().create({ fqdn: "example", flags: 1 })
const updated = await client.LivednsKey().update({ id: "example_id", fqdn: "example", deleted: true })
await client.LivednsKey().remove({ fqdn: "example", id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
algorithm |
integer |
Yes | Algorithm |
algorithm_name |
string |
Yes | Algorithm Name |
deleted |
boolean |
Yes | Deleted |
ds |
string |
Yes | Ds |
fingerprint |
string |
Yes | Fingerprint |
flags |
integer |
Yes | Flags |
fqdn |
string |
Yes | Fqdn |
id |
string |
Yes | Id |
key_href |
string |
Yes | Key Href |
message |
string |
Yes | Message |
public_key |
string |
Yes | Public Key |
status |
string |
Yes | Status |
tag |
integer |
Yes | Tag |
create
POST /livedns/domains/{fqdn}/keys
Operation ID: postLivednsDomainsFqdnKeys.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fqdn |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
flags |
enum: 256, 257 |
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 |
list
GET /livedns/domains/{fqdn}/keys
Operation ID: getLivednsDomainsFqdnKeys.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fqdn |
path |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].algorithm |
integer |
Yes | |
[].algorithm_name |
string |
Yes | |
[].deleted |
boolean |
Yes | |
[].ds |
string |
Yes | |
[].flags |
enum: 256, 257 |
Yes | |
[].fqdn |
string |
Yes | |
[].id |
string |
Yes | |
[].key_href |
string |
Yes | |
[].status |
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}/keys/{id}
Operation ID: getLivednsDomainsFqdnKeysId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fqdn |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
algorithm |
integer |
Yes | |
algorithm_name |
string |
Yes | |
deleted |
boolean |
Yes | |
ds |
string |
Yes | |
fingerprint |
string |
Yes | |
flags |
enum: 256, 257 |
Yes | |
fqdn |
string |
Yes | |
id |
string |
Yes | |
key_href |
string |
Yes | |
public_key |
string |
Yes | |
status |
string |
Yes | |
tag |
integer |
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 |
remove
DELETE /livedns/domains/{fqdn}/keys/{id}
Operation ID: deleteLivednsDomainsFqdnKeysId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fqdn |
path |
string |
Yes | |
id |
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
PATCH /livedns/domains/{fqdn}/keys/{id}
Operation ID: patchLivednsDomainsFqdnKeysId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fqdn |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
deleted |
enum: false |
Yes |
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 |