# > Application object

以下是 `application` API 的使用方法。

### 应用集

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

|属性            类|说明|<|
|---------------------|------|-|
|applicationid|string|*(readonly)* 应用集的 ID。|
|**hostid**<br>(required)|string|应用集所属主机的 ID。<br><br>不能进行更新。|
|**name**<br>(required)|string|应用集名称。|
|flags|integer|*(readonly)* 应用集的来源。<br><br>可能的值为：<br>0 - 普通应用集；<br>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**<br>(required)|string|ID of the host that the application belongs to.<br><br>Cannot be updated.|
|**name**<br>(required)|string|Name of the application|
|flags|integer|*(readonly)* Origin of the application.<br><br>Possible values:<br>0 - a plain application;<br>4 - a discovered application.|
|templateids|array|*(readonly)* IDs of the parent template applications.|
