Deleting one or all existing IPSECKEY 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 4025 for more information about IPSECKEY records.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/IPSECKEYRecord/ DELETE — Deletes one or all existing IPSECKEY Records on the zone/node indicated.
HTTP Action — DELETE
URIs:
Delete one IPSECKEY record — https://api.dynect.net/REST/IPSECKEYRecord/<zone>/<fqdn>/<record_id>/
Delete IPSECKEY records — https://api.dynect.net/REST/IPSECKEYRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Not Applicable. |
SOAP Syntax
Click to view all SOAP Commands |
DeleteOneIPSECKEYRecord — Deletes a single existing IPSECKEY Record on the zone/node indicated.
DeleteIPSECKEYRecords — Deletes all the existing IPSECKEY Records on the zone/node indicated. |
Arguments:
DeleteOneIPSECKEYRecord — Click for More Info
- string
fqdn — Required. Name of node where the records exist.
- string
record_id — ID of the record to delete.
- hash
rdata — RData defining the record.
- string
precedence — Required. Indicates priority among multiple IPSECKEYS. Lower numbers are higher priority.
- string
gatetype — Required. Gateway type.
0 = no gateway used
1 = IPv4 address
2 = IPv6 address
3 = gateway hostname (mygateway.example.com).
- string
algorithm — Required. Public key’s cryptographic algorithm and format.
0 = no key present
1 = DSA key present
2 = RSA key present
- string
gateway — Required. Gateway used to create IPsec tunnel. Based on Gateway type.
gateway type = 0 then gateway must contain a single period (.).
gateway type = 1 then type in IPv4 address
gateway type = 2 then type in IPv6 address
gateway type = 3 then type in the hostname with trailing period (mygateway.example.com.)
- string
public_key — Required. Base64 encoding of the public key. Whitespace is allowed.
- string
token — Required. The session identifier.
- string
zone — Required. Name of zone where the records exist.
DeleteIPSECKEYRecords — Click for More Info
string fqdn — Required. Name of node where the records exist.
string token — Required. The session identifier.
string zone — Required. Name of zone where the records exist.
|
Response:
Not Applicable. |
Example Request (DeleteOneIPSECKEYRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request(DeleteIPSECKEYRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base