Cisco Cisco Firepower Management Center 2000 Entwickleranleitung
2-14
FireSIGHT System Host Input API Guide
Chapter 2 Using the Host Input API
Host Input API Functions
DeleteService
You can use the
DeleteService
function to remove a server from a specified host. You must specify the
port and protocol of the server to be deleted.
Use this syntax:
DeleteService($source_type_id, $source_id, $addr_string, $attrib_list, $port, $proto)
Table 2-9
UnsetService Fields
Field
Description
Required
Allowed Values
$source_type_id
Indicates the type of the
host input source.
host input source.
Yes
“Application”
or
“Scanner”
Note you should set the
$source_type_id
variable to contain the appropriate value before
invoking the
invoking the
UnsetService
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.
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
UnsetService
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.
containing the IP
address or addresses for
the affected hosts.
Yes
A comma-separated list of IP addresses, CIDR
blocks, and ranges of IP addresses, enclosed in
double quotes.
blocks, and ranges of IP addresses, enclosed in
double quotes.
$port
Indicates the port for the
server to be unset.
server to be unset.
Yes
Integers in the range of 1-65535.
$proto
Indicates the protocol
for the server to be
unset.
for the server to be
unset.
Yes
Either the strings
tcp
or
udp
or the appropriate
protocol IDs
6
(tcp) or
17
(udp).