[comment]: # ({65bbffce-65bbffce})
# host.get

[comment]: # ({/65bbffce-65bbffce})

[comment]: # ({54619a1f-93035b19})
### Descrizione

`integer/array host.get(object parameters)`

Il metodo consente di recuperare gli host in base ai parametri specificati.

::: noteclassic
Questo metodo è disponibile per utenti di qualsiasi tipo. I permessi
per chiamare il metodo possono essere revocati nelle impostazioni dei ruoli utente. Consultare [Ruoli
utente](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

[comment]: # ({/54619a1f-93035b19})

[comment]: # ({71515b4e-77a8fabb})
### Parametri

`(object)` Parametri che definiscono l'output desiderato.

Il metodo supporta i seguenti parametri.

|Parametro|[Tipo](/manual/api/reference_commentary#data-types)|Descrizione|
|--|--|------|
|groupids|ID/array|Restituisce solo gli host che appartengono ai gruppi specificati.|
|dserviceids|ID/array|Restituisce solo gli host correlati ai servizi rilevati specificati.|
|graphids|ID/array|Restituisce solo gli host che hanno i grafici specificati.|
|hostids|ID/array|Restituisce solo gli host con gli ID host specificati.|
|httptestids|ID/array|Restituisce solo gli host che hanno i controlli web specificati.|
|interfaceids|ID/array|Restituisce solo gli host che utilizzano le interfacce specificate.|
|itemids|ID/array|Restituisce solo gli host che hanno gli item specificati.|
|maintenanceids|ID/array|Restituisce solo gli host interessati dalle manutenzioni specificate.|
|monitored\_hosts|flag|Restituisce solo gli host monitorati.|
|proxyids|ID/array|Restituisce solo gli host monitorati dai proxy specificati.|
|proxy_groupids|ID/array|Restituisce solo gli host monitorati dai gruppi di proxy specificati.|
|templated\_hosts|flag|Restituisce sia host che template.|
|templateids|ID/array|Restituisce solo gli host collegati ai template specificati.|
|triggerids|ID/array|Restituisce solo gli host che hanno i trigger specificati.|
|with\_items|flag|Restituisce solo gli host che hanno item.<br><br>Sovrascrive i parametri `with_monitored_items` e `with_simple_graph_items`.|
|with\_item\_prototypes|flag|Restituisce solo gli host che hanno prototipi di item.<br><br>Sovrascrive il parametro `with_simple_graph_item_prototypes`.|
|with\_simple\_graph\_item\_prototypes|flag|Restituisce solo gli host che hanno prototipi di item abilitati per la creazione e con tipo di informazione numerico.|
|with\_graphs|flag|Restituisce solo gli host che hanno grafici.|
|with\_graph\_prototypes|flag|Restituisce solo gli host che hanno prototipi di grafico.|
|with\_httptests|flag|Restituisce solo gli host che hanno controlli web.<br><br>Sovrascrive il parametro `with_monitored_httptests`.|
|with\_monitored\_httptests|flag|Restituisce solo gli host che hanno controlli web abilitati.|
|with\_monitored\_items|flag|Restituisce solo gli host che hanno item abilitati.<br><br>Sovrascrive il parametro `with_simple_graph_items`.|
|with\_monitored\_triggers|flag|Restituisce solo gli host che hanno trigger abilitati. Anche tutti gli item utilizzati nel trigger devono essere abilitati.|
|with\_simple\_graph\_items|flag|Restituisce solo gli host che hanno item con tipo di informazione numerico.|
|with\_triggers|flag|Restituisce solo gli host che hanno trigger.<br><br>Sovrascrive il parametro `with_monitored_triggers`.|
|withProblemsSuppressed|boolean|Se impostato su `true`, restituisce solo gli host con problemi soppressi.|
|evaltype|integer|[Metodo di valutazione](/manual/web_interface/frontend_sections/data_collection/hosts#using-filter) dei tag.<br><br>Valori possibili:<br>0 - *(predefinito)* And/Or;<br>2 - Or.|
|severities|integer/array|Restituisce gli host che hanno solo problemi con le gravità specificate. Si applica solo se l'oggetto problema è un trigger.|
|tags|object/array|Restituisce solo gli host con i tag specificati.<br>Formato: `[{"tag": "<tag>", "value": "<value>", "operator": "<operator>"}, ...]`.<br>Un array vuoto restituisce tutti gli host.<br><br>Valori possibili di [operator](/manual/web_interface/frontend_sections/data_collection/hosts#using-filter):<br>0 - *(predefinito)* Contiene;<br>1 - Uguale a;<br>2 - Non contiene;<br>3 - Diverso da;<br>4 - Esiste;<br>5 - Non esiste.|
|inheritedTags|boolean|Restituisce gli host che hanno i `tags` specificati anche in tutti i template collegati.<br><br>Valori possibili:<br>`true` - anche i template collegati devono avere i `tags` specificati;<br>`false` - *(predefinito)* i tag dei template collegati vengono ignorati.|
|selectDiscoveryData|query|Restituisce una proprietà `discoveryData` con i dati dell'oggetto di individuazione host. L'oggetto di individuazione host collega un host rilevato a un prototipo di host dal quale è stato rilevato.<br><br>Ha le seguenti proprietà:<br>`host` - `(string)` ID dell'host;<br>`parent_hostid` - `(string)` ID del prototipo di host dal quale l'host è stato creato;<br>`status` - `(int)` stato di individuazione dell'host:<br>0 - *(predefinito)* l'host è rilevato,<br>1 - l'host non è più rilevato;<br>`ts_delete` - `(timestamp)` momento in cui un host non più rilevato verrà eliminato;<br>`ts_disable` - `(timestamp)` momento in cui un host non più rilevato verrà disabilitato;<br>`disable_source` - `(int)` indicatore che specifica se l'host è stato disabilitato da una regola LLD o manualmente:<br>0 - *(predefinito)* disabilitato automaticamente,<br>1 - disabilitato da una regola LLD.|
|selectDiscoveryRule|query|Restituisce una proprietà [`discoveryRule`](/manual/api/reference/discoveryrule/object) con la regola di low-level discovery che ha creato l'host (dal prototipo di host nel monitoraggio VMware).|
|selectDiscoveryRules|query|Restituisce una proprietà [`discoveryRules`](/manual/api/reference/discoveryrule/object) con le regole LLD dell'host.<br><br>Supporta `count`.|
|selectGraphs|query|Restituisce una proprietà [`graphs`](/manual/api/reference/graph/object) con i grafici dell'host.<br><br>Supporta `count`.|
|selectHostGroups|query|Restituisce una proprietà [`hostgroups`](/manual/api/reference/hostgroup/object) con i dati dei gruppi host a cui l'host appartiene.|
|selectHttpTests|query|Restituisce una proprietà [`httpTests`](/manual/api/reference/httptest/object) con gli scenari web dell'host.<br><br>Supporta `count`.|
|selectInterfaces|query|Restituisce una proprietà [`interfaces`](/manual/api/reference/hostinterface/object) con le interfacce dell'host.<br><br>Supporta `count`.|
|selectInventory|query|Restituisce una proprietà [`inventory`](/manual/api/reference/host/object#host-inventory) con i dati dell'inventario dell'host.|
|selectItems|query|Restituisce una proprietà [`items`](/manual/api/reference/item/object) con gli item dell'host.<br><br>Supporta `count`.|
|selectMacros|query|Restituisce una proprietà [`macros`](/manual/api/reference/usermacro/object) con le macro dell'host.|
|selectParentTemplates|query|Restituisce una proprietà `parentTemplates` con i [template](/manual/api/reference/template/object) a cui l'host è collegato.<br><br>Oltre ai campi dell'oggetto Template, contiene `link_type` - `(integer)` il modo in cui il template è collegato all'host.<br>Valori possibili:<br>0 - *(predefinito)* collegato manualmente;<br>1 - collegato automaticamente da LLD.<br><br>Supporta `count`.|
|selectDashboards|query|Restituisce una proprietà [`dashboards`](/manual/api/reference/templatedashboard/object).<br><br>Supporta `count`.|
|selectTags|query|Restituisce una proprietà [`tags`](/manual/api/reference/host/object#host-tag) con i tag dell'host.|
|selectInheritedTags|query|Restituisce una proprietà [`inheritedTags`](/manual/api/reference/host/object#host-tag) con i tag presenti in tutti i template collegati all'host.|
|selectTriggers|query|Restituisce una proprietà [`triggers`](/manual/api/reference/trigger/object) con i trigger dell'host.<br><br>Supporta `count`.|
|selectValueMaps|query|Restituisce una proprietà [`valuemaps`](/manual/api/reference/valuemap/object) con le mappe di valori dell'host.|
|filter|object|Restituisce solo i risultati che corrispondono esattamente al filtro specificato.<br><br>Accetta un oggetto in cui le chiavi sono nomi di proprietà e i valori sono un singolo valore oppure un array di valori da confrontare.<br><br>Non supporta le proprietà del [tipo di dati](/manual/api/reference_commentary#data-types) `text`.<br><br>Supporta proprietà aggiuntive: proprietà di [Host interface](/manual/api/reference/hostinterface/object#host-interface-object).|
|limitSelects|integer|Limita il numero di record restituiti dalle sotto-selezioni.<br><br>Si applica alle seguenti sotto-selezioni:<br>`selectParentTemplates` - i risultati saranno ordinati per `host`;<br>`selectInterfaces`;<br>`selectItems` - ordinati per `name`;<br>`selectDiscoveryRules` - ordinati per `name`;<br>`selectTriggers` - ordinati per `description`;<br>`selectGraphs` - ordinati per `name`;<br>`selectDashboards` - ordinati per `name`.|
|search|object|Restituisce i risultati che corrispondono al modello specificato (senza distinzione tra maiuscole e minuscole).<br><br>Accetta un oggetto in cui le chiavi sono nomi di proprietà e i valori sono stringhe da cercare. Se non vengono fornite opzioni aggiuntive, verrà eseguita una ricerca `LIKE "%…%"`.<br><br>Supporta solo le proprietà del [tipo di dati](/manual/api/reference_commentary#data-types) `string` e `text`.<br><br>Supporta proprietà aggiuntive: proprietà di [Host interface](/manual/api/reference/hostinterface/object#host-interface-object).|
|searchInventory|object|Restituisce gli host che hanno dati di inventario corrispondenti al modello specificato (senza distinzione tra maiuscole e minuscole).<br><br>Accetta un oggetto in cui le chiavi sono nomi di proprietà e i valori sono stringhe da cercare. Se non vengono fornite opzioni aggiuntive, verrà eseguita una ricerca `LIKE "%…%"`.<br><br>Supporta solo le proprietà del [tipo di dati](/manual/api/reference_commentary#data-types) `string` e `text`.|
|sortfield|string/array|Ordina il risultato in base alle proprietà specificate.<br><br>Valori possibili: `hostid`, `host`, `name`, `status`.|
|countOutput|boolean|Questi parametri sono descritti nel [commento di riferimento](/manual/api/reference_commentary#common-get-method-parameters).|
|editable|boolean|^|
|excludeSearch|boolean|^|
|limit|integer|^|
|output|query|^|
|preservekeys|boolean|^|
|searchByAny|boolean|^|
|searchWildcardsEnabled|boolean|^|
|sortorder|string/array|^|
|startSearch|boolean|^|
|selectDiscoveries|query|Restituisce una proprietà [`discoveries`](/manual/api/reference/discoveryrule/object) con le regole di low-level discovery dell'host.<br><br>Supporta `count`.<br><br>Questa query è **deprecata**; utilizzare invece `selectDiscoveryRules`.|
|selectHostDiscovery|query|Restituisce una proprietà `hostDiscovery` con i dati dell'oggetto di individuazione host.<br><br>Questa query è **deprecata**; utilizzare invece `selectDiscoveryData`.|

[comment]: # ({/71515b4e-77a8fabb})

[comment]: # ({7223bab1-7223bab1})
### Valori restituiti

`(intero/array)` Restituisce:

- un array di oggetti;
- il conteggio degli oggetti recuperati, se è stato utilizzato il parametro
`countOutput`.

[comment]: # ({/7223bab1-7223bab1})

[comment]: # ({b41637d2-b41637d2})
### Esempi

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({bdf49605-c6ea3cce})
#### Recupero dei dati per nome

Recupera tutti i dati relativi a due host denominati "Zabbix server" e "Linux
server".

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "filter": {
            "host": [
                "Zabbix server",
                "Linux server"
            ]
        }
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10160",
            "proxyid": "0",
            "host": "Zabbix server",
            "status": "0",
            "ipmi_authtype": "-1",
            "ipmi_privilege": "2",
            "ipmi_username": "",
            "ipmi_password": "",
            "maintenanceid": "0",
            "maintenance_status": "0",
            "maintenance_type": "0",
            "maintenance_from": "0",
            "name": "Zabbix server",
            "flags": "0",
            "description": "Il server di monitoraggio Zabbix.",
            "tls_connect": "1",
            "tls_accept": "1",
            "tls_issuer": "",
            "tls_subject": "",
            "proxy_groupid": "0",
            "monitored_by": "0",
            "inventory_mode": "1",
            "active_available": "1",
            "assigned_proxyid": "0"
        },
        {
            "hostid": "10167",
            "proxyid": "0",
            "host": "Linux server",
            "status": "0",
            "ipmi_authtype": "-1",
            "ipmi_privilege": "2",
            "ipmi_username": "",
            "ipmi_password": "",
            "maintenanceid": "0",
            "maintenance_status": "0",
            "maintenance_type": "0",
            "maintenance_from": "0",
            "name": "Linux server",
            "flags": "0",
            "description": "",
            "tls_connect": "1",
            "tls_accept": "1",
            "tls_issuer": "",
            "tls_subject": "",
            "proxy_groupid": "0",
            "monitored_by": "0",
            "inventory_mode": "1",
            "active_available": "1",
            "assigned_proxyid": "0"
        }
    ],
    "id": 1
}
```

[comment]: # ({/bdf49605-c6ea3cce})

[comment]: # ({8d87c206-9078aff7})
#### Recupero dei gruppi di host

Recupera i gruppi di host di cui l'host "Zabbix server" è membro.

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid"],
        "selectHostGroups": "extend",
        "filter": {
            "host": [
                "Zabbix server"
            ]
        }
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10085",
            "hostgroups": [
                {
                    "groupid": "2",
                    "name": "Linux servers",
                    "flags": "0",
                    "uuid": "dc579cd7a1a34222933f24f52a68bcd8"
                },
                {
                    "groupid": "4",
                    "name": "Zabbix servers",
                    "flags": "0",
                    "uuid": "6f6799aa69e844b4b3918f779f2abf08"
                }
            ]
        }
    ],
    "id": 1
}
```

[comment]: # ({/8d87c206-9078aff7})

[comment]: # ({3f6d4bdf-59c8a46a})
#### Recupero dei template collegati

Recupera gli ID e i nomi dei template collegati all'host "10084".

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid"],
        "selectParentTemplates": [
            "templateid",
            "name"
        ],
        "hostids": "10084"
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10084",
            "parentTemplates": [
                {
                    "name": "Linux",
                    "templateid": "10001"
                },
                {
                    "name": "Zabbix Server",
                    "templateid": "10047"
                }
            ]
        }
    ],
    "id": 1
}
```

[comment]: # ({/3f6d4bdf-59c8a46a})

[comment]: # ({9a8b8f9f-942e31bf})
#### Recupero degli host per template

Recupera gli host a cui è collegato il template "10001" (*Linux by Zabbix agent*).

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid", "name"],
        "templateids": "10001"
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "templateid": "10001",
            "hosts": [
                {
                    "hostid": "10084",
                    "name": "Zabbix server"
                },
                {
                    "hostid": "10603",
                    "name": "Host 1"
                },
                {
                    "hostid": "10604",
                    "name": "Host 2"
                }
            ]
        }
    ],
    "id": 1
}
```

[comment]: # ({/9a8b8f9f-942e31bf})

[comment]: # ({63a1e5ba-8be1d99c})
#### Ricerca per dati di inventario dell'host

Recupera gli host che contengono "Linux" nel campo "OS" dell'inventario dell'host.

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": [
            "host"
        ],
        "selectInventory": [
            "os"
        ],
        "searchInventory": {
            "os": "Linux"
        }
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10084",
            "host": "Zabbix server",
            "inventory": {
                "os": "Linux Ubuntu"
            }
        },
        {
            "hostid": "10107",
            "host": "Linux server",
            "inventory": {
                "os": "Linux Mint"
            }
        }
    ],
    "id": 1
}
```

[comment]: # ({/63a1e5ba-8be1d99c})

[comment]: # ({cfc9b43a-b4e37e5e})
#### Ricerca per tag host

Recupera gli host che hanno il tag "host-name" uguale a "linux-server".

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid"],
        "selectTags": "extend",
        "evaltype": 0,
        "tags": [
            {
                "tag": "host-name",
                "value": "linux-server",
                "operator": 1
            }
        ]
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10085",
            "tags": [
                {
                    "tag": "host-name",
                    "value": "linux-server",
                    "automatic": "0"
                },
                {
                    "tag": "os",
                    "value": "rhel-7",
                    "automatic": "0"
                }
            ]
        }
    ],
    "id": 1
}
```

Recupera gli host che hanno questi tag non solo a livello di host ma anche nei loro template padre collegati.

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["name"],
        "tags": [
            {
                "tag": "os",
                "value": "rhel-7",
                "operator": 1
            }
        ],
        "inheritedTags": true
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10623",
            "name": "PC room 1"
        },
        {
            "hostid": "10601",
            "name": "Office"
        }
    ],
    "id": 1
}
```

Recupera gli host escludendo quelli con il tag "component".

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid"],
        "selectTags": "extend",
        "evaltype": 0,
        "tags": [
            {
                "tag": "component",
                "value": "",
                "operator": 5
            }
        ]
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10084",
            "tags": [
                {
                    "tag": "class",
                    "value": "os",
                    "automatic": "0"
                },
                {
                    "tag": "target",
                    "value": "linux",
                    "automatic": "0"
                }
            ]
        },
        {
            "hostid": "10629",
            "tags": [
                {
                    "tag": "class",
                    "value": "application",
                    "automatic": "0"
                },
                {
                    "tag": "target",
                    "value": "browser",
                    "automatic": "0"
                }
            ]
        }
    ],
    "id": 1
}
```

