> Application object

以下是 application API 的使用方法。

应用集

应用集对象包含以下属性。

属性 类 说明
applicationid string (readonly) 应用集的 ID。
hostid
(required)
string 应用集所属主机的 ID。

不能进行更新。
name
(required)
string 应用集名称。
flags integer (readonly) 应用集的来源。

可能的值为:
0 - 普通应用集;
4 - 自动发现的应用集。
templateids array (readonly) 上级模板应用集的 ID。

The following objects are directly related to the application API.

Application

The application object has the following properties.

Property Type Description
applicationid string (readonly) ID of the application.
hostid
(required)
string ID of the host that the application belongs to.

Cannot be updated.
name
(required)
string Name of the application
flags integer (readonly) Origin of the application.

Possible values:
0 - a plain application;
4 - a discovered application.
templateids array (readonly) IDs of the parent template applications.