Skip to content
Proud to collaborate with Microsoft for Startups

bunnycdn.dns.create_record ​

Create a DNS record in a Bunny CDN DNS zone

Create a DNS record in a Bunny CDN DNS zone.

Bunny CDN uses integer record types internally. This workflow accepts human- readable type strings (A, CNAME, TXT, etc.) and converts them automatically.

Inputs:

  • zone_id: Bunny CDN DNS zone ID (required, integer).
  • record_type: A | AAAA | CNAME | TXT | MX | SRV | CAA | PTR | NS (required).
  • record_name: Record name / subdomain (required).
  • record_value: Record value / target (required).
  • ttl: TTL in seconds (optional, default: 3600).

Outputs (terminal state_data):

  • record_id: int — new DNS record ID

Compensation: Use bunnycdn.dns.delete_record to remove. Plugin required: context.get_plugin("bunnycdn") must expose .api_key.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bunnycdn
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
zone_idintegerYes—Bunny CDN DNS zone ID
record_typestringYes—A
record_namestringYes—Record name / subdomain
record_valuestringYes—Record value / target
ttlintegerNo—TTL in seconds (default: 3600)

Output Schema ​

FieldTypeRequiredDefaultDescription
zone_idintegerNo——
record_typestringNo——
record_namestringNo——
record_valuestringNo——
ttlintegerNo——
record_idstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bunnycdn.dns.create_record",
  "initial_data": {
    "zone_id": 123,
    "record_type": "value",
    "record_name": "value",
    "record_value": "value"
  }
}