Operazioni sui domini

4 operazioni di nome domain.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.

Aggiornato il
OperationWhat it doesPermissionConfirmation
domain.addConnect a hostname to the site.site.adminnone
domain.primaryMake an active domain the site's primary address, the one its other addresses redirect to; a domain that is not active yet is refused (409).site.adminnone
domain.verifyCheck a connected domain again: its DNS record, and the edge provider's hostname and certificate (provisioned at the first check).site.adminnone
domain.deleteDisconnect a domain from the site and release it at the edge provider; the platform address cannot be removed.site.admindestructive

domain.add

Connect a hostname to the site. The platform's base domain or one plain label under it goes live at once; any other hostname waits for its DNS record (ownershipVerification, dnsTarget) and the edge provider's certificate, checked with domain.verify. The first domain that goes live becomes primary while the platform address still is. A refused hostname is domain_refused with its reason (invalid, too_deep, platform_address, provider_unavailable; taken is 409). Site ownership is checked.

permission: site.adminwrites: siteclass: externalundo: explicit recovery

Esempio di input

{
  "hostname": "www.example.com"
}

Input

FieldTypeRequiredNotes
hostnamestringyesAt least 1 character. At most 255 characters.

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

Un dry run rifiuta un’operazione esterna, quindi non ha una riga di prova: eseguila da sola in un batch.

domain.primary

Make an active domain the site's primary address, the one its other addresses redirect to; a domain that is not active yet is refused (409). Site ownership is checked.

permission: site.adminwrites: siteclass: transactionundo: yes

Esempio di input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

Provala

yarn splash domain.primary '{"domainId":"9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"}' --dry-run

domain.verify

Check a connected domain again: its DNS record, and the edge provider's hostname and certificate (provisioned at the first check). The domain is active once all three are; the answer gives its status, its DNS and SSL states and the last error. Site ownership is checked.

permission: site.adminwrites: siteclass: externalundo: explicit recovery

Esempio di input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
domainobjectyes
domain.idstringyes
domain.siteIdstringyes
domain.hostnamestringyes
domain.kindstringyesOne of "platform", "custom".
domain.isPrimarybooleanyes
domain.redirectToPrimarybooleanyes
domain.statusstringyesOne of "pending", "active", "error".
domain.dnsStatusstringyes
domain.providerstring | nullyes
domain.providerIdstring | nullyes
domain.providerStatusstring | nullyes
domain.sslStatusstring | nullyes
domain.dnsTargetstring | nullyes
domain.ownershipVerificationobject | nullyes
domain.sslValidationRecordsarray of object | nullyes
domain.lastErrorstring | nullyes
domain.lastCheckedAtstring | nullyes
domain.verifiedAtstring | nullyes
domain.createdAtstringyes
domain.updatedAtstringyes

Un dry run rifiuta un’operazione esterna, quindi non ha una riga di prova: eseguila da sola in un batch.

domain.delete

Disconnect a domain from the site and release it at the edge provider; the platform address cannot be removed. When it was the primary, the platform address takes over. Site ownership is checked.

permission: site.adminwrites: siteclass: externalconfirm: destructiveundo: explicit recovery

Esempio di input

{
  "domainId": "9c0d1e2f-3a4b-4c5d-9e6f-7a8b9c0d1e2f"
}

Input

FieldTypeRequiredNotes
domainIdstring (uuid)yes

Output

FieldTypeRequiredNotes
successtrueyes

Un dry run rifiuta un’operazione esterna, quindi non ha una riga di prova: eseguila da sola in un batch.

Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 3f644130aa6a2d27).

Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.

Guida di Libretto

Colophon. Questa guida è un sito Libretto: 70 pagine in due lingue, 21 pagine della guida importate da Markdown e 42 pagine di riferimento generate dal registro delle operazioni. Composta in Softcore, il codice in IBM Plex Mono. La sua struttura:

/it/ Guida di Libretto /it/start Per iniziare /it/start/request-access Richiedere l'accesso /it/start/workspace Il tuo spazio di lavoro /it/start/first-site Il tuo primo sito /it/start/invite-a-client Invitare un cliente /it/start/connect-claude Connettere Claude a Libretto /it/build Costruire /it/build/first-page Costruire una pagina /it/build/layers-and-canvas Livelli e canvas /it/build/site-components Componenti del sito /it/design-system Design system /it/design-system/tokens Colori, spazi e temi /it/design-system/components Componenti e varianti /it/design-system/fonts Tipografia e font /it/motion Movimento /it/motion/scenes Scene e ricette /it/motion/image-sequences Sequenze di immagini /it/motion/reduced-motion Movimento ridotto /it/publish Pubblicazione /it/publish/languages Le lingue del sito /it/publish/versions Pubblicazione e versioni /it/publish/members-and-forms Iscritti e moduli /it/publish/domains Domini /it/publish/redirects Reindirizzamenti /it/handover Consegnare un sito al cliente /it/glossary Glossario /it/agents Agenti e API /it/agents/mcp Server MCP /it/agents/cli CLI /it/agents/batches Batch /it/agents/errors Errori e segnalazioni /it/agents/operations Operazioni /it/search Cerca