Understanding How The API Works »
Creating an instance of 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.
NOTE: Total number of records in a single Response Pool may not be more than 255.
WARNING: Dyn recommends setting an explicit fallback record entry in all Traffic Director services to ensure a query is always answered with a record. See TD Best Practices – Fallback Entry for more information on setting up a fall back entry.
REST Syntax | Associated API Topics |
SOAP Syntax | Update Traffic Director (DSF) Service (API) |
Get Traffic Director (DSF) Service (API) | |
Delete Traffic Director (DSF) Service (API) |
REST Syntax
Click to view all REST Resources |
/REST/DSF/ POST — Creates a new instance of Traffic Director.
HTTP Action — POST URIs — https://api.dynect.net/REST/DSF/ |
Arguments — Click for More Info
|
Response — Click for More Info
|
SOAP Syntax
Click to view all SOAP Commands |
CreateDSF — Creates a new Traffic Director service. |
Arguments — Click for More Info
|
Response — Click for More Info
|
Example Request — Click for More Info
{ 'label' => 'Example Traffic Director Service', 'attached_nodes' => [{ 'zone' => 'foorbar.com', 'node' => 'nh.foobar.com', }], 'ttl' => '3600', 'rulesets' => [{ 'label' => 'Example Ruleset', 'criteria_type' => 'geoip', 'criteria' => { 'geoip' => { 'country' => ['US'], } }, 'response_pools' => [{ 'label' => 'Response Pool Example', 'core_set_count' => '1', 'index' => '2', 'rs_chains' => [{ 'label' => 'Example Record Set Failover Chain', 'core' => 'true', 'record_sets' => [{ 'label' => 'US East - AAAA', 'rdata_class' => 'AAAA', 'ttl' => '3600', 'records' => [{ 'label' => 'USEast007', 'weight' => '5', 'automation' => 'auto', 'endpoints' => ['127.1.5.1','176.2.66.7'], 'endpoint_up_count' => '1', 'master_line' => '2001:0db8:85a3:0000:0000:8a2e:0370:7334', }], },{ 'dsf_record_set_id' => '0bi5k...', # ID shortened..., },{ 'failover' => 'failover.com', }],} ], }] }], 'publish' => 'true', 'token' => 'asdlj34ot879834cdzjklfK' } |