cmdb_get
Retrieve a single FortiOS configuration object by CMDB path and key from a FortiGate device, returning the raw JSON with secret fields redacted.
Instructions
Get one configuration object by key (GET /api/v2/cmdb/{path}/{key}).
Examples: path "firewall/policy" key "56"; path "system/interface" key "port1"; path "vpn.ipsec/phase1-interface" key "branch-vpn". Secret fields are redacted.
Parameters:
device_id: Identifier of the FortiGate device
path: cmdb table path
key: Object key (policy id, object name, interface name, ...)
vdom: Virtual Domain name (optional)
Returns:
The raw JSON object
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": {
"device_id": "<device_id>",
"path": "<path>",
"key": "<key>"
},
"name": "cmdb_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key | |
| path | Yes | cmdb table path | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |