addSNMPUser

The addSNMPUser operation handles configuration related to SNMPUser 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 The SNMPv3 username. Usernames must be 32 characters or less.
description False string Description of the object.
Field level constraints: length must be between 0 and 200 (inclusive), must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
securityLevel True string An enum value that defines the security level for the user. Allowed values are AUTH, NOAUTH or PRIV. AUTH - Authentication but No Privacy, which means that messages are authenticated, NOAUTH — No Authentication and No Privacy, which means that no security is applied to messages, PRIV — Authentication and Privacy, which means that messages are authenticated and encrypted.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
authenticationAlgorithm False string An enum value that specifies the encryption algorithm to use. Allowed values are SHA, SHA256. Must be null if securityLevel is NOAUTH. Must not be null if securityLevel is AUTH or PRIV.
authenticationPassword False string The password to use for authentication. Must be null if securityLevel is NOAUTH. Must not be null if securityLevel is AUTH or PRIV. If you selected an authentication encryption algorithm, the password must be formatted as xx:xx:xx..., where xx are hexadecimal values. The length of the password will depend on the authentication algorithm selected. For all passwords, the length must be 256 characters or less.
encryptionAlgorithm False string An enum value that defines the type of encryption you want to use: AES128, AES192, AES256, 3DES. Must be null if securityLevel is NOAUTH or AUTH. Must not be null if securityLevel is PRIV
encryptionPassword False string The encryption password if you enable encryption. Must be null if securityLevel is NOAUTH or AUTH. Must not be null if securityLevel is PRIV. The password must be formatted as xx:xx:xx..., where xx are hexadecimal values. For encrypted passwords, the length of the password depends on the encryption type selected. The password sizes are as follows (where each xx is one octal), but for all passwords the length must be 128 characters or less: AES 128 requires 16 octals, AES 192 requires 24 octals, AES 256 requires 32 octals, 3DES requires 32 octals
type True string A UTF8 string, all letters lower-case, that represents the class-type. This corresponds to the class name.

Example

- name: Execute 'addSNMPUser' operation
  ftd_configuration:
    operation: "addSNMPUser"
    data:
        name: "{{ name }}"
        description: "{{ description }}"
        securityLevel: "{{ security_level }}"
        authenticationAlgorithm: "{{ authentication_algorithm }}"
        authenticationPassword: "{{ authentication_password }}"
        encryptionAlgorithm: "{{ encryption_algorithm }}"
        encryptionPassword: "{{ encryption_password }}"
        type: "{{ type }}"