Hey guys,
I hope someone can help me, I have a problem adding Global Header/Footer Policies to a policy package in the Global Adom (I tried version 5.2/5.4) via the new Fortimanager API.
This is my soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:r20="http://r200806.ws.fmg.fortinet.com/">
<soapenv:Header/>
<soapenv:Body>
<r20:addPmConfig54AdomObjGlobalHeaderPolicy>
<path>
<adom></adom>
</path>
<!--1 or more repetitions:-->
<data>
<policyid>0</policyid>
<srcintf>any</srcintf>
<dstintf>any</dstintf>
<srcaddr>gall</srcaddr>
<dstaddr>gall</dstaddr>
<action>accept</action>
<status>enable</status>
<schedule>galways</schedule>
<service>gALL</service>
...
</data>
<session>ZjD0QE2dPWEMo49/ZoPZ7LRUWJVuInHzYrNJw6HwUW/cuk7wAz9eOMiz1HEW6esraTOUhfog1lMBuFwgcErrXw==</session>
</r20:addPmConfig54AdomObjGlobalHeaderPolicy>
</soapenv:Body>
</soapenv:Envelope>
This request returns OK and creates a new header policy but within no policy package.
[size="3"]I have tried adding
<pkg>default</pkg>to path (it works for adding normal policies to an Adom), but it seems this is ignored within this command.[/size]
I have tried serveral endpoints for the request like https://<ip>:8080/w...t/global/header/policy
Is there a way to specify and package for this request?
In the path field, besides <adom> there are only two options <policy> and <option>.
Do I miss something here?
Thanks for your help
Greetings Olli
User | Count |
---|---|
2330 | |
1262 | |
772 | |
453 | |
436 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.