Cloudflare Plugin
The CloudQuery Cloudflare plugin pulls configuration out of Cloudflare resources.
Authentication
In order to fetch information from Cloudflare, cloudquery
needs to be authenticated. There are a few options for authentication:
- Export the
CLOUDFLARE_API_TOKEN
environment variable before runningcloudquery sync
. - Export the
CLOUDFLARE_EMAIL
andCLOUDFLARE_API_KEY
environment variables before running cloudquery - Specifying either the
api_token
orapi_email, api_key
parameters in the YAML configuration (See Configuration for more details).
Query Examples
Find all zones with dev_mode
enabled
SELECT id, account_id, host_name, name, original_ns FROM cloudflare_zones WHERE dev_mode = true;
Find all DNS records
SELECT id, account_id, zone_id, name, type FROM cloudflare_dns_records;
Last updated on November 28, 2022