Export Cloudflare DNS records in BIND config format
| exportcloudflaredns
Each event represents a zone output.
python ../build.py -d export-cloudflare --splunk-sdk
Install the addon before running this.
Query/add/update Cloudflare api key to the credential storage. The API token should have Zone.Zone.Read and Zone.DNS.Read permissions with IP restriction (if applicable).
API key will be validated prior to addition if api.cloudflare.com is reachable unless --skip-validate is specified.
cloudflare-api-key.py [--host] https://localhost:8089 [--verify] [--check-key] [--skip-validate] [--update] [--delete]
Options:
- host: Splunk management endpoint. (default: https://localhost:8089)
- verify: Verify TLS verification for https connections. (default: False)
- check-key: Check key validity using
user/tokens/verifyendpoint, without checking for permissions. If it is valid, ask if want to save it. Other options have no effect. - skip-validate: Skip validating api key when adding/updating a license key. Key check is automatically skipped if api.cloudflare.com is unreachable.
- update: Add api key even if there is an existing api key.
- delete: Delete existing api key from the credential storage, regardless the key exists or not.
Example:
cloudflare-api-key.py
- Prompt for Splunk credential.
- User should have
edit_storage_passwordspermission.
- User should have
- Prompt for api key.
- Check key validity.
- If existing key exists, ask if want to update it.
- Add api key to the credential storage.