api.domains

get()

api.domains.get(id) → Promise<Domain>

Un dominio, per identificator o per nome — get("example.com") funziona.

id or namefree404 if not attached
Using Python?

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

const domain = await api.domains.get("example.com");
const same   = await api.domains.get(domain.id);
domain = api.domains.get("example.com")
same = api.domains.get(domain.id)
Prendere il nome è la parte utile

Un dominio è identificat dal suo nome in altre parti — in un messaggio del cliente, in un ticket di supporto, in un file di configurazion. Dover cercare un identificatore prima sarebbe un passo per nulla.

È un let, non un assegno

status e dnssono i ultimi atintiti. Per relere la zona e avere statusmovimentare, chiama check().

i records e la posta venèn con il

const domain = await api.domains.get("example.com");

await domain.records.list();
await domain.mail.status();
domain = api.domains.get("example.com")

domain.records.list()
domain.mail.status()

Erros

Un nome non attachò a questo conto risponde 404 — incluso un attachò a qualcun altro, che è la stessa risposta intenzional.