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