Understanding How The API Works »
Creating 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.
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) 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/ POST — Creates a new Record Set within a Record Set Failover Chain or Response Pool.
HTTP Action — POST URIs — https://api.dynect.net/REST/DSFRecordSet/<service_id>/ |
Arguments — Click for More Info
|
Response — Click for More Info
Click for Record Set fields
|
SOAP Syntax
Click to view all SOAP Commands |
CreateDSFRecordSet — Creates a new Record Set within a Record Set Failover Chain or Response Pool. |
Arguments — Click for More Info
Click for Record Set fields
|
Response — Click for More Info
|
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' } |