Updating a node to the Traffic Director service 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.
By updating a node to the Traffic Director service, the records will be served from the newly added node.
Understanding How The API Works »
REST Syntax
Click to view all REST Resources |
/REST/DSFNode/ PUT — Updates the list nodes attached to the Traffic Director service.
HTTP Action — PUT
URI — https://api.dynect.net/REST/DSFNode/<service_id>/
|
Arguments — Click for More Info
- array
node — The new list of nodes.
- string
zone — Required. Name of the zone.
- string
fqdn – Required. Fully qualified domain name of a node in the zone.
- string
publish — Indicates whether or not the change will be published immediately.
- string
notes — A custom note field. All content in the string is added to the Zone Notes for the zones attached to this service when the zone is published. Only used when publish = Y
- string
notes — A custom note field. All content in the string is added to the Zone Notes for the zones attached to this service when the zone is published. Only used when publish = Y
Valid values:
Y – Change will be published immediately.
N – Change will be published when the service is published next.
|
Response — Click for More Info
A list of the service’s current nodes.
- string
zone — Name of the zone
- string
fqdn — Fully qualified domain name of the node in the zone.
|
SOAP Syntax
Click to view all SOAP Commands |
UpdateDSFNode — Updates the list of nodes attached to the Traffic Director service.
|
Arguments — Click for More Info
- string
service_id — Required. Identifier for the Traffic Director (DSF) service.
- array
node — A new list of nodes.
- string
zone — Required. Name of the zone.
- string
fqdn — Required. Fully qualified domain name of a node in the zone.
- string
publish — Indicates whether or not the change will be published immediately.
- string
notes — A custom note field. All content in the string is added to the Zone Notes for the zones attached to this service when the zone is published. Only used when publish = Y
Valid values:
Y – Change will be published immediately.
N – Change will be published the next time the service is published.
- string
token — Required The session identifier.
|
Response — Click for More Info
- array
data – All the services current nodes.
- string
zone — Name of the zone.
- string
fqdn — Fully qualified domain name of a node in the zone.
|
Example Request — Click for More Info
{
'service_id' => 'Traffic_Director_1',
'node' => {
'zone' => zone.com,
'fqdn' => zone1.zone.com,
},
'publish'=> 'Y'
'token' => 'asdlj34ot879834cdzjklfK'
}
|
<< DNS API Knowledge Base