The following objects are directly related to the iconmap
API.以下是iconmap API的使用方法。
The icon map object has the following properties.图标拓扑图对象有以下属性。
属性 类 | 说明 | |
---|---|---|
iconmapid | string | (readonly) ID of the icon map.(只读)图标拓扑图ID。 |
default_iconid (reqiured) |
string | ID of the default icon.默认图标的ID。 |
name (required) |
string | Name of the icon map. 图标拓扑图的名称。 |
The icon mapping object defines a specific icon to be used for hosts with a certain inventory field value. It has the following properties.图标映射对象定义了一个具体的图标,给具有特定资产清单字段值的主机使用。图标映射有以下属性。
属性 类 | 说明 | |
---|---|---|
iconmappingid | string | (readonly) ID of the icon map.(只读)图标拓扑图ID。 |
iconid (required) |
string | ID of the icon used by the icon mapping.被图标映射使用到的图标ID。 |
expression (required) |
string | Expression to match the inventory field against. 使资产清单字段匹配的表达式。 |
inventory_link (required) |
integer | ID of the host inventory field.主机资产清单字段ID。 Refer to the host inventory object for a list of supported inventory fields. 参考host inventory object支持的资产清单字段列表。 |
iconmapid | string | (readonly) ID of the icon map that the icon mapping belongs to. (只读)图标映射所属的图标拓扑图ID。 |
sortorder | integer | (readonly) Position of the icon mapping in the icon map.(只读)在图标拓扑图中图标映射的位置。 |