Domain

tls()

domain.tls() → Promise<Tls>

The zone's TLS setting, and the certificate of every name attached to it.

per namea wait, not a fault
Using Python?

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

await domain.tls();
// { active: true, mode: "full", certificate: "active",
//   hosts: [{ name: "app.example.com", certificate: "pending" }] }
domain.tls()
# {"active": True, "mode": "full", "certificate": "active",
#  "hosts": [{"name": "app.example.com", "certificate": "pending"}]}

Pending means the address refuses the connection

A fresh certificate takes from seconds to several minutes. Until it is active the handshake fails, which reads from outside exactly like an outage — so check this before telling anyone the address works.