[comment]: # aside: 1

[comment]: # translation:outdated

[comment]: # ({92410f69-b72559a5})
#  图标映射对象

以下对象与`iconmap` API直接相关。

[comment]: # ({/92410f69-b72559a5})

[comment]: # ({380b8a08-74882a27})
### 图标映射（icon map）

图标映射（icon map）对象有以下属性。

|属性|[类型](/manual/api/reference_commentary#data_types)|描述|
|----|---------------------------------------------------|----|
|iconmapid|ID|图标映射的 ID。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>-只读<br>-在更新操作中是必需的|
|**default\_iconid**<br>（必需）|ID|默认图标的 ID。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>-在创建操作中是必需的|
|**name**<br>（必需）|string|图标映射的名称。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>-在创建操作中是必需的|

[comment]: # ({/380b8a08-74882a27})

[comment]: # ({141655ca-e88b40af})
### 图标映射关系（icon mapping）

图标映射关系（icon mapping）对象定义了一个具体的图标，以供具有特定资产清单字段值的主机使用。它有以下属性。

|属性|[类型](/manual/api/reference_commentary#数据类型)|描述|
|--|--|------|
|iconid|ID|被图标映射关系（icon mapping）使用的图标 ID。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *必需*|
|expression|string|匹配资产清单字段的表达式。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *必需*|
|inventory\_link|integer|主机资产清单字段的 ID。<br><br>参考[主机资产清单对象（host inventory object）](/manual/api/reference/host/object#host_inventory)以获取支持的资产清单字段列表。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *必需*|
|sortorder|integer|图标映射关系（icon mapping）在图标映射（icon map）中的位置。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *只读*|

[comment]: # ({/141655ca-e88b40af})
