Pausing all Cloudflare domains

tags: cloudflare  web-api 

Sometimes I want to do bulk actions on everything hidden behind a Cloudflare account, so I need to pause Cloudflare. I do have direct access through another hostname, but that’s sometimes not the same thing.

Cloudflare has an API, so this action is easy to script once I’ve collected some Zone IDs: