How determine newly created policy id:
Hello, i create a new poliy directly on fortigate CLI with:
config firewall policy
Description: "My Policy"
edit 0
set name "MyPolicy"
set action accept
set dstintf IFACE_01
set dstaddr MyDstServer
set srcintf IFACE_02
set srcaddr MySrcServer
set service HTTP
set schedule always
set schedule-timeout disable
set status enable
set logtraffic all
end
The command does not return the newly created policyid, since i want to create some batch operation where i have to place the policy before a specific other policy, is there an easy way to return the created policyid, i only know the command
get firewall policy
where i have to use the last ID.
