> Host prototype object

The following objects are directly related to the hostprototype API.

Host prototype

The host prototype object has the following properties.

PropertyTypeDescription
hostidstring(readonly) ID of the host prototype.
host
(required)
stringTechnical name of the host prototype.
namestringVisible name of the host prototype.

Default: host property value.
statusintegerStatus of the host prototype.

Possible values are:
0 - (default) monitored host;
1 - unmonitored host.
inventory_modeintegerHost inventory population mode.

Possible values are:
-1 - (default) disabled;
0 - manual;
1 - automatic.
templateidstring(readonly) ID of the parent template host prototype.
discoverintegerHost prototype discovery status.

Possible values:
0 - (default) new hosts will be discovered;
1 - new hosts will not be discovered and existing hosts will be marked as lost.

Group link

The group link object links a host prototype with a host group and has the following properties.

PropertyTypeDescription
group_prototypeidstring(readonly) ID of the group link.
groupid
(required)
stringID of the host group.
hostidstring(readonly) ID of the host prototype
templateidstring(readonly) ID of the parent template group link.

Group prototype

The group prototype object defines a group that will be created for a discovered host and has the following properties.

PropertyTypeDescription
group_prototypeidstring(readonly) ID of the group prototype.
name
(required)
stringName of the group prototype.
hostidstring(readonly) ID of the host prototype
templateidstring(readonly) ID of the parent template group prototype.