Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamesst20 opened this issue Dec 3, 2019 · 1 comment

Comments

@jamesst20
Copy link

jamesst20 commented Dec 3, 2019

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 !

@ioquatix
Copy link
Member

ioquatix commented Dec 3, 2019

Yeah that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants