Skip to main content
AskingForHelp
New Member
February 6, 2023
Question

Failed dependecy for the firewall policy POST method

  • February 6, 2023
  • 1 reply
  • 1533 views

Hello Community,

 

I am attempting to POST an additional firewall policy using the API method. Getting back a 424 Failed dependency. I have always included the API key, and have also tried optionally setting vdom,  datasouce, and with_meta but none resolved the issue. Although they are all not checked in the screenshot, they each have been tried. Here is a screenshot from Postman.

 

Screenshot from 2023-02-06 09-40-10.png

 

Body is JSON format, as follows

{     "name": "TEST",     "srcintf": [       {         "name": "lan"       }     ],     "dstintf": [       {         "name": "lan"       }     ],     "action": "accept",     "srcaddr": [       {         "name": "all"       }     ],     "dstaddr": [       {         "name": "all"       }     ],     "schedule": {       "q_origin_key": "always"     },     "service": [       {         "name": "ALL"       }     ],     "nat": "enable"  }

Any thoughts on what this could be depending on?

 

Appreciate it

1 reply

gfleming
Staff
Staff
February 6, 2023

For API POST and PUT methods you need to include the CSRF Token. You can only access GET requests with the API Key.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.