Руководство Разработчика для Cisco Cisco Firepower Management Center 2000
3-11
FireSIGHT System Remediation API Guide
Chapter 3 Communicating with the Remediation Subsystem
Defining the Configuration Template
The following portion of a
config_template
element definition indicates that the web interface displays
a field labeled “Login Password”, which accepts an alphanumeric string between 6 and 12 characters
long.
long.
<password>
<name>login_password</name>
<display_name>Login Password</display_name>
<constraints>
<min_length>6</min_length>
<max_length>12</max_length>
</constraints>
</password>
The ipaddress Element
Each
ipaddress
element you use in a
config_template
represents a field in the web interface that
accepts a single IP address. IP addresses may be entered in the form of a fully formed dotted quad (for
example, 1.1.1.1).
example, 1.1.1.1).
The following diagram illustrates the child elements of the
ipaddress
element.
example
element
Provides an example of the input that the remediation module
expects to receive.
expects to receive.
Note
This value is not displayed in the web interface.
no
constraints
element
Constrains the values that the user can enter in this field.
The
constraints
element has three child elements:
min_length
,
max
_
length
and
pcre
. The
min_length
and
max_length
elements
are optional, single-occurrence child elements that accept integer
values and specify a range for the acceptable length of password
values. The
values and specify a range for the acceptable length of password
values. The
pcre
element is optional; use it to specify a
Perl-compatible regular expression that provides additional
constraints.
constraints.
no
Table 3-5
password Attributes, Child Elements, and Grandchild Elements (continued)
Name
Type
Description
Required?