Export domain's DNSSEC key

This function exports a DNSSEC security key to a domain.

Note:

Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error.

SecurityBasicAuth
Request
query Parameters
domain
required
string

The domain to export the security key to.

Example: domain=example.com
key_id
required
integer

The security key's ID.

Note:

You can locate the ID with the WHM AP1 fetch_ds_records_for_domains function.

Example: key_id=1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/export_zone_key
Request samples
whmapi1 --output=jsonpretty \
  export_zone_key \
  domain='example.com' \
  key_id='1'
Response samples
application/json
{
  • "data": {
    • "key_tag": 40481,
    • "key_type": "CSK"
    },
  • "metadata": {
    • "command": "export_zone_key",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}