Cisco Cisco Firepower Management Center 4000 Guía Del Desarrollador

Descargar
Página de 102
 
2-27
FireSIGHT System Host Input API Guide
 
Chapter 2      Using the Host Input API
  Host Input API Functions
DeleteHostAttribute
You can use the 
DeleteHostAttribute
 function to delete attributes.
Use this syntax:
DeleteHostAttribute($source_type_id, $source_id, $attrib_name)
where 
attributename 
is the name of the attribute (consisting of alphanumeric characters and spaces.)
SetAttributeValue
You can use the 
SetAttributeValue
 function to set the value of an existing attribute to the specified 
value for the specified hosts. This function can set the value of user-defined host attributes and the 
Criticality attribute. You can use this function to set the host criticality by using 
“criticality”
 as the 
attribute 
$id
.
See 
 for an example of this function used in a script.
Use this syntax:
SetAttributeValue($source_type_id, $source_id, $addr_string, $attrib_list, $id, 
$value)
Table 2-22
DeleteHostAttribute Fields 
Field
Description
Required
Allowed Values
$source_type_id
Indicates the type of the 
host input source. 
Yes
“Application” or “Scanner”
Note you should set the 
$source_type_id
 variable to 
contain a value before invoking the 
AddHostAttribute
 
function, and then reference 
$source_type_id
 in your 
function call. For more information, see 
$source_id
Indicates the source ID 
for the source adding the 
host input. 
Yes
“source_id”
Note you should set the 
$source_id
 variable to contain 
the source ID before invoking the 
DeleteHostAttribute
 
function, and then reference 
$source_id
 in your 
function call. For more information, see 
.
$attrib_name
Indicates the host 
attribute or attributes 
specifying the hosts 
affected by the host 
input.
Yes
Department”