list_policy_revisions
Lists the change history for firewall policies in a FortiManager policy package, optionally filtered to one policy, and returns snapshots for reverting changes.
Instructions
List the change log for a policy package's firewall policies.
Args: adom: ADOM name package: Policy package name policyid: Limit to one policy's change history (optional; all policies in the package if omitted)
Returns: dict: status, adom, package, policyid, count, changes -- each entry has act (1=created, 2=deleted, 3=modified), key (the policyid), config (a JSON-encoded policy snapshot at that change -- pass straight to revert_firewall_policy), timestamp, user
Example: >>> result = await list_policy_revisions("demo", "ppkg_001", policyid=14) >>> first_change = result["changes"][0] >>> await revert_firewall_policy("demo", "ppkg_001", first_change["config"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| package | Yes | ||
| policyid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||