Understanding How The API Works »
Updating a Record Set Failover Chain 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
Click to view all REST Resources |
/REST/DSFRecordSetFailoverChain/ PUT — Updates a Record Set Failover Chain. HTTP Action — PUT URIs — https://api.dynect.net/REST/DSFRecordSetFailoverChain/<service_id>/<dsf_record_set_failover_chain_id>/ |
Arguments — Click for More Info
– OR – – OR – Click for Record Set fields – OR – Click for Individual rdata Records |
Response — Click for More Info
Click for Record Set fields Click for Individual rdata Records |
SOAP Syntax
Click to view all SOAP Commands |
UpdateDSFRecordSetFailoverChain — Updates a Record Set Failover Chain. |
Arguments — Click for More Info
– OR – – OR – Click for Record Set fields – OR – Click for Individual rdata Records |
Response — Click for More Info
data
Click for Record Set fields. Click for Individual rdata Records |
Example Request — Click for More Info
{ 'service_id' => 'fv298...', # ID shortened... 'dsf_response_pool_id' => '4ae3n...', # ID shortened... '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' } |