create_cloudflare_dns_record
Create a DNS record in one of the organisation's Cloudflare domains. The record is written into the customer's own Cloudflare account and takes effect for real traffic, so confirm the domain and the content with the user before calling. 'name' may be a bare label (qualified against the domain), a fully-qualified name inside the domain, or '@' for the domain apex; a name outside the domain is refused. Records Ankra creates are stamped with a 'Managed by Ankra' comment. Use list_cloudflare_dns_records first to check the name is not already taken - Cloudflare refuses an exact duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Record TTL in seconds (60-86400), or 1 for Cloudflare's automatic TTL. Omit for automatic. A proxied record's TTL is managed by Cloudflare and must be left automatic. | |
| name | Yes | Record name: a bare label such as 'grafana', a fully-qualified name inside the domain, or '@' for the apex. | |
| comment | No | Optional comment stored on the record. Defaults to 'Managed by Ankra'. | |
| content | Yes | Record value: an IPv4 address for A, an IPv6 address for AAAA, a target hostname for CNAME, the text for TXT, the mail host for MX. | |
| proxied | No | Whether Cloudflare's proxy (the orange cloud) fronts the record. Only A, AAAA and CNAME records can be proxied. Proxying hides the origin address and terminates TLS at Cloudflare; leave false to resolve straight to the origin. | |
| priority | No | Priority (0-65535). Required for MX records; rejected for every other supported type. | |
| domain_id | Yes | Cloudflare zone id of the domain. Discover ids with list_cloudflare_domains. | |
| record_type | Yes | Record type. | |
| credential_name | No | Which connected Cloudflare credential to use. Omit unless the organisation has several; with one connected credential Ankra resolves it automatically. |