create_firmware_template
Creates an unassigned firmware template with catalog-validated versions per platform; assign it later to schedule device upgrades or downgrades.
Instructions
Create a firmware template (not assigned to any device).
Each version is checked against the platform's firmware catalog, so the template can only enforce an image FortiManager can actually get. Assigning the template is a separate step, done in the GUI: once assigned, FortiManager upgrades (or downgrades) the devices to the enforced version in the schedule window.
Verified on FortiManager 8.0.2; the template table is not in the
bundled API reference, so other versions may refuse it (reported as
firmware_templates_unavailable).
Args: name: Template name versions: Enforced versions, one per platform: [{"platform": "FortiGate-VM64-KVM", "version": "7.4.9"}]. The version may include the build ("7.4.9-b2829") adom: ADOM name (default: from DEFAULT_ADOM env var, or "root") description: Optional description image_source: "fds" (FortiGuard, default) or "fmg" (images on FortiManager) schedule_type: "daily" (default) or "weekly" schedule_start_time: Window start, "HH:MM" (default "00:00") schedule_end_time: Window end, "HH:MM" (default "23:59") schedule_days: Days for a weekly schedule, e.g. ["saturday", "sunday"]
Returns: dict: status, template (as list_firmware_templates shows it), message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"versions": "<versions>"
},
"name": "create_firmware_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | No | ||
| name | Yes | ||
| versions | Yes | ||
| description | No | ||
| image_source | No | fds | |
| schedule_days | No | ||
| schedule_type | No | daily | |
| schedule_end_time | No | 23:59 | |
| schedule_start_time | No | 00:00 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||