[comment]: # translation:outdated

[comment]: # ({8a5e44d6-8a5e44d6})
# housekeeping.get

[comment]: # ({/8a5e44d6-8a5e44d6})

[comment]: # ({20b555a9-695e57b4})
### Descrizione

`object housekeeping.get(object parameters)`

Questo metodo consente di recuperare un oggetto housekeeping 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 del ruolo utente. Vedere [User
roles](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

[comment]: # ({/20b555a9-695e57b4})

[comment]: # ({3a8de98a-24b20f8d})
### Parametri

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

Il metodo supporta un solo parametro.

|Parametro|[Tipo](/manual/api/reference_commentary#data-types)|Descrizione|
|--|--|------|
|output|query|Questo parametro è descritto nel [commento di riferimento](/manual/api/reference_commentary#common-get-method-parameters).|

[comment]: # ({/3a8de98a-24b20f8d})

[comment]: # ({490df090-490df090})
### Valori restituiti

"(object)" Restituisce l'oggetto di pulizia.

[comment]: # ({/490df090-490df090})

[comment]: # ({99d91711-1d4e9444})
### Esempi

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

```json
{
    "jsonrpc": "2.0",
    "method": "housekeeping.get",
    "params": {
        "output": "extend"
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "hk_events_mode": "1",
        "hk_events_trigger": "365d",
        "hk_events_service": "1d",
        "hk_events_internal": "1d",
        "hk_events_discovery": "1d",
        "hk_events_autoreg": "1d",
        "hk_services_mode": "1",
        "hk_services": "365d",
        "hk_audit_mode": "1",
        "hk_audit": "31d",
        "hk_sessions_mode": "1",
        "hk_sessions": "365d",
        "hk_history_mode": "1",
        "hk_history_global": "0",
        "hk_history": "31d",
        "hk_trends_mode": "1",
        "hk_trends_global": "0",
        "hk_trends": "365d",
        "db_extension": "",
        "compression_status": "0",
        "compress_older": "7d"
    },
    "id": 1
}
```

[comment]: # ({/99d91711-1d4e9444})

[comment]: # ({523212cf-523212cf})
### Fonte

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

[comment]: # ({/523212cf-523212cf})
