revert_adom_revision
Restores the live ADOM database to a selected past revision by cloning it into a new revision; explicit confirmation is required under strict safety.
Instructions
Revert the live ADOM DB to a past revision.
FortiManager has no dedicated revert-ADOM-revision call. The documented
mechanism (How-To 013, "How to revert an ADOM Revision?") is to clone
the target past revision: this both restores the live ADOM DB to that
historical state and records the clone itself as a brand-new revision.
This writes to the ADOM DB (a pure ADOM object, not a device) -- push any
restored policy/object changes to devices separately with preview_install
install_package/install_device_settings as needed.
Safety: governed by FMG_REVERT_SAFETY (default "strict"), same pattern as trigger_fmg_restore -- refused unless confirm=True is also passed. A clone-revert has no dry-run or content-screening equivalent (unlike the firewall-policy revert, which is gated by content instead): it replaces the entire live ADOM DB in one call, so the gate is a plain explicit confirmation. Set FMG_REVERT_SAFETY=disabled to remove it.
Args:
adom: ADOM name
revision: Revision number to revert to (the version field from
list_adom_revisions)
name: Name for the newly-created revision (default:
"Restored-rev_{revision}")
desc: Description for the newly-created revision (default:
"Revert of ADOM Revision #{revision}")
locked: Protect the newly-created revision from deletion (default
False)
confirm: Must be True to proceed under FMG_REVERT_SAFETY=strict
(default). Ignored when FMG_REVERT_SAFETY=disabled.
Returns: dict: status, adom, reverted_from, new_revision, message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| desc | No | ||
| name | No | ||
| locked | No | ||
| confirm | No | ||
| revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||