PARALLAX

fortios_switch_controller_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_switch_controller_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

NameTypeRequiredDefaultDescription
access_tokenstr
enable_logboolfalse
member_pathstr
member_statestr
statestryes
switch_controller_snmp_communitydict
vdomstrroot

Example

yaml
# Define these inventory variables: fortios_access_token.
- fortinet.fortios.fortios_switch_controller_snmp_community:
    access_token: '{{ fortios_access_token }}'
    state: present
    switch_controller_snmp_community:
        events: cpu-high
        hosts:
            - id: "5"
        id: "7"
        name: default_name_8
        query_v1_port: "161"
        query_v1_status: disable
        query_v2c_port: "161"
        query_v2c_status: disable
        status: disable
        trap_v1_lport: "162"
        trap_v1_rport: "162"
        trap_v1_status: disable
        trap_v2c_lport: "162"
        trap_v2c_rport: "162"
        trap_v2c_status: disable
    vdom: root
  name: Configure FortiSwitch SNMP v1/v2c communities globally.
Search
    ↑ ↓ move↵ openesc close