Export domain's DNSKEY record value

This function exports a domain's DNSKEY record value.

SecurityBasicAuth
Request
query Parameters
domain
required
string <domain>

The domain from which to fetch the DNSKEY record value.

Example: domain=example.com
key_id
required
integer >= 1

The DNSSEC record's ID.

Example: key_id=12345
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/export_zone_dnskey
Request samples
whmapi1 --output=jsonpretty \
  export_zone_dnskey \
  domain='example.com' \
  key_id='12345'
Response samples
application/json
{
  • "data": {
    • "dnskey": "AwEAAch8SGW4vE6PjFWA9rbUm0AfTq+gJ0HC/nLu+2axdWHBIStt9lsOzKDorAr4vlmhlJzEzA62s96xp6mZ7XHUyWnkFwLs8obo6upL2in4h1ToOxzVl3lTs8O+kWtDq5/h1nwFlPDs9zpLJhlkTCtx2OTGbvimEYeqwPolUuSQR/Yb",
    • "key_id": 12345
    },
  • "metadata": {
    • "command": "export_zone_dnskey",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}