Skip to content

Instantly share code, notes, and snippets.

@adrianbiro
Last active June 21, 2023 19:20
Show Gist options
  • Save adrianbiro/a26853feb4096d256ca78c328c3a8f06 to your computer and use it in GitHub Desktop.
Save adrianbiro/a26853feb4096d256ca78c328c3a8f06 to your computer and use it in GitHub Desktop.
# token is from stackowerflow https://stackoverflow.com/questions/38196231/cloudflare-api-error-zone-identifier-cannot-be-found
curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=example.com&status=active&page=1&per_page=20&order=status&direction=desc&match=all" -H "X-Auth-Email: user@example.com" -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" -H "Content-Type: application/json" | ConvertFrom-Json | Get-Member 

like https://stackoverflow.com/questions/9655027/how-to-obtain-all-fields-of-an-object#9655094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment