fortios_system_api_user
Manage FortiOS configuration through native controller HTTPAPI; requires httpapi inventory and fortinet.fortios.fortios network OS
Collection: fortinet.fortios
Full Name: fortinet.fortios.fortios_system_api_user
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 | ||
| system_api_user | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_system_api_user:
access_token: '{{ fortios_access_token }}'
state: present
system_api_user:
name: default_name_7
peer_auth: enable
trusthost:
- id: "12"
ipv4_trusthost: myhostname
ipv6_trusthost: myhostname
type: ipv4-trusthost
vdom:
- name: default_name_17 (source system.vdom.name)
vdom: root
name: Configure API users.