list_device_revisions
Retrieve the device DB revision history for a managed FortiManager device to track installs, auto-updates, retrieves, and reverts, and identify the revision currently in sync.
Instructions
List the device DB revision history for a managed device.
Every install, auto-update, retrieve, or revert creates a new device DB
revision. base_ver is the revision FortiManager currently considers
in sync with the real device configuration.
Note: Requires the device to have at least one device DB revision on record (i.e. it has been installed to or retrieved from at least once). A freshly added device that has never gone through either will make FortiManager return a generic internal-server error here rather than an empty list -- that is FMG's own handling of an empty revision table, not a sign this tool or the underlying API is broken.
Args: device: Managed device name
Returns: dict: status, device, base_ver, count, revisions (each entry has revision, comments, instime/instusr, modtime/modusr, status, tag)
Example: >>> result = await list_device_revisions("hub2") >>> for rev in result["revisions"]: ... print(rev["revision"], rev["comments"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||