Cisco Cisco Firepower Management Center 4000 Entwickleranleitung

Seite von 102
 
2-6
FireSIGHT System Host Input API Guide
 
Chapter 2      Using the Host Input API 
  Host Input API Functions
Use this syntax:
AddHost($source_type_id, $source_id, $ip_address, $mac_address)
DeleteHost
You can use the 
DeleteHost
 function to remove a host (or hosts) from the network map. You can remove 
an IP host (a host with an IP address and optionally a MAC address) by specifying either the IP address 
or the MAC address for the host. To remove a MAC-only host (a host with only a MAC address), indicate 
the MAC address as the 
$mac_list
 value. 
Use this syntax:
DeleteHost($source_type_id, $source_id, $addr_string, $attrib_list, $mac_list)
Table 2-1
AddHost 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 the appropriate value before invoking the 
AddHost
 
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”
Set the 
$source_id
 variable to contain the source ID before 
invoking the 
AddHost
 function, and then reference 
$source_id
 in your function call. For more information, see 
$ip_address
Indicates the IP 
address for the added 
host. 
Yes (unless a MAC 
address is provided)
A single IP address, enclosed in double quotes
$mac_address
Indicates the MAC 
address for the added 
host. 
Yes (unless an IP 
address is provided)
A single MAC address, enclosed in double quotes