Firewall rule


#1

Hello, I’ve created a firewall rule blocking an IP address using this endpoint:

https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules

The address gets added, but I can’t find it in the web UI anywhere. Attempting to add it again errors out like it should:
{
“result”: null,
“success”: false,
“errors”: [
{
“code”: 10009,
“message”: “firewallaccessrules.api.duplicate_of_existing”
}
],
“messages”:
}

Then where is it?

The command used was taken from the examples given in the API docs:

curl -X POST “https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules
-H “X-Auth-Email: [email protected]
-H “X-Auth-Key: blah-blah”
-H “Content-Type: application/json”
–data ‘{“mode”:“js_challenge”,“configuration”:{“target”:“ip”,“value”:“10.51.100.4”},“notes”:“This rule is on because of an event that occured on date X”}’


#2

Getting this error too when attempting to update firewall rules.