api.hosts

get()

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

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

GETfreere-reads the certificate
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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

host.current;      // the deploy currently online
host.certificate;  // "none" | "pending" | "active"
host.domains_;     // the customer domains attached
host = api.hosts.get(host_id)

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

هكذا يتم اتباع شهادة الـ

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);
}
import time

host = api.hosts.get(host_id)

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

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

هو ما هو موجود على الإنترنت

الوزع الذي يجيب الآن - الذي ليس دائماً أحدث ما يكون، بعد انت خلفية خلفية. الوزع (( هو التاريخ

الموازِق يأتي معه

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

الأخطاء

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