Body
application/json
Response
OutputRRSet
The response is of type object
.
curl --request PUT \
--url https://api.___serverhost___/dns/v2/zones/{zoneName}/{rrsetName}/{rrsetType} \
--header 'Content-Type: application/json' \
--data '{
"meta": {},
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
"1.1.1.1"
],
"enabled": true,
"meta": {
"asn": [
17544,
17812
],
"continents": [
"europe",
"asia"
],
"countries": [
"us",
"gb",
"lu"
],
"ip": [
"192.168.15.150/25",
"2003:de:2016::/48"
],
"weight": 30
}
}
],
"ttl": 123
}'
{
"filter_set_id": 123,
"meta": {},
"name": "sub.example.com",
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
"1.1.1.1"
],
"enabled": true,
"id": 42,
"meta": {
"continents": [
"europe",
"asia"
],
"countries": [
"us",
"gb",
"lu"
],
"ip": [
"192.168.15.150/25",
"2003:de:2016::/48"
]
}
}
],
"ttl": 123,
"type": "A",
"updated_at": "2023-11-07T05:31:56Z",
"warning": "<string>",
"warnings": [
{
"key": "<string>",
"message": "<string>"
}
]
}
Create/update RRset.
curl --request PUT \
--url https://api.___serverhost___/dns/v2/zones/{zoneName}/{rrsetName}/{rrsetType} \
--header 'Content-Type: application/json' \
--data '{
"meta": {},
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
"1.1.1.1"
],
"enabled": true,
"meta": {
"asn": [
17544,
17812
],
"continents": [
"europe",
"asia"
],
"countries": [
"us",
"gb",
"lu"
],
"ip": [
"192.168.15.150/25",
"2003:de:2016::/48"
],
"weight": 30
}
}
],
"ttl": 123
}'
{
"filter_set_id": 123,
"meta": {},
"name": "sub.example.com",
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
"1.1.1.1"
],
"enabled": true,
"id": 42,
"meta": {
"continents": [
"europe",
"asia"
],
"countries": [
"us",
"gb",
"lu"
],
"ip": [
"192.168.15.150/25",
"2003:de:2016::/48"
]
}
}
],
"ttl": 123,
"type": "A",
"updated_at": "2023-11-07T05:31:56Z",
"warning": "<string>",
"warnings": [
{
"key": "<string>",
"message": "<string>"
}
]
}
OutputRRSet
The response is of type object
.
Was this page helpful?