Deleting an existing HTTP Redirect service 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.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/HTTPRedirect/ DELETE — Deletes an existing HTTP Redirect service from the zone/node indicated.
HTTP Action — DELETE
URI — https://api.dynect.net/REST/HTTPRedirect/<zone>/<fqdn>/ |
Arguments:
- string
publish – Indicates whether or not to publish the zone changes immediately.
Valid values:
Y – Delete the service immediately. (Default)
N – Delete the service at the next zone publish.
|
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneHTTPRedirect — Deletes an existing HTTP Redirect service from the zone/node indicated. |
Arguments:
- string
fqdn — Required. Name of node where service exists.
- string
token — Required. The session identifier.
- string
zone — Required. Name of zone where the service exists.
- string
publish – Indicates whether or not to publish the zone changes immediately.
Valid values:
Y – Delete the service immediately. (Default)
N – Delete the service at the next zone publish.
|
Response:
Not Applicable. |
Example Request — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base