Understanding How The API Works »
Activating or deactivating an existing Dynamic DNS service instance in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
REST Syntax
Click to view all REST Resources |
/REST/DDNS/ PUT — Activates or deactivates an existing Dynamic DNS service on the zone/node indicated.
HTTP Action — PUT
URIs — https://api.dynect.net/REST/DDNS/<zone>/<fqdn>/<record type>/
NOTE: <record_type> should be either A, for IPv4, or AAAA, for IPv6.
|
Arguments:
To Activate the DDNS Service: boolean activate — Required.
To Deactivate the DDNS Service: boolean deactivate — Required.
|
Response — Click for More Info
NOTE: Responses are the same for ActivateDDNS and DeactivateDDNS.
- string
abuse_count — Total number of abusive updates since last good update.
- string
active — A boolean indicating whether or not the service is active.
Y – The service is active.
N – The service is inactive.
- string
last_updated — Timestamp of the last good update by an update client.
- string
address — IPv4 or IPv6 Address.
- string
fqdn — Fully qualified domain name of a node in the zone.
- string
record_type — The RRType of the service.
Valid values:
A
AAAA
- string
zone — Name of the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
ActivateDDNS — Activate an existing Dynamic DNS service.
DeactivateDDNS — Deactivate an existing Dynamic DNS service.
|
Arguments — Click for More Info
NOTE: Arguments are the same for ActivateDDNS and DeactivateDDNS.
- string
fqdn — Required. Name of node where the service will exist.
- string
record_type — Required. The RRType of the service.
Valid values:
A
AAAA
- string
token — Required. The session identifier.
- string
zone — Required. Name of zone where the service will exist.
|
Response — Click for More Info
Responses are the same for ActivateDDNS and DeactivateDDNS.
- hash
data
- string
abuse_count — Total number of abusive updates since last good update.
- string
active — A boolean indicating whether or not the service is active.
Y – The service is active.
N – The service is inactive.
- string
last_updated — Timestamp of the last good update by an update client.
- string
address — IPv4 or IPv6 Address.
- string
fqdn — Fully qualified domain name of a node in the zone.
- string
record_type — The RRType of the service.
Valid values:
A
AAAA
- string
zone — Name of the zone.
|
Example Request — Click for More Info
{
'fqdn'=> 'www.example.com',
'record_type'=>'A',
'token'=> 'zaq12wsxcDe34rf89gt56nh',
'zone'=> 'example.com',
}
|
<< DNS API Knowledge Base