[comment]: # ({/cfc9b43a-b4e37e5e})

[comment]: # ({c6c128e0-9ebae84e})
#### Ricerca di un host con tag e tag del template

Recupera un host con i tag e tutti i tag collegati ai template
padre.

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["name"],
        "hostids": 10502,
        "selectTags": ["tag", "value"],
        "selectInheritedTags": ["tag", "value"]
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10502",
            "name": "Desktop",
            "tags": [
                {
                    "tag": "host-name",
                    "value": "linux-server"
                },
                {
                    "tag": "os",
                    "value": "rhel-7"
                }
            ],
            "inheritedTags": [
                {
                    "tag": "class",
                    "value": "os"
                },
                {
                    "tag": "target",
                    "value": "linux"
                },
                {
                    "tag": "os",
                    "value": "rhel-7"
                }
            ]
        }
    ],
    "id": 1
}
```

[comment]: # ({/c6c128e0-9ebae84e})

[comment]: # ({ee33fbef-219d4ee1})
#### Ricerca degli host per gravità del problema

Recupera gli host che hanno problemi di livello "Disaster".

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["name"],
        "severities": 5
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "10160",
            "name": "Zabbix server"
        }
    ],
    "id": 1
}
```

Recupera gli host che hanno problemi di livello "Average" e "High".

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["name"],
        "severities": [3, 4]
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        {
            "hostid": "20170",
            "name": "Database"
        },
        {
            "hostid": "20183",
            "name": "workstation"
        }
    ],
    "id": 1
}
```

[comment]: # ({/ee33fbef-219d4ee1})

[comment]: # ({2a837857-56ff1999})
#### Recupero degli item dell'host

Recupera gli item per l'host "Zabbix server". La richiesta è limitata alle proprietà dell'item `itemid`, `name` e `status`. A causa delle grandi dimensioni della risposta, nell'esempio viene mostrato solo un sottoinsieme degli item.

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "host.get",
    "params": {
        "output": ["hostid"],
        "selectItems": ["itemid","name","status"],
        "filter": {
            "host": [
                "Zabbix server"
            ]
        }
    },
    "id": 1
}
```

