This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Quick PowerShell function to obtain your CloudFlare Zones using the v4 API | |
.DESCRIPTION | |
This function is to obtain a list of zones on your CloudFlare account | |
You can then use the returned id for other CloudFlare API calls. | |
https://api.cloudflare.com/ | |
.PARAMETER Token | |
Obtain your API token here: https://support.cloudflare.com/hc/en-us/articles/200167836-Where-do-I-find-my-Cloudflare-API-key- | |
.PARAMETER EMail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Quick PowerShell function to purge your CloudFlare Cache for a specific zone | |
.DESCRIPTION | |
This is a simple function to purge CloudFlare cache for a specific zone, can be integrated with an | |
Azure DevOps (or equivalent) pipeline. | |
.PARAMETER Token | |
Obtain your API token here: | |
https://support.cloudflare.com/hc/en-us/articles/200167836-Where-do-I-find-my-Cloudflare-API-key- | |
.PARAMETER EMail |