fortios_user_nac_policy
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_user_nac_policy
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 | ||
| user_nac_policy | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_user_nac_policy:
access_token: '{{ fortios_access_token }}'
state: present
user_nac_policy:
category: device
host: myhostname
match_period: "0"
match_remove: default
match_type: dynamic
name: default_name_16
severity:
- severity_num: 1
status: enable
switch_auto_auth: global
switch_group:
- name: default_name_27 (source switch-controller.switch-group.name)
vdom: root
name: Configure NAC policy matching pattern to identify matching NAC devices.