fortios_switch_controller_vlan
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_switch_controller_vlan
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_token | str | |||
| enable_log | bool | false | ||
| member_path | str | |||
| member_state | str | |||
| state | str | yes | ||
| switch_controller_vlan | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_switch_controller_vlan:
access_token: '{{ fortios_access_token }}'
state: present
switch_controller_vlan:
auth: radius
color: "16"
name: default_name_6
security: open
selected_usergroups:
- name: default_name_16 (source user.group.name)
vlanid: "2047"
vdom: root
name: Configure VLANs for switch controller.