joeig / go-powerdns

Go PowerDNS 4.x API Client

Home Page:https://pkg.go.dev/github.com/joeig/go-powerdns/v3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support query parameters on fetching rrsets

tnsimon opened this issue · comments

https://doc.powerdns.com/authoritative/http-api/zone.html#get--servers-server_id-zones-zone_id

The Power DNS API supports filtering by the following query params. Would be great to support this via the RecordsService. Happy to contribute this addition.

rrsets (boolean) – “true” (default) or “false”, whether to include the “rrsets” in the response Zone object.
rrset_name (string) – Limit output to RRsets for this name.
rrset_type (string) – Limit output to the RRset of this type. Can only be used together with rrset_name.