# get()

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

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

وقد أعيدت قراءة أحد المضيفين، مع انتشاره الحالي، ونطاقاته وشهادته - من المنصة.

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
```

## هكذا يتم اتباع شهادة الـ {#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);
}
```

لا شيء يُعلمك. الولاية تُعاد قراءة عندما يقرأ المضيف، وهو ما يجعل المقياس القصير هو الشكل الصحيح بعد النشر على مستوى عنوان جديد.

## هو ما هو موجود على الإنترنت {#current}

الوزع الذي يجيب الآن - الذي ليس دائماً أحدث ما يكون، بعد [انت خلفية خلفية](/ar/sdk/ref/host/rollback). [الوزع ((](/ar/sdk/ref/host/deploys) هو التاريخ

## الموازِق يأتي معه {#domains}

`domains.list()` نفس الشيء مع طلب منه، وهو مفيد بعد إرفاقه.

## الأخطاء {#errors}

ويجيب مجهول الهوية على 404 بيانات - بما في ذلك حساب تابع لحساب آخر، وهو نفس الجواب عن قصد.

- [البلد](/ar/sdk/ref/host): ما يحمله المضيف، وما يمكنك فعله به.
- [deploys()](/ar/sdk/ref/host/deploys): التاريخ

```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)
```
