Cisco Cisco Firepower Management Center 4000 Guía Del Desarrollador

Descargar
Página de 60
 
3-19
FireSIGHT System Remediation API Guide
 
Chapter 3      Communicating with the Remediation Subsystem
  Defining the Configuration Template
  •
netmask_li
 indicates that the list accepts multiple netmask values (see 
).
  •
host_li
 indicates that the list accepts multiple host values (see 
  •
enumeration_li
 indicates that the list accepts multiple values as defined by the 
value
 child 
elements of the 
enumeration_li
 element’s 
constraints
 child element (see 
).
The following portion of a 
config_template
 element definition indicates that the web interface should 
allow the user to provide a list of integers between zero and 500 inclusive, one per line, in a field labeled 
“Integer List”.
<list>
<name>list_integer</name>
<display_name>Integer List</display_name>
<example>Constrained value [0-500]</example>
<item_type>
<integer_li>
<constraints>
<min>0</min>
<max>500</max>
</constraints>
</integer_li>
</item_type>
</list>
Sample Configuration Template
This section provides a sample 
config_template
 element definition, which governs both the web 
interface appearance and the types of information the remediation module must receive from the user.
<config_template>
<ipaddress>
<name>host_ip</name>
<display_name>Host IP</display_name>
</ipaddress>
<string>
<name>user_name</name>
<display_name>Username</display_name>
</string>
<password>
<name>login_password</name>
<display_name>Connection Password</display_name>
</password>
<password>
<name>root_password</name>
<display_name>Enable Password</display_name>
</password>
</config_template>
The above template renders four fields on the web interface. The following table describes each field.
Table 3-12
Fields Created by the Sample Configuration Template 
Field
Description
Host IP
Accepts an IP address that the remediation module identifies as 
host_ip
.
Username
Accepts a string that the remediation module identifies as 
user_name
.