API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · dns_templates

DNS Template Schema

ID du schéma
dns_template
Collection
dns_templates
Autorisations
  • Liredns_template_view
  • Créerdns_template_create
  • Modifierdns_template_edit
  • Supprimerdns_template_delete

Champs

DNS Template Schema

dns_templates4 autorisations

Schema for DNS record templates (e.g. Microsoft 365, Google Workspace)

namestringobligatoire

Template name (e.g. "Microsoft 365")

1–200 caractères
descriptionstringobligatoire

Detailed description of what this template configures

1–2000 caractères
providerstringobligatoire

Service provider this template is for

microsoft365google_workspacezohoprotonmailmailcowcustom
categorystringobligatoire

Template category

emailhostingsecuritycustom
isSystembooleanobligatoire

Whether this is a system-provided template (read-only for tenants)

recordsobject[]obligatoire

DNS records that will be created when applying this template

typestringobligatoire

DNS record type (A, AAAA, CNAME, MX, TXT, etc.)

namestringobligatoire

Record name with optional placeholders (e.g. {{domain}})

max. 253 caractères
contentstringobligatoire

Record content with optional placeholders

max. 4096 caractères
ttlintegerobligatoire

Time to live in seconds

60 – 86400
priorityintegerfacultatif

Priority for MX and SRV records

0 – 65535nullable
descriptionstringobligatoire

Description of what this record does

max. 500 caractères
variablesobject[]obligatoire

Variables that the user must provide when applying this template

keystringobligatoire

Variable key used in record placeholders (e.g. "verify_token")

1–50 caractères
labelstringobligatoire

Display label for the variable input

1–200 caractères
requiredbooleanobligatoire

Whether this variable must be provided

helpTextstringfacultatif

Help text explaining where to find this value

max. 500 caractèresnullable
placeholderstringfacultatif

Example value shown as placeholder

max. 200 caractèresnullable
validationstringfacultatif

Regex pattern for input validation

max. 200 caractèresnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/dns_templates — Liste, paginée et filtrable
  • GET /api/v1/dns_templates/<id> — Une entité
  • POST /api/v1/dns_templates — Créer
  • PATCH /api/v1/dns_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/dns_templates/<id> — Suppression logique
  • GET /api/v1/dns_templates/<id>/timeline — Audit et activités

Recherche