Cisco Cisco Firepower Management Center 2000 Guia Do Programador

Página de 102
 
2-21
FireSIGHT System Host Input API Guide
 
Chapter 2      Using the Host Input API
  Host Input API Functions
Protocol Functions
You can use the protocol functions to update protocol information for hosts in the network map.
For more information, see the following sections:
  •
  •
DeleteProtocol
You can use the 
DeleteProtocol
 function to remove a protocol from the specified IP or MAC host. 
Use this syntax:
DeleteProtocol($source_type_id, $source_id, $addr_string, $attrib_list, $mac_list, 
$proto, $type)
Table 2-17
DeleteProtocol 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 
DeleteProtocol
 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 
DeleteProtocol
 
function, and then reference 
$source_id
 in your 
function call. For more information, see 
$addr_string
Indicates the string 
containing the IP 
address or addresses for 
the affected hosts.
Yes (unless 
attribute lists or 
MAC addresses 
are provided)
A comma-separated list of IP addresses, CIDR blocks, 
and ranges of IP addresses, with each address, block, 
or range enclosed in double quotes.
$attrib_list
Indicates the host 
attribute or attributes 
specifying the hosts 
affected by the host 
input.
Yes (unless IP 
addresses or 
MAC addresses 
are provided)
A list of attribute value hash pairs of the format:
{attribute => “Department”,
value => “Development”},
Note that 
$attrib_list
 must be an array or reference 
an array.
$mac_list
Indicates the list of 
MAC addresses for the 
affected hosts.
Yes (unless IP 
addresses or 
attribute lists are 
provided)
A list of MAC address strings, with or without 
separating colons.
Note that 
$mac_list
 must be an array or reference an 
array.