# get()

Canonical URL: https://developers.iagenify.com/de/sdk/ref/hosts/get/
Language: de

`api.hosts.get(id) → Promise<Host>`

Ein Host mit seinem aktuellen Einsatz, seinen Domains und seinem Zertifikatsstatus – von der Plattform erneut gelesen.

Status: GET · free · re-reads the certificate

```javascript
const host = await api.hosts.get(id);

host.current;      // the deploy currently online
host.certificate;  // "none" | "pending" | "active"
host.domains_;     // the customer domains attached
```

## So wird ein ausstehendes Zertifikat befolgt {#certificate}

```javascript
let host = await api.hosts.get(id);

while (host.certificate === "pending") {
  await new Promise((r) => setTimeout(r, 10_000));
  host = await api.hosts.get(id);
}
```

Nichts informiert Sie. Der Zustand wird neu gelesen, wenn ein Host gelesen wird, was eine kurze Umfrage nach einem Einsatz auf einer neuen Adressebene zur richtigen Form macht.

## aktuell ist, was online ist {#current}

Die Deploy, die jetzt antwortet - was nicht immer die neueste ist, nach einem [rollback](/de/sdk/ref/host/rollback). [deploys()](/de/sdk/ref/host/deploys) ist die Geschichte.

## Die angeschlossenen Domains kommen mit {#domains}

`domains.list()` liest das gleiche mit einer eigenen Anfrage, die nach dem Anbringen eines nützlich ist.

## Fehler {#errors}

Ein unbekannter Identifier antwortet 404 — einschließlich eines anderen Kontos, das die gleiche Antwort ist, absichtlich.

- [Rechner](/de/sdk/ref/host): Was ein Wirt trägt und was man damit tun kann.
- [deploys()](/de/sdk/ref/host/deploys): Die Geschichte.

```python
host = api.hosts.get(host_id)

host.current       # the deploy currently online
host.certificate   # "none" | "pending" | "active"
host.domains_      # the customer domains attached
```

```python
import time

host = api.hosts.get(host_id)

while host.certificate == "pending":
    time.sleep(10)
    host = api.hosts.get(host_id)
```
