create_cmdb_object
Creates FortiGate CMDB configuration objects from raw JSON for tables without a typed tool, letting you add entries using FortiOS field names and an optional VDOM.
Instructions
Create a configuration object in any table from a raw JSON payload (POST /api/v2/cmdb/{path}).
Use the typed create_* tools when one exists; this is for tables without one (e.g. "firewall/ippool", "firewall.schedule/recurring", "system/zone", "vpn.ipsec/phase2-interface"). The payload must use FortiOS field names.
Parameters:
device_id: Identifier of the FortiGate device
path: cmdb table path
data: Object payload as JSON (FortiOS field names, e.g. {"name": "...", "member": [{"name": "..."}]})
vdom: Virtual Domain name (optional)
Returns:
Creation status and the new object's key when FortiOS reports it
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>",
"data": "<data>"
},
"name": "create_cmdb_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Object payload (FortiOS field names) | |
| path | Yes | cmdb table path | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |