API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · dns_templates

DNS Template Schema

ID del esquema
dns_template
Colección
dns_templates
Permisos
  • Leerdns_template_view
  • Creardns_template_create
  • Modificardns_template_edit
  • Eliminardns_template_delete

Campos

DNS Template Schema

dns_templates4 permisos

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

namestringobligatorio

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

1–200 caracteres
descriptionstringobligatorio

Detailed description of what this template configures

1–2000 caracteres
providerstringobligatorio

Service provider this template is for

microsoft365google_workspacezohoprotonmailmailcowcustom
categorystringobligatorio

Template category

emailhostingsecuritycustom
isSystembooleanobligatorio

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

recordsobject[]obligatorio

DNS records that will be created when applying this template

typestringobligatorio

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

namestringobligatorio

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

máx. 253 caracteres
contentstringobligatorio

Record content with optional placeholders

máx. 4096 caracteres
ttlintegerobligatorio

Time to live in seconds

60 – 86400
priorityintegeropcional

Priority for MX and SRV records

0 – 65535admite null
descriptionstringobligatorio

Description of what this record does

máx. 500 caracteres
variablesobject[]obligatorio

Variables that the user must provide when applying this template

keystringobligatorio

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

1–50 caracteres
labelstringobligatorio

Display label for the variable input

1–200 caracteres
requiredbooleanobligatorio

Whether this variable must be provided

helpTextstringopcional

Help text explaining where to find this value

máx. 500 caracteresadmite null
placeholderstringopcional

Example value shown as placeholder

máx. 200 caracteresadmite null
validationstringopcional

Regex pattern for input validation

máx. 200 caracteresadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/dns_templates — Lista, paginada y filtrable
  • GET /api/v1/dns_templates/<id> — Una entidad
  • POST /api/v1/dns_templates — Crear
  • PATCH /api/v1/dns_templates/<id> — Actualización parcial
  • DELETE /api/v1/dns_templates/<id> — Eliminación lógica
  • GET /api/v1/dns_templates/<id>/timeline — Auditoría y actividades

Búsqueda