Understanding How The API Works »
Creating a Geo Node (Classic) 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.
Please use the ISO-3166 two letter codes for assigning countries to groups.
REST Syntax
Click to view all REST Resources |
/REST/GeoNode/ POST — Create a Geo node (Classic) on an existing instance on the zone/node indicated.
HTTP Action — POST
URI — https://api.dynect.net/REST/GeoNode/<service_name>/ |
Arguments:
- string
fqdn — Required. Fully qualified domain name of a node in the zone.
- string
zone — Required. Name of the zone.
|
Response — Click for More Info
- string
name — Name of the Geo service.
- string
active — Y if the service is active. N if the service is inactive.
- array
groups — A list of Region Groups that are defined for the service.
- string
name — Name of the Region Group.
- array
countries — A list of ISO-3166 two letter codes to represent the names of countries and their subdivisions.
- array
rdata — The RData to be served for the Region Group.
- hash
weight — Weight for each record that is entered.
- hash
serve_count — Serve count for each record.
- array
nodes — A list of zone and FQDN pairs to identify nodes that are attached to the Geo service.
- string
fqdn — Fully qualified domain name of a node in the zone.
- string
zone — Name of the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
CreateGeoNode — Create a new node on an existing instance of the Geo service (Classic). |
Arguments :
- string
service_name — Required. Name of the service where the region group will be created.
- string
fqdn — Required. Fully qualified domain name of a node in the zone.
- string
zone — Required. Name of the zone.
- string
token — Required. The session identifier.
|
Response — Click for More Info
- hash
data
- string
name — Name of the Geo service.
- string
active — Indicates whether the service is active.
Valid values:
Y — The service is active.
N — The service is inactive.
- array
groups — A list of Region Groups that are defined for the service.
- string
name — Name of the Region Group.
- array
countries — A list of ISO-3166 two letter codes to represent the names of countries and their subdivisions.
- hash
rdata — The records to be served for the Region Group.
- array
nodes — A list of zone, FQDN pairs in a hash that are to be linked to the Geo service.
- string
fqdn — Fully qualified domain name of a node in the zone.
- string
zone — Name of the zone.
|
Example Request — Click for More Info
{
'name' => 'example Geo',
'zone' => 'example.com',
'fqdn' => 'admin.example.com',
'token' => 'asdlj34ot879834cdzjklfK',
}
|
<< DNS API Knowledge Base