Cisco Cisco Firepower Management Center 4000 Guía Del Desarrollador
2-26
FireSIGHT System Host Input API Guide
Chapter 2 Using the Host Input API
Host Input API Functions
Host Attribute Functions
For more information, see the following sections:
•
•
•
•
•
AddHostAttribute
You can use the
AddHostAttribute
function to add text or URL attributes.
Note that adding a host attribute does not add a value for the attribute. For more information on setting
an attribute value, see
an attribute value, see
Use this syntax:
AddHostAttribute($source_type_id, $source_id, $attrib_name, $attrib_type)
where
attributename
is the name of the attribute (consisting of alphanumeric characters and spaces)
and
attributetype
is the type of attribute (
text
or
URL
).
Table 2-21
AddHostAttribute 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 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.
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
AddHostAttribute
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.
attribute or attributes
specifying the hosts
affected by the host
input.
Yes
“
Department”
$attrib_type
Indicates the host
attribute or attributes
specifying the hosts
affected by the host
input.
attribute or attributes
specifying the hosts
affected by the host
input.
Yes
“
Text
” or “
URL
”