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 ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-bunnycdn |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
zone_id | integer | Yes | — | Bunny CDN DNS zone ID |
record_type | string | Yes | — | A |
record_name | string | Yes | — | Record name / subdomain |
record_value | string | Yes | — | Record value / target |
ttl | integer | No | — | TTL in seconds (default: 3600) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
zone_id | integer | No | — | — |
record_type | string | No | — | — |
record_name | string | No | — | — |
record_value | string | No | — | — |
ttl | integer | No | — | — |
record_id | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
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"
}
}