API

DomainDnskey

A domain's DNSSEC keys at the registry: list, add or delete one, or replace them all (update).

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}/dnskeys create Accepted
GET /domain/domains/{domain}/dnskeys list OK
DELETE /domain/domains/{domain}/dnskeys/{id} remove Accepted
PUT /domain/domains/{domain}/dnskeys update Accepted

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_dnskeys, err := client.DomainDnskey(nil).List(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_dnskeys)
created, err := client.DomainDnskey(nil).Create(map[string]any{"domain": "example", "algorithm": 1, "public_key": "example", "type": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.DomainDnskey(nil).Update(map[string]any{"id": "example_id", "domain": "example", "keys": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.DomainDnskey(nil).Remove(map[string]any{"domain": "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 domain_dnskeys, err = client:DomainDnskey():list({ domain = "example" })
local created, err = client:DomainDnskey():create({ domain = "example", algorithm = 1, public_key = "example", type = "example" })
local updated, err = client:DomainDnskey():update({ id = "example_id", domain = "example", keys = {} })
local removed, err = client:DomainDnskey():remove({ domain = "example", id = "example_id" })

PHP

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

$domain_dnskeys = $client->DomainDnskey()->list(["domain" => "example"]);
$created = $client->DomainDnskey()->create(["domain" => "example", "algorithm" => 1, "public_key" => "example", "type" => "example"]);
$updated = $client->DomainDnskey()->update(["id" => "example_id", "domain" => "example", "keys" => []]);
$client->DomainDnskey()->remove(["domain" => "example", "id" => "example_id"]);

Python

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

domain_dnskeys = client.DomainDnskey().list({"domain": "example"})
created = client.DomainDnskey().create({ "domain": "example", "algorithm": 1, "public_key": "example", "type": "example" })
updated = client.DomainDnskey().update({"id": "example_id", "domain": "example", "keys": []})
client.DomainDnskey().remove({"domain": "example", "id": "example_id"})

Ruby

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

domain_dnskeys = client.DomainDnskey.list({ "domain" => "example" })
created = client.DomainDnskey.create({ "domain" => "example", "algorithm" => 1, "public_key" => "example", "type" => "example" })
updated = client.DomainDnskey.update({ "id" => "example_id", "domain" => "example", "keys" => [] })
client.DomainDnskey.remove({ "domain" => "example", "id" => "example_id" })

TypeScript

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

const domain_dnskeys = await client.DomainDnskey().list({ domain: "example" })
const created = await client.DomainDnskey().create({ domain: "example", algorithm: 1, public_key: "example", type: "example" })
const updated = await client.DomainDnskey().update({ id: "example_id", domain: "example", keys: [] })
await client.DomainDnskey().remove({ domain: "example", id: "example_id" })

Fields

Field Type Required Description
algorithm integer Yes Algorithm
digest string Yes Digest
digest_type integer Yes Digest Type
href string Yes Href
id integer Yes Id
keys array Yes Keys
keytag integer Yes Keytag
message string Yes Message
public_key string Yes Public Key
type string Yes Type

create

POST /domain/domains/{domain}/dnskeys

Operation ID: postDomainDomainsDomainDnskeys.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
algorithm integer Yes
public_key string Yes
type enum: none, zsk, ksk 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

list

GET /domain/domains/{domain}/dnskeys

Operation ID: getDomainDomainsDomainDnskeys.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes
page query integer No
per_page query integer No

Responses

200: OK

application/json

Property Type Required Description
[].algorithm integer Yes
[].digest string Yes
[].digest_type integer Yes
[].href string Yes
[].id integer Yes
[].keytag integer Yes
[].public_key string No
[].type enum: none, zsk, ksk 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 /domain/domains/{domain}/dnskeys/{id}

Operation ID: deleteDomainDomainsDomainDnskeysId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes
id 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

update

PUT /domain/domains/{domain}/dnskeys

Operation ID: putDomainDomainsDomainDnskeys.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
keys array of object Yes
keys[].algorithm integer Yes
keys[].public_key string Yes
keys[].type enum: none, zsk, ksk 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