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 → Get All Policies
AI-generatedSummary
Retrieve firewall policies from the selected ADOM and policy package
Inputs
- domain (required) — Domain of FortiManager API to operate on (e.g., pm, device_manager, etc.)
- accessMethod — Method used to access policies, either 'package' (ADOM policy) or 'device' (direct device policies)
- adom (required) — Administrative Domain (ADOM) name; default is 'root'
- package (required) — Name of the policy package to query; default is 'default'
- device (required) — Name of the target device; required when accessMethod is 'device'
- additionalFields — Optional fields such as filter, limit, format, or vdom to customize the request
Output shape
an array of firewall policy objects
Each entry describes a policy; the response may be empty, and errors are handled outside this output
Examples
Example 1: List all policies in the default ADOM using the default package
domain=pm, accessMethod=package, adom=root, package=default
Example 2: Get policies for a specific device
domain=pm, accessMethod=device, device=switch01, adom=root, package=default
Example 3: Retrieve policies with a filter and limited results
domain=pm, accessMethod=package, adom=root, package=default, additionalFields={"filter":"name:web*","limit":10,"format":"expanded"}