Risposta:

```json
{
  "jsonrpc": "2.0",
  "result": [
    {
      "hostid": "10084",
      "items": [
        {
          "itemid": "42227",
          "name": "Host name of Zabbix agent running",
          "status": "0"
        },
        {
          "itemid": "42237",
          "name": "Zabbix agent ping",
          "status": "0"
        },
        {
          "itemid": "42250",
          "name": "Version of Zabbix agent running",
          "status": "0"
        },
        {
          "itemid": "42251",
          "name": "Maximum number of open file descriptors",
          "status": "0"
        },
        {
          "itemid": "42252",
          "name": "Maximum number of processes",
          "status": "0"
        },
        {
          "itemid": "69869",
          "name": "Interface enp0s3: Inbound packets discarded",
          "status": "0"
        },
        {
          "itemid": "69870",
          "name": "Interface enp0s3: Inbound packets with errors",
          "status": "0"
        },
        {
          "itemid": "69871",
          "name": "Interface enp0s3: Bits received",
          "status": "0"
        },
        {
          "itemid": "69872",
          "name": "Interface enp0s3: Outbound packets discarded",
          "status": "0"
        },
        {
          "itemid": "69873",
          "name": "Interface enp0s3: Outbound packets with errors",
          "status": "0"
        },
        {
          "itemid": "69874",
          "name": "Interface enp0s3: Bits sent",
          "status": "0"
        },
        {
          "itemid": "42253",
          "name": "Number of processes",
          "status": "0"
        },
        {
          "itemid": "42254",
          "name": "Number of running processes",
          "status": "0"
        },
        {
          "itemid": "42255",
          "name": "System boot time",
          "status": "0"
        }
      ]
    }
  ],
  "id": 1
}
```

[comment]: # ({/2a837857-56ff1999})

[comment]: # ({fd8058f7-06c7fe93})
### Vedi anche

-   [Gruppo host](/manual/api/reference/hostgroup/object#host-group)
-   [Template](/manual/api/reference/template/object#template)
-   [Macro utente](/manual/api/reference/usermacro/object#hosttemplate-level-macro)
-   [Interfaccia host](/manual/api/reference/hostinterface/object#host-interface)
-   [Proxy](/manual/api/reference/proxy/object#proxy)
-   [Gruppo proxy](/manual/api/reference/proxygroup/object#proxy-group)

[comment]: # ({/fd8058f7-06c7fe93})

[comment]: # ({55c08f7a-55c08f7a})
### Sorgente

CHost::get() in *ui/include/classes/api/services/CHost.php*.

[comment]: # ({/55c08f7a-55c08f7a})
