Updating a Record Set 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.
Understanding How The API Works »
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) Record Set (API) |
Get Traffic Director (DSF) Record Set(s) (API) | |
Delete Traffic Director (DSF) Record Set (API) |
REST Syntax
Click to view all REST Resources |
/REST/DSFRecordSet/ PUT — Updates the indicated Record Set. HTTP Action — PUT URIs — https://api.dynect.net/REST/DSFRecordSet/<service_id>/<dsf_record_set_id> |
Arguments — Click for More Info
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 |
UpdateDSFRecordSet — Updates a Record Set. |
Arguments — Click for More Info
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 |
Example Request — Click for More Info
{ 'service_id' => '0bi5k...', # ID shortened... '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', }], 'token' => 'asdlj34ot879834cdzjklfK' } |