Skip to content

StackStorm-Exchange/stackstorm-cloudflare

Repository files navigation

Build Status License

Cloudflare Pack

A pack for interacting with the Cloudflare API.

Configuration

Copy the example configuration in cloudflare.yaml.example to /opt/stackstorm/configs/cloudflare.yaml and edit as required.

cp /opt/stackstorm/packs/cloudflare/cloudflare.yaml.example /opt/stackstorm/configs/cloudflare.yaml

It should contain:

  • api_key - Cloudflare API key, details here
  • api_email - Cloudflare API email address (username)

You can also use dynamic values from the datastore. See the docs for more info.

Note : When modifying the configuration in /opt/stackstorm/configs/ please remember to tell StackStorm to load these new values by running st2ctl reload --register-configs

Actions

get_ips

Returns the current IPs for the Cloudflare service, does not require an API key.

get_zones

Returns a list of the current DNS Zones in your Cloudflare account. Requires an API key.

get_zone_dns_records

Returns a list of the DNS Records in a given Zone. Requires an API key.