Actions28
- Firewall Actions
- Get All Policies
- Get Policy
- Get Firewall Addresses
- Create Policy
- Update Policy
- Delete Policy
- Move Policy
- Clone Policy
- Create Address
- Update Address
- Delete Address
- List Services
- Create Service
- Delete Service
- List Address Groups
- Create Address Group
- Update Address Group
- Delete Address Group
- List Service Groups
- Create Service Group
- Delete Service Group
- List VIPs
- Create VIP
- Update VIP
- Delete VIP
- List IP Pools
- Create IP Pool
- Delete IP Pool
Firewall → Move Policy
AI-generatedSummary
Move a firewall policy within a specified package to a new position relative to another policy.
Inputs
- domain (required) — Domain of FortiManager API to operate on
- adom (required) — Administrative Domain name
- packageName (required) — Name of the policy package
- policyId (required) — ID of the policy to move
- position (required) — Position relative to the target policy
- targetPolicyId (required) — ID of the policy to position relative to
Output shape
a list of items
Successful execution returns the API response; errors are handled separately and may return an error object.
Examples
Example 1: Move a firewall policy into a package and place it before another policy
domain=pm, adom=root, packageName=MyPackage, policyId=101, position=before, targetPolicyId=202
Example 2: Move a firewall policy to the end of a package
domain=pm, adom=root, packageName=MyPackage, policyId=101, position=after, targetPolicyId=202