Replacing all 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 the IPSECKEY record.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/IPSECKEYRecord/ PUT — Replaces all existing IPSECKEY Records on the zone/node indicated.
HTTP Action — PUT
URI — https://api.dynect.net/REST/IPSECKEYRecord/<zone>/<fqdn>/ |
Arguments — Click for More Info
- array
IPSECKEYRecords — Required. Individual records.
- hash
rdata — Required. RData defining the record to replace.
- 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
ttl — TTL for the record in seconds. Set to “0” to use zone default
|
Response — Click for More Info
- array — Individual records.
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record to replace.
- string
precedence — Indicates priority among multiple IPSECKEYS. Lower numbers are higher priority.
- string
gatetype — Gateway type.
0 = no gateway used
1 = IPv4 address
2 = IPv6 address
3 = gateway hostname (mygateway.example.com).
- string
algorithm — Public key’s cryptographic algorithm and format.
0 = no key present
1 = DSA key present
2 = RSA key present
- string
gateway — 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 — Base64 encoding of the public key. Whitespace is allowed.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
ReplaceIPSECKEYRecords — Replaces all existing IPSECKEY Records on the zone/node indicated. |
Arguments — Click for More Info
- array
IPSECKEYRecords — Required. Individual records.
- string
fqdn — Required. Name of node where the records exist.
- hash
rdata — Required. 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
ttl — TTL for the record in seconds. Set to “0” to use zone default.
- string
zone — Required. Name of zone where the records exist.
- string
token — Required. The session identifier.
|
Response — Click for More Info
- array
data
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record.
- string
precedence — Indicates priority among multiple IPSECKEYS. Lower numbers are higher priority.
- string
gatetype — Gateway type.
0 = no gateway used
1 = IPv4 address
2 = IPv6 address
3 = gateway hostname (mygateway.example.com).
- string
algorithm — Public key’s cryptographic algorithm and format.
0 = no key present
1 = DSA key present
2 = RSA key present
- string
gateway — 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 — Base64 encoding of the public key. Whitespace is allowed.
- string
record_id — A numeric identifier for the record.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
|
Example Request — Click for More Info
{
'IPSECKEYRecords' => [
{
'fqdn' => 'www.example.com',
'rdata' => {
'precedence' => 10,
'gatetype' => 3,
'algorithm' => 2
'gateway' => 'ipsec.example.com',
'public_key' => 'AQPWA4BRyjB3eqYNy/oykeGcSXjl+HQK9CciAxJfMcS1vEuwz9c+QG7sEJnQuH5B9i5o/ja+DVitY3jpXNa12mEn',
},
'ttl' => '3600',
'zone' => 'example.com',
},
{
'fqdn' => 'www.example.com',
'rdata' => {
'precedence' => 10,
'gatetype' => 3,
'algorithm' => 2
'gateway' => 'secure.example.com',
'public_key' => 'WA4BRyjB3eqYNy/oykeGcSXAQPjl+HQK9CciAxJfMcS1vEuwz9c+QG7sEJnQuH5B9i5o/ja+DVitY3jpXNa12mEn',
},
'ttl' => '3600',
'zone' => 'example.com',
}
],
'token' => 'asdlkfjasl23j4879afa',
}
|
DNS API Knowledge Base