> Application object

以下是 application API 的使用方法。

应用集

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

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

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

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

The following objects are directly related to the application API.

Application

The application object has the following properties.

PropertyTypeDescription
applicationidstring(readonly) ID of the application.
hostid
(required)
stringID of the host that the application belongs to.

Cannot be updated.
name
(required)
stringName of the application
flagsinteger(readonly) Origin of the application.

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