Zone ruleset permission for API token

Hello all,

would somebody be able to help complete newbie in the cloudflare world please.

it's been almost half a day since I'm trying to make my first zone and redirection rule work (I started playing with cloudflare on domain that just redirects to another one).

I struggle with configuring API token permissions for my terraform resource "cloudflare_ruleset" "this" { is there any good resource that show what permission is necessary for certain operation ? Or at least a way to get to meaningful error response ? How do I debug such issue?

I replicated terraform API call, response is:
{
  "result": null,
  "success": false,
  "errors": [
    {
      "message": "request is not authorized"
    }
  ],
  "messages": []
}


terraform apply response is the same.

I have been blindly adding permissions to api token and currently have pretty much all that even remotely resemble what I'm trying to achieve (screenshot attached).

Thanks a lot!
image.png
Was this page helpful?