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
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 |