spad.ltip.gcp.create_dns_record ​
Create Google Cloud DNS A record for SPAD site subdomain
Create a Google Cloud DNS A record pointing to the GCP CDN forwarding rule IP.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | string | Yes | — | GCP CloudConnection.id |
dns_zone_ref | string | No | — | Cloud DNS managed-zone name; step skips when omitted |
gcp_forwarding_rule_ip | string | No | — | CDN forwarding-rule IP (set by create_cdn); step skips when omitted |
slug | string | No | — | Subdomain label for the A record |
site_uuid | string | No | — | SpadSite.id for context propagation |
organization_uuid | string | No | — | Organization that owns the site |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
gcp_dns_record_name | string | No | — | Fully-qualified record name written to Cloud DNS (created path only) |
gcp_dns_zone_ref | string | No | — | Cloud DNS managed-zone name the record lives in (created path only) |
gcp_dns_fqdn | string | No | — | Public FQDN (without trailing dot) (created path only) |
dns_skipped | boolean | No | — | True when the step skipped (no forwarding-rule IP or no zone) |
dns_skip_reason | string | No | — | Reason recorded on the skip path |
completed_at | string | No | — | ISO8601 timestamp when the step reached COMPLETED |
failed_at | string | No | — | ISO8601 timestamp when the step reached FAILED |
failure_reason | string | No | — | Reason recorded on the failure path |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
cloud_connection_uuid | string | No | — | GCP CloudConnection.id |
dns_zone_ref | string | No | — | Cloud DNS managed-zone name; step skips when omitted |
gcp_forwarding_rule_ip | string | No | — | CDN forwarding-rule IP (set by create_cdn); step skips when omitted |
slug | string | No | — | Subdomain label for the A record |
site_uuid | string | No | — | SpadSite.id for context propagation |
organization_uuid | string | No | — | Organization that owns the site |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | Step accepted |
run | No | No | — | complete | Creating DNS A record |
completed | No | Yes | Yes | — | DNS A record created |
failed | No | Yes | No | — | DNS A record creation failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | Start DNS record creation |
run | complete | completed | Mark step completed |
* (any state) | fail | failed | Mark step failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.ltip.gcp.create_dns_record",
"initial_data": {
"cloud_connection_uuid": "value"
}
}