Retrieving one or all HTTP Redirect services 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.

REST Syntax

Click to view all REST Resources

/REST/HTTPRedirect/ GET — Retrieves one or all HTTP Redirect services on the zone/node indicated.

HTTP Action — GET

URIs:

Get one HTTP Redirect — https://api.dynect.net/REST/HTTPRedirect/<zone>/<fqdn>/

Get all HTTP Redirect — https://api.dynect.net/REST/HTTPRedirect/<zone>/

Arguments:

Get one HTTP Redirect — No Arguments.

Get all HTTP Redirect services:

  • string detail — A boolean indicating whether or not to return the full details or a list of service resources.
    Valid values:
    Y – The details of each service are specified.
    N – The list of service resources is returned. Default.
Response:

Get one HTTP Redirect — Click for More Info

Get all HTTP Redirect services — array — Individual HTTP Redirect service resources.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands

GetOneHTTPRedirect — Retrieves one HTTP Redirect service from the zone/node indicated.

GetHTTPRedirects — Retrieves all HTTP Redirect services from the zone indicated.

Arguments:

GetOneHTTPRedirect —

  • string fqdnRequired. Name of node where service will exist.
  • string tokenRequired. The session identifier.
  • string zoneRequired. Name of zone where the service will exist.

GetHTTPRedirects —

  • string tokenRequired. The session identifier.
  • string zoneRequired. Name of zone where the service will exist.
Response:

GetOneHTTPRedirect — Click for More Info

GetHTTPRedirects — Click for More Info

Example Request (GetOneHTTPRedirect) — Click for More Info

Example Request (GetHTTPRedirects) — Click for More Info