addSNMPHost

The addSNMPHost operation handles configuration related to SNMPHost model. 

Description

This API call is not allowed on the standby unit in an HA pair.

Data Parameters

Parameter Required Type Description
name True string Name of the object
description False string An optional description of the host object.
Field level constraints: length must be between 0 and 200 (inclusive), must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
managerAddress True object The name of a network object that defines the IP addresses of the management stations that can access this device. You can specify up to 4000 host addresses for polling, but only 128 if you enable traps. The network objects can be IPv6 or IPv4 host objects, or IPv4 subnet or address range objects.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
Allowed types are: [NetworkObject]
udpPort True integer The trap UDP port number for the SNMP host. The default value is 162.
Field level constraints: cannot be null, must be between 1 and 65535 (inclusive). (Note: Additional constraints might exist)
pollEnabled True boolean A Boolean value, TRUE or FALSE, that indicates whether polling is enabled. When enabled, the management station periodically requests information from the device. SNMP Poll and Trap both cannot be FALSE.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
trapEnabled True boolean A Boolean value, TRUE or FALSE, that indicates whether traps are enabled. When enabled, the device sends trap events to the management station as they occur. SNMP Poll and Trap both cannot be FALSE.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
securityConfiguration True object Must have valid values complying with format specified in SNMPv3SecurityConfiguration, SNMPv2cSecurityConfiguration or SNMPv1SecurityConfiguration.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
interface False object A name that represents a PhysicalInterface or a SubInterface or a Mgmt Interface from which traps are sent.
type True string A UTF8 string, all letters lower-case, that represents the class-type. This corresponds to the class name.

Example

- name: Execute 'addSNMPHost' operation
  ftd_configuration:
    operation: "addSNMPHost"
    data:
        name: "{{ name }}"
        description: "{{ description }}"
        managerAddress: "{{ manager_address }}"
        udpPort: "{{ udp_port }}"
        pollEnabled: "{{ poll_enabled }}"
        trapEnabled: "{{ trap_enabled }}"
        securityConfiguration: "{{ security_configuration }}"
        interface: "{{ interface }}"
        type: "{{ type }}"