IntegrationsCloudflareActions
Create Cloudflare DNS record
Create an A, AAAA, CNAME, TXT, or MX record in the bound zone. Requires DNS Write. Unsafe because Cloudflare does not document create replay idempotency.
dns_records.create · Cloudflare · v1
Details
Scopes
None
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false; oneOf branch 1: required type, name, content; type=A|AAAA|CNAME / branch 2: required type, name, content, proxied; type=A|AAAA|CNAME / branch 3: required type, name, content; type=TXT / branch 4: required type, name, content, priority; type=MX |
type | string | Yes | enum A | AAAA | CNAME | TXT | MX |
name | string | Yes | minLength 1; maxLength 253 |
content | string | Yes | minLength 1; maxLength 4096 |
ttl | integer | No | minimum 1; maximum 86400 |
proxied | boolean | No | — |
comment | string | No | maxLength 100 |
priority | integer | No | minimum 0; maximum 65535 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 32; maxLength 32; pattern ^[0-9a-fA-F]{32}$ |
name | string | Yes | minLength 1; maxLength 253 |
type | string | Yes | enum A | AAAA | CNAME | TXT | MX | NS | SRV | CAA | PTR | CERT | DNSKEY | DS | HTTPS | LOC | NAPTR | OPENPGPKEY | SMIMEA | SSHFP | SVCB | TLSA | URI |
content | string | Yes | minLength 1; maxLength 4096 |
ttl | integer | Yes | minimum 1; maximum 86400 |
proxiable | boolean | Yes | — |
proxied | boolean | Yes | — |
comment | string | No | maxLength 100 |
priority | integer | No | minimum 0; maximum 65535 |
tags | array<string> | No | maxItems 32 |
tags[] | string | Yes | minLength 1; maxLength 128 |
created_on | string | No | minLength 1; maxLength 64 |
modified_on | string | No | minLength 1; maxLength 64 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"A",
"AAAA",
"CNAME",
"TXT",
"MX"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"content": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"ttl": {
"type": "integer",
"minimum": 1,
"maximum": 86400
},
"proxied": {
"type": "boolean"
},
"comment": {
"type": "string",
"maxLength": 100
},
"priority": {
"type": "integer",
"minimum": 0,
"maximum": 65535
}
},
"required": [
"type",
"name",
"content"
],
"oneOf": [
{
"required": [
"type",
"name",
"content"
],
"properties": {
"type": {
"enum": [
"A",
"AAAA",
"CNAME"
]
}
}
},
{
"required": [
"type",
"name",
"content",
"proxied"
],
"properties": {
"type": {
"enum": [
"A",
"AAAA",
"CNAME"
]
}
}
},
{
"required": [
"type",
"name",
"content"
],
"properties": {
"type": {
"enum": [
"TXT"
]
}
}
},
{
"required": [
"type",
"name",
"content",
"priority"
],
"properties": {
"type": {
"enum": [
"MX"
]
}
}
}
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 32,
"maxLength": 32,
"pattern": "^[0-9a-fA-F]{32}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"type": {
"type": "string",
"enum": [
"A",
"AAAA",
"CNAME",
"TXT",
"MX",
"NS",
"SRV",
"CAA",
"PTR",
"CERT",
"DNSKEY",
"DS",
"HTTPS",
"LOC",
"NAPTR",
"OPENPGPKEY",
"SMIMEA",
"SSHFP",
"SVCB",
"TLSA",
"URI"
]
},
"content": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"ttl": {
"type": "integer",
"minimum": 1,
"maximum": 86400
},
"proxiable": {
"type": "boolean"
},
"proxied": {
"type": "boolean"
},
"comment": {
"type": "string",
"maxLength": 100
},
"priority": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"maxItems": 32
},
"created_on": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"modified_on": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"id",
"name",
"type",
"content",
"ttl",
"proxiable",
"proxied"
]
}