add_ips_sensor_signature_override
Add a signature filter or override entry to an IPS sensor, targeting specific signatures by name or a broad severity-based filter to control block, pass, and log actions.
Instructions
Add a signature filter/override entry to an IPS sensor.
FortiManager exposes an IPS sensor's "entries" list as its own addressable nested collection (its own add/get/set/update/delete/move endpoints under .../sensor/{sensor}/entries), so this calls that sub-resource's ADD endpoint directly rather than reading the whole sensor, splicing the list in Python, and writing it back -- unlike update_device_wtp_profile_radio's device-DB radio field, which has no such sub-resource and must be read-modify-written as a whole object.
Pass rule with explicit signature names to override specific
signatures (e.g. ["trojan.generic"]); omit it and use severity /
default_action / default_status to add a broad filter entry
instead (matches every signature meeting those criteria).
Args: adom: ADOM name sensor: IPS sensor name (must already exist -- see create_ips_sensor) rule: Specific signature names to override (optional; omit for a broad filter entry) entry_id: Explicit entry ID (0-4294967295). If omitted, FortiManager assigns the next available ID. status: Status of the entry ("disable", "enable", or "default"; default: "enable") action: Action for matched traffic ("pass", "block", "reset", or "default"; default: "default") log: Enable/disable logging for this entry ("enable" or "disable") log_packet: Enable/disable packet logging for this entry ("enable" or "disable") severity: Signature severities to match (e.g. ["critical", "high"]) default_action: Broad-filter action filter ("block", "pass", or "all") default_status: Broad-filter status filter ("disable", "enable", or "all")
Returns: dict: Add result with keys: - status: "success" or "error" - sensor: Sensor name - message: Status or error message
Example: >>> # Override a specific signature to block+log >>> result = await add_ips_sensor_signature_override( ... adom="root", ... sensor="Custom-IPS", ... rule=["trojan.generic"], ... status="enable", ... action="block", ... log="enable", ... )
>>> # Add a broad "block all critical signatures" filter
>>> result = await add_ips_sensor_signature_override(
... adom="root",
... sensor="Custom-IPS",
... severity=["critical"],
... default_action="block",
... status="enable",
... action="block",
... )
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": {
"adom": "<adom>",
"sensor": "<sensor>"
},
"name": "add_ips_sensor_signature_override"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | ||
| adom | Yes | ||
| rule | No | ||
| action | No | default | |
| sensor | Yes | ||
| status | No | enable | |
| entry_id | No | ||
| severity | No | ||
| log_packet | No | ||
| default_action | No | ||
| default_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||