[comment]: # aside: 1

[comment]: # ({4b9de593-01e2c406})
# 发现的服务对象

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

[comment]: # ({/4b9de593-01e2c406})

[comment]: # ({6f43f624-507852d3})
### 已发现服务

::: noteclassic
已发现服务由 Zabbix 服务器创建，
无法通过 API 修改。
:::

已发现服务对象包含由主机上的网络发现规则发现的服务信息。它具有以下属性。

|属性|[类型](/manual/api/reference_commentary#data-types)|描述|
|--|--|------|
|dserviceid|ID|已发现服务的 ID。|
|dcheckid|ID|用于检测该服务的发现检查 ID。|
|dhostid|ID|运行该服务的已发现主机 ID。|
|dns|string|运行该服务的主机的 DNS。|
|ip|string|运行该服务的主机的 IP 地址。|
|lastdown|timestamp|已发现服务上次停止运行的时间。|
|lastup|timestamp|已发现服务上次恢复运行的时间。|
|port|integer|服务端口号。|
|status|integer|服务状态。<br><br>可能的值：<br>0 - 服务运行；<br>1 - 服务停止。|
|value|string|执行 Zabbix agent、SNMPv1、SNMPv2 或 SNMPv3 发现检查时，该服务返回的值。|

[comment]: # ({/6f43f624-507852d3})
