fortios_system_snmp_community
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_snmp_community
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_snmp_community | dict | |||
| vdom | str | root |
Example
yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_system_snmp_community:
access_token: '{{ fortios_access_token }}'
state: present
system_snmp_community:
events: cpu-high
hosts:
- ha_direct: enable
host_type: any
id: "7"
interface_select_method: auto
source_ip: 84.230.14.43
vrf_select: "0"
hosts6:
- ha_direct: enable
host_type: any
id: "16"
interface_select_method: auto
vrf_select: "0"
id: "22"
name: default_name_24
query_v1_port: "161"
query_v1_status: enable
query_v2c_port: "161"
query_v2c_status: enable
status: enable
trap_v1_lport: "162"
trap_v1_rport: "162"
trap_v1_status: enable
trap_v2c_lport: "162"
trap_v2c_rport: "162"
trap_v2c_status: enable
vdoms:
- name: default_name_37 (source system.vdom.name)
vdom: root
name: SNMP community configuration.