Deleting one or all LOC Records 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.
See RFC 1876 for more information about LOC Records.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/LOCRecord/ DELETE — Delete one or all existing LOC Records on the zone/node indicated.
HTTP Action — DELETE
URIs:
Delete one LOC record — https://api.dynect.net/REST/LOCRecord/<zone>/<fqdn>/<record_id>/
Delete all LOC records — https://api.dynect.net/REST/LOCRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneLOCRecord — Deletes one existing LOC Record on the zone/node indicated.
DeleteLOCRecords — Deletes all existing LOC Record on the zone/node indicated. |
Arguments:
DeleteOneLOCRecord — Click for More Info
- string
fqdn — Required. Name of the node where the record resides.
- string
record_id — Identifying record number for the record to delete./li>
- hash
rdata — RData defining the record to delete.
- string
altitude — Required. Measured in meters above sea level.
- string
horiz_pre — Required. Defaults to 10,000 meters.
- string
latitude — Required. Measured in degrees, minutes, and seconds with N/S indicator for North and South. Example: 45 24 15 N, where 45 = degrees, 24 = minutes, 15 = seconds.
- string
longitude — Required. Measured in degrees, minutes, and seconds with E/W indicator for East and West. Example 89 23 18 W, where 89 = degrees, 23 = minutes, 18 = seconds.
- string
size — Required. Defaults to 1 meter.
- string
version — Required. Number of the representation. Must be zero (0).
- string
vert_pre — Required. Defaults to 10 meters.
- string
token — Required. The session identifier.
- string
zone — Required. Name of the zone where the record resides.
DeleteLOCRecords — Click for More Info
string fqdn — Required. Name of node where the records reside.
string token — Required. The session identifier.
string zone — Required. Name of zone where the records reside.
|
Response:
Not Applicable. |
Example Request (DeleteOneLOCRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request (DeleteLOCRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base