Retrieving one or all existing SPF Records using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.

See RFC 4408 for more information about SPF Records.

REST Syntax

Click to view all REST Resources
/REST/SPFRecord/ GET — Retrieve one or all existing SPF Records on the zone/node indicated.

HTTP Action — GET

URIs:

Get one SPF record — https://api.dynect.net/REST/SPFRecord/<zone>/<fqdn>/<record_id>/

Get all SPF records — https://api.dynect.net/REST/SPFRecord/<zone>/<fqdn>/

Arguments: 

No Arguments.

Response: 

Get one SPF record — Click for More Info

Get all SPF records: array — Individual SPF Record resources.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands
GETOneSPFRecord — Retrieve one existing SPF Record on the zone/node indicated.

GETSPFRecords — Retrieve all existing SPF Records on the zone/node indicated.

Arguments: 

GetOneSPFRecord — Click for More Info

GetSPFRecords — Click for More Info

Response: 

GetOneSPFRecord — Click for More Info

GetSPFRecords — Click for More Info

Example Request (GetOneSPFRecord) — Click for More Info 

Example Request (GetSPFRecords) — Click for More Info