Deleting 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.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/SRVRecord/ DELETE — Deletes one or all existing SRV record on the zone/node indicated.
HTTP Action — DELETE
URIs:
Delete one SRV record — https://api.dynect.net/REST/SRVRecord/<zone>/<fqdn>/<record_id>/
Delete all SRV records — https://api.dynect.net/REST/SRVRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneSRVRecord — Deletes an existing SRV records on the zone/node indicated.
DeleteSRVRecords — Deletes all existing SRV records on the zone/node indicated. |
Arguments:
DeleteOneSRVRecord — Click for More Info
- string
fqdn — Required. Name of the node where the record exists.
- string
record_id — Required only if there is more than 1 record of this type on the node/zone.
- hash
rdata — RData defining the record.
- string
port — Required. Indicates the port where the service is running.
- string
priority — Required. Numeric value for priority usage. Lower value takes precedence over higher value where two records of the same type exist on the zone/node.
- string
target — Required. The domain name of a host where the service is running on the specified port .
- string
weight — Required. Secondary prioritizing of records to serve. Records of equal priority should be served based on their weight. Higher values are served more often.
- string
token — Required. Session Identifier.
- string
zone — Required. Name of the zone where the record exists.
DeleteSRVRecords:
- string
fqdn — Required. Name of the node where the record exists.
- string
token — Required. Session Identifier.
- string
zone — Required. Name of the zone where the record exists.
|
Response:
Not Applicable. |
Example Request (DeleteOneSRVRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request (DeleteSRVRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base