The following objects are directly related to the hostprototype
API.
The host prototype object has the following properties.
Property | Type | Description |
---|---|---|
hostid | string | (readonly) ID of the host prototype. |
host (required) |
string | Technical name of the host prototype. |
name | string | Visible name of the host prototype. Default: host property value. |
status | integer | Status of the host prototype. Possible values are: 0 - (default) monitored host; 1 - unmonitored host. |
templateid | string | (readonly) ID of the parent template host prototype. |
The host prototype inventory object has the following properties.
Property | Type | Description |
---|---|---|
inventory_mode | integer | Host prototype inventory population mode. Possible values are: -1 - disabled; 0 - (default) manual; 1 - automatic. |
The group link object links a host prototype with a host group and has the following properties.
Property | Type | Description |
---|---|---|
group_prototypeid | string | (readonly) ID of the group link. |
groupid (required) |
string | ID of the host group. |
hostid | string | (readonly) ID of the host prototype |
templateid | string | (readonly) ID of the parent template group link. |
The group prototype object defines a group that will be created for a discovered host and has the following properties.
Property | Type | Description |
---|---|---|
group_prototypeid | string | (readonly) ID of the group prototype. |
name (required) |
string | Name of the group prototype. |
hostid | string | (readonly) ID of the host prototype |
templateid | string | (readonly) ID of the parent template group prototype. |