cmdb_create
Create CMDB configuration objects in FortiOS by sending POST requests to the API. Provide resource path and data as JSON, with optional VDOM targeting.
Instructions
Create a new CMDB configuration object (POST).
Covers any POST on /api/v2/cmdb/{resource_path}.
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": {
"resource_path": "<resource_path>",
"data": "<data>"
},
"name": "cmdb_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_path | Yes | CMDB collection path (without key). Example: 'firewall/policy', 'system/interface', 'router/static' | |
| data | Yes | JSON string with the object properties to create. Must comply with the FortiOS schema for this resource. Example: '{"name": "my-addr", "type": "ipmask", "subnet": "10.0.0.0/24"}' | |
| vdom | No | Target VDOM name. Defaults to the server default VDOM. Use '*' for all VDOMs (super-admin required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||