> Host prototype object
The following objects are directly related to the hostprototype
API.以下对象与“hostprototype”API直接相关。
Host prototype 主机原型
The host prototype object has the following properties.主机原型对象具有以下属性。
参数 | 类型 | 描述 |
---|---|---|
hostid | string | (readonly) ID of the host prototype. 主机原型的ID。 |
host(required) | string | Technical name of the host prototype.主机原型的技术名称。 |
name | string | Visible name of the host prototype. 主机原型的可见名称。 Default: host property value. 默认值:host 属性值。 |
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. 父模板主机原型的ID |
tlsconnect | integer | Connections to host. 连接到主机。Possible values are:可能的值是: 1 - (default默认) No encryption;无加密 2 - PSK; 4 - certificate. 证书 |
tls_accept | integer | Connections from host.主机连接。 Possible bitmap values are:可能的位图值为: 1 - (default默认)_ No encryption;无加密 2 - PSK; 4 - certificate.证书 |
tls_issuer | string | Certificate issuer. 证书发行者 |
tls_subject | string | 证书类别 |
tls_psk_identity | string | PSK identity. Required if either tls_connect or tls_accept has PSK enabled.PSK身份 如果“tls_connect”或“tls_accept”启用了PSK,则必需。 |
tls_psk | string | The preshared key, at least 32 hex digits. Required if either tls_connect or tls_accept has PSK enabled. 预共享密钥,至少32位十六进制数字。 如果“tls_connect”或“tls_accept”启用了PSK,则必需。 |
Host prototype inventory 最初的原型库存
The host prototype inventory object has the following properties. 主机原型库存对象具有以下属性
参数 | 类型 | 描述 |
---|---|---|
inventorymode | integer | Host prototype inventory population mode. 主机原型库存人口模式。Possible values are: 可能的值是:-1 - disabled;禁用 0 - (default)_ manual;手动 1 - automatic自动. |
Group link组链接
The group link object links a host prototype with a host group and has the following properties.组链接对象将主机原型与主机组链接,并具有以下属性。
参数 | 类型 | 描述 |
---|---|---|
groupprototypeid | string | (readonly) ID of the group link.组链接的ID。 |
groupid(required) | string | ID of the host group.主机组的ID。 |
hostid | string | (readonly) ID of the host prototype 主机原型的ID |
templateid | string | (readonly)_ ID of the parent template group link.父模板组链接的ID。 |
Group prototype组原型
The group prototype object defines a group that will be created for a discovered host and has the following properties.组原型对象定义将为已发现的主机创建的组,并具有以下属性。
参数 | 类型 | 描述 |
---|---|---|
groupprototypeid | string | (readonly) ID of the group prototype.组原型的ID。 |
name(required) | string | Name of the group prototype.组原型的名称 |
hostid | string | (readonly) ID of the host prototype主机原型的ID |
templateid | string | (readonly)_ ID of the parent template group prototype. 父模板组原型的ID。 |