const domains = await host.domains.list();
// [{ name: "www.example.com", status, certificate }]domains = host.domains.list()
# [{"name": "www.example.com", "status", "certificate"}]Against host.domains_
| domains_ | domains.list() | |
|---|---|---|
| Is | What the object was built with | A fresh read |
| Costs | nothing | one request |
| Use it | to render immediately | after attaching, or to follow a certificate |
After attaching, read it rather than the field
The object was built before the attachment. The field is a snapshot; this is the state.
Each name has its own certificate
A name just attached is pending for a moment while the one attached yesterday is active — which is why the state is per domain rather than per host.
An empty list
The host serves only at its own address. That is a complete, working state — a custom domain is an addition, not a requirement.