FortiManager icon

FortiManager

Interact with FortiManager API

Firewall → Move Policy

AI-generated

Summary

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

Discussion