update_interface
Modify a FortiGate interface's IP, mode, status, role, or access settings. Verify changes to the management interface to avoid cutting off API access.
Instructions
Update an interface. Changing the interface this server connects through (its IP, mode or allowaccess) can cut off API access, so double-check those changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Address in CIDR form (10.0.0.1/24) or 'ip mask' | |
| mode | No | Addressing mode: static, dhcp or pppoe | |
| name | Yes | Interface name, e.g. port2 | |
| role | No | Role: lan, wan, dmz or undefined | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| alias | No | Alias | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| status | No | up or down | |
| allowaccess | No | Management access, e.g. [ping, https, ssh] | |
| description | No | Description |