Page rule id

How to get the pagerule id for importing the pagerules into terraform?

Hi @atul1,

It looks like you can get this through the API with:
https://api.cloudflare.com/#page-rules-for-a-zone-list-page-rules

Alternatively, it is possible through the dashboard using developer tools. This tutorial is for Firewall Rules, but it’s pretty similar - there is a GET request for /zoneid/pagerules which contains the IDs in the response.

1 Like

Thank you for the help!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.