Retrieving one or all existing Service location (SRV) records in 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 2782 for more information about SRV records.

REST Syntax

Click to view all REST Resources
/REST/SRVRecord/ GET — Retrieves one or all existing SRV record on the zone/node indicated.

HTTP Action — GET

URIs:

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

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

Arguments:

No Arguments.

Response:

Get one SRV record — Click for More Info

Get all SRV records — array Individual SRV records.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands
GetOneSRVRecord — Retrieves an existing SRV records on the zone/node indicated.

GetSRVRecords — Retrieves all existing SRV records on the zone/node indicated.

Arguments:

GetOneSRVRecord — Click for More Info

GetSRVRecords:

  • string fqdnRequired. Name of the node where the record exists.
  • string tokenRequired. Session Identifier.
  • string zoneRequired. Name of the zone where the record exists.
Response:

GetOneSRVRecord — Click for More Info

GetSRVRecords — Click for More Info

Example Request (GetOneSRVRecord) — Click for More Info

Example Request (GetSRVRecords) — Click for More Info