Retrieving one or all existing NSAP 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 1706 for more information about NSAP records.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/NSAPRecord/ GET — Retrieve one or all existing NSAP Records on the zone/node indicated.
HTTP Action — GET
URIs:
Get one NSAP Record — https://api.dynect.net/REST/NSAPRecord/<zone>/<fqdn>/<record_id>/
Get all NSAP Records — https://api.dynect.net/REST/NSAPRecord/<zone>/<fqdn>/ |
Arguments:
No Arguments. |
Response:
Get one NSAP record — Click for More Info
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record(s) to replace.
- string
nsap — Hex-encoded NSAP identifier.
- string
record_type — The RRType of the record.
- string
ttl — TTL for the record.
- string
zone — Name of the zone.
Get all NSAP records — array — Individual NSAP records. |
SOAP Syntax
Click to view all SOAP Commands |
GETOneNSAPRecord — Retrieve one existing NSAP Record on the zone/node indicated.
GETNSAPRecords — Retrieve all existing NSAP Records on the zone/node indicated. |
Arguments:
GetOneNSAPRecord — Click for More Info
- string
fqdn — Required. Name of node where the record exists.
- string
record_id — The numeric ID of the record to find.
- hash
rdata — RData defining the record(s) to replace.
- string
nsap — Required. Hex-encoded NSAP identifier.
- string
token — Required. The session identifier.
- string
zone — Required. Name of zone where the record exists.
GetNSAPRecords — Click for More Info
string fqdn — Required. Name of node where the record exists.
string token — Required. The session identifier.
string zone — Required. Name of zone where the record exists.
|
Response:
GetOneNSAPRecord — Click for More Info
- hash
data
- string
fqdn — Fully qualified domain name of a node in the zone.
- hash
rdata — RData defining the record.
- string
nsap — Hex-encoded NSAP identifier.
- 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.
GetNSAPRecords — 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
nsap — Hex-encoded NSAP identifier.
- 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 (GetOneNSAPRecord) — Click for More Info
{
'fqdn' => 'www.example.com',
'rdata' => {
'nsap' => '0x47.0005.80.005a00.0000.0001.e133.ffffff000164.00',
},
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
or
{
'fqdn' => 'www.example.com',
'record_id' => '32',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
Example Request (GetNSAPRecords) — Click for More Info
{
'fqdn' => 'www.example.com',
'token' => 'asdlkfjasl23j4879afa',
'zone' => 'example.com',
}
|
DNS API Knowledge Base