Skip to content
Proud to collaborate with Microsoft for Startups

netlify.dns.list_records ​

List DNS records in a Netlify DNS zone

List all DNS records in a Netlify DNS zone.

Inputs:

  • zone_id: Netlify DNS zone ID (required).

Outputs (terminal state_data):

  • records: list of
  • total: int

Plugin required: context.get_plugin("netlify") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-netlify
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
zone_idstringYes—Netlify DNS zone ID

Output Schema ​

FieldTypeRequiredDefaultDescription
zone_idstringNo——
recordslistNo——
totalintegerNo——
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": "netlify.dns.list_records",
  "initial_data": {
    "zone_id": "value"
  }
}