Replace record sets
PUT https://{{host}}/config-dns/v2/zones/:zone/recordsets
Replaces the entire list of record sets that currently exists with the list provided.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
accountSwitchKey | string | (Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys. |
Request Body
{"recordsets"=>[{"name"=>"paveldespot.com", "rdata"=>["a33-33.akam.net. hostmaster.akamai.com. 14643123442 43200 7200 604800 7200"], "ttl"=>86400, "type"=>"SOA"}, {"name"=>"paveldespot.com", "rdata"=>["example3.paveldespot.net.edgekey.net"], "ttl"=>20, "type"=>"AKAMAICDN"}, {"name"=>"paveldespot.com", "rdata"=>["ns222.name.cloud.ibm.com.", "ns111.name.cloud.ibm.com."], "ttl"=>172800, "type"=>"NS"}, {"name"=>"api1.paveldespot.com", "rdata"=>["api2.paveldespot.com."], "ttl"=>300, "type"=>"CNAME"}, {"name"=>"api2.paveldespot.com", "rdata"=>["api.paveldespot.com."], "ttl"=>300, "type"=>"CNAME"}, {"name"=>"api3.paveldespot.com", "rdata"=>["api.paveldespot.com."], "ttl"=>300, "type"=>"CNAME"}, {"name"=>"api4.paveldespot.com", "rdata"=>["api.paveldespot.com."], "ttl"=>300, "type"=>"CNAME"}, {"name"=>"roubrobin.paveldespot.com", "rdata"=>["192.0.2.54", "192.0.2.69", "192.0.2.213", "192.0.2.8"], "ttl"=>30, "type"=>"A"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |