Retrieving one or many zones 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.

REST Syntax

Click to view all REST Resources

Zone/ GET — Retrieves the list of available zones if no zone is specified in the URI. Specifying a zone in the URI means that information specific to that zone will be returned.

HTTP Action — GET

URIs:

Get one Zone — https://api.dynect.net/REST/Zone/<zone>/

Get all Zones — https://api.dynect.net/REST/Zone/

Arguments:

No Arguments.

Response:

Get one Zone — Click for More Info

Get all Zones — array of individual zone resources.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands

GetOneZone — Retrieve information on the specified zone.

GetZones — Retrieve a list of all available zones.

Arguments:

GetOneZone:

string tokenRequired. The session identifier.

string zoneRequired. Zone whose information will be retrieved.

GetZones:

string tokenRequired. The session identifier.

Response:

GetOneZone — Click for More Info

GetZones — Click for More Info

Example Request(GetOneZone) — Click for More Info

Example Request(GetZones) — Click for More Info