cloudflare icon indicating copy to clipboard operation
cloudflare copied to clipboard

[Feature] Get DNS record from a token that is not allowed to list all zones

Open jamesst20 opened this issue 5 years ago • 1 comments

Hi,

it currently is not possible to get dns records for a specific domain without granting permissions to list all zones.

As a workaround, this is what I currently do :

connection.with(Cloudflare::Zone, path: "zones/#{cloudflare_zone}").dns_records

It would be great if it could be natively supported :)

It would be even better if we could do something like this (if the api supports it, probably not):

connection.zone_by_name("domain.com").dns_records

Thank you !

jamesst20 avatar Dec 03 '19 13:12 jamesst20

Yeah that makes sense.

ioquatix avatar Dec 03 '19 14:12 ioquatix