Optional caller-defined metadata stored on the client instance.
Creates a client for a PowerDNS Authoritative webserver.
Optional caller-defined metadata stored on the client instance.
Connection details for the PowerDNS API.
Optionalextra?: EOptionalfetch?: {Optionallogger?: { error?: (error: Error) => void }Optionalserver?: { id: string }Optionalversion?: stringReadonlyautoprimariesAccess to autoprimary endpoints.
ReadonlycacheAccess to cache maintenance endpoints.
ReadonlyconfigAccess to /servers/{server_id}/config.
Lists PowerDNS configuration settings for a server.
ReadonlycryptokeysAccess to DNSSEC cryptokey endpoints.
ReadonlymetadataAccess to zone metadata endpoints.
ReadonlymetricsAccess to the webserver /metrics endpoint.
Reads Prometheus-style metrics text from the PowerDNS webserver.
ReadonlynetworksAccess to network-to-view mapping endpoints.
ReadonlysearchAccess to the search endpoint.
ReadonlyserversAccess to /servers.
ReadonlystatisticsAccess to statistics endpoints.
ReadonlytsigkeysAccess to TSIG key endpoints.
ReadonlyviewsAccess to view endpoints.
Base URL for API requests without the version suffix.
Caller-supplied metadata attached to this client instance.
Default PowerDNS server target.
PowerDNS commonly exposes the authoritative server as localhost. When the
caller omits a server id, the client falls back to that value.
Configured PowerDNS API version path such as /api/v1.
Base PowerDNS webserver URL with a trailing slash.
This is used for non-versioned endpoints like /metrics.
ReadonlyzonesAccess to zone endpoints under /servers/{server_id}/zones.
Optional server override for all returned zone helpers.
Triggers an AXFR retrieve operation for a secondary zone.
Creates a zone.
Deletes a zone.
Exports a zone in text form.
Reads a zone by id.
Lists zones for the selected server.
Sends DNS NOTIFY for a zone.
Rectifies DNSSEC records for a zone.
Creates RRSet mutation helpers for a zone.
Updates zone metadata using the zone PUT endpoint.
PowerDNS Authoritative HTTP API client.
This client is a thin wrapper around the endpoints documented by PowerDNS and keeps request and response payloads close to the upstream API.
See
https://doc.powerdns.com/authoritative/http-api/