addFlexConfigObject
The addFlexConfigObject operation handles configuration related to FlexConfigObject 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 | A mandatory unicode alphanumeric string containing a unique name for the object, from 1 to 128 characters without spaces. The string cannot include HTML tags. The check for duplicates is performed with a case insensitive search. | |||
description | False | string | An optional unicode alphanumeric string containing a description of the object, up to 200 characters. The string cannot include HTML tags Field level constraints: length must be between 0 and 200 (inclusive). (Note: Additional constraints might exist) |
|||
lines | False | [string] | A list of commands that will be deployed. The commands should not configure features that you can configure using Secure Firewall device manager. If you need to use an existing object in a command line, use a FlexVariable object to point to the existing object, then refer to the FlexVariable object in the command. |
|||
negateLines | False | [string] | A list of commands that will negate the commands in 'lines' field. | |||
isBlacklisted | True | boolean | If true, indicates that the object contains one or more prohibited commands. Default is false. Field level constraints: cannot be null. (Note: Additional constraints might exist) |
|||
variables | False | [object] | A list of FlexVariable objects, which you can reference in the lines or negateLines attributes | |||
type | True | string | A UTF8 string, all letters lower-case, that represents the class-type. This corresponds to the class name. |
Example
- name: Execute 'addFlexConfigObject' operation
ftd_configuration:
operation: "addFlexConfigObject"
data:
name: "{{ name }}"
description: "{{ description }}"
lines: "{{ lines }}"
negateLines: "{{ negate_lines }}"
isBlacklisted: "{{ is_blacklisted }}"
variables: "{{ variables }}"
type: "{{ type }}"