trigger_fmg_restore
Restore FortiManager's entire configuration from a remote FTP, SCP, SFTP, or TFTP backup file; requires explicit confirmation and interrupts FMG service during restore.
Instructions
Restore the FortiManager system from a backup on a remote server.
Restores the FortiManager's own configuration from a backup file previously uploaded to an external FTP/SCP/SFTP/TFTP server (see trigger_fmg_backup). This is a disruptive, FortiManager-itself operation -- it does not touch any managed device, but it does REPLACE FMG's ENTIRE configuration and will interrupt the FMG service.
Safety: governed by FMG_RESTORE_SAFETY (default "strict"). Under strict, this call is refused unless confirm=True is also passed -- unlike install_package (gated by a verified preview) or firewall policy writes (gated by content screening), there is no dry-run or content check possible for a restore, so the gate is a plain explicit confirmation instead. Set FMG_RESTORE_SAFETY=disabled to remove the gate entirely.
Args: service: Transfer protocol - "ftp", "scp", "sftp", or "tftp" server: Remote server hostname or IP address filename: Path and file name of the backup on the remote server username: Login username for the remote server (optional) userpasswd: Login password for the remote server (optional) port: Remote server port (optional; protocol default used if unset) passwd: Password to decrypt the backup file, if it was encrypted (optional) confirm: Must be True to proceed under FMG_RESTORE_SAFETY=strict (default). Ignored when FMG_RESTORE_SAFETY=disabled.
Returns: dict: Restore result with keys: - status: "success" or "error" - message: Status or error message
Example: >>> result = await trigger_fmg_restore( ... service="ftp", ... server="10.210.35.207", ... filename="tmp/fmg_backup.dat", ... username="tiger", ... userpasswd="fortinet", ... confirm=True, ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| passwd | No | ||
| server | Yes | ||
| confirm | No | ||
| service | Yes | ||
| filename | Yes | ||
| username | No | ||
| userpasswd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||