update_dhcp_server
Modify an existing DHCP server on a FortiGate firewall through the FortiOS REST API. Configure lease time, gateway, DNS, domain, status, or vendor class matching.
Instructions
Update a DHCP server. Note: vci_match=true makes the server answer only clients whose vendor class matches vci-string (FortiOS defaults to FortiSwitch/FortiExtender), which silently ignores ordinary clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| domain | No | Domain name handed to clients | |
| status | No | enable or disable | |
| server_id | Yes | DHCP server id | |
| vci_match | No | Only answer clients matching vci-string | |
| lease_time | No | Lease time in seconds | |
| dns_service | No | local (hand out the FortiGate itself), default (system DNS) or specify | |
| default_gateway | No | Gateway handed to clients |