Create Page Rule using API


#1

Good day
is there somewhere list of action ids and values supported for each and every action id?
Thanks in advance


#2

The documentation at https://api.cloudflare.com/#page-rules-for-a-zone-create-page-rule is pretty scarce about that. The best I could find was the actions from the control panel HTML code

  • always_online
  • browser_cache_ttl
  • browser_check
  • cache_deception_armor
  • cache_level
  • disable_apps
  • disable_performance
  • disable_security
  • edge_cache_ttl
  • email_obfuscation
  • forwarding_url
  • ip_geolocation
  • minify
  • explicit_cache_control
  • rocket_loader
  • security_level
  • server_side_exclude
  • ssl

Probably not a complete list though.


#3

Thank you Sandro
But may be you have list of values that those actions accept
Thanks in advance


#4

You can probably extract that from the HTML too. Otherwise I’d contact support.


#5

Thanks Sandro
One more question

always_online,browser_check,cache_deception_armor are off by default?
disable_apps,disable_performance,disable_security are disabled by default?

#6

Yet another question for support :slight_smile: