Cisco Cisco Firepower Management Center 4000 Guía Del Desarrollador

Descargar
Página de 60
 
3-7
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 “Enabled?” that provides user with two choices: 
On
 or 
Off
. The choice defaults to 
true
that is, the radio button labeled 
On
 is preselected.
<boolean>
<name>process_enabled</name>
<display_name>Enabled?</display_name>
<default_value>true</default_value>
</boolean>
The integer Element
Each 
integer
 element you use in a 
config_template
 represents a field in the web interface that accepts 
an integer value.
The following diagram illustrates the child and grandchild elements of the 
integer
 element.
The following table describes the child elements available to the 
integer
 element. 
Table 3-3
integer Attributes, Child Elements, and Grandchild Elements 
Name
Type
Description
Required?
required
attribute
Indicates whether users must provide a value in the field.
This attribute defaults to 
true
. You are not required to use this 
attribute. Therefore, if you do not use it (or if you explicitly set its 
value to 
true
), users must provide a value. If you set the value of 
the attribute to 
false
, the web interface indicates that providing a 
value is optional.
no
name
element
Provides context to the remediation module for the value entered in 
the field. Names may not contain white space and may only contain 
alphanumeric characters and the underscore (_) and dash (-) 
character.Names should be unique within a module. 
yes
display_name
element
Specifies the web interface label for this field.
yes
default_value
element
Specifies the default value for this field. If the web interface user 
does not specify a value, the remediation program uses this value 
by default.
no