Any way to create a firewall rule with an API Token?

I’m trying to create a firewall rule across several different accounts that my user is an administrator for. I was hoping that I could do this with an API Token that was defined for “all accounts” but after creating and verifying the token, I can’t find an appropriate API endpoint to use with it for creating firewall rules.

When I tried with the user endpoint I got this error json:

{"success":false,"errors":[{"code":10000,"message":"API Tokens are not supported by this API for now"}]}

  1. Is there an endpoint that would let me create and delete firewall rules using an API Token?

  2. Failing that option, does anyone know a concise way to create a firewall rule across all zones of multiple accounts without using a script that loops through each account separately?

1 Like