Understanding How The API Works »
Updating a Ruleset 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 | Create Traffic Director (DSF) Ruleset (API) |
Get Traffic Director (DSF) Ruleset(s) (API) | |
Delete Traffic Director (DSF) Ruleset (API) |
REST Syntax
Click to view all REST Resources |
/REST/DSFRuleset/ PUT — Update an existing Ruleset.
HTTP Action — PUT URIs — https://api.dynect.net/REST/DSFRuleset/<service_id>/<dsf_ruleset_id>/ |
Arguments — Click for More Info
Click for Ruleset fields. – OR – – OR – Click for Response Pool fields. |
Response — Click for More Info
Click for Ruleset fields. Click for Response Pool Records. Click for Record Set fields. Click for Individual rdata Records |
SOAP Syntax
Click to view all SOAP Commands |
UpdateDSFRuleset — Updates an existing Ruleset. |
Arguments — Click for More Info
Click for Ruleset fields. – OR – – OR – Click for Response Pool fields. |
Response — Click for More Info
Click for Ruleset fields. Click for Response Pool fields. Click for Record Set fields. Click for Individual rdata Records |
Example Request — Click for More Info
{ 'service_id' => 'fv298...', # ID shortened... 'service_id' => 'ab313...', # ID shortened... 'label' => 'Example Ruleset', 'criteria_type' => 'geoip', 'criteria' => { 'geoip' => { 'country' => ['US'], } }, 'ordering' => '2', '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', }],} ], }] 'token' => 'asdlj34ot879834cdzjklfK' } |