Update DNS Service Config (v2.0)
PUT/sdwan/v2.0/api/sites/:site_id/elements/:element_id/dnsservices/:dnsservice_role_id
Update a DNS service config.
Request
Path Parameters
Site ID of the target resource.
Element ID of the target device.
ID of the DNS service role.
- application/json
Body
Details of the DNS service config to be updated
- Array [
- ]
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
cache_config ElemCacheConfig
Lists details of the cache configuration.
The cache size.
The description of the DNS service configs. Max size = 1024.
List the disabled DNS service configs.
List the disabled DNS service configs reason.
dns_queries_metadata ElemDnsQueriesMetadata
Lists the DNS queries parameters that append the client metadata to the DNS query as it is sent to the upstream DNS server.
add_customer_premises_equipment ElemCustomerPremisesEquipment
The element ID, text, or element name is added based on the DNS query configuration.
The custom string added to the DNS query.
Possible values: [text
, element_id
, element_name
]
The customer premises equipment type.
add_subnets Subnet[]
The subnet ID is added for the DNS query.
The IPv4 address for the add subnet.
The prefix lenth of the IP4 address of the add subnet.
The IPv6 address for the add subnet.
The prefix lenth of the IPv6 address of the add subnet.
The DNS service profile ID.
dnsservicerole_bindings DnsServiceroleBindings[]
The bindings of the DNS srevice role.
The DNS service role ID.
interfaces Interface[]required
The DNS role binding interfaces.
The interface ID.
The DNS server interface IP.
domains_to_addresses DomainsToAddress[]
The unique domain to address mapping and the IP address.
The domain name.
The IPv4 address for the domain to address mapping.
The IPv6 address for the domain to address mapping.
domains_to_interfaces DomainsToInterface[]
The domain to interface mapping details.
The domains to interface domain name.
The interface ID.
The element ID.
The enabled DNS service configs.
The ID of the DNS service configs.
Lists the inactive DNS service configs.
Reason the DNS service config is inactive.
The max number of concurrent DNS queries.
Name of the DNS service config.
Region
ID of the site.
A information field that can be added to identify the DNS service roles. Maximum 10 unique tags of length 1024 each are allowed.
The upper case names.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
cache_config ElemCacheConfig
Lists details of the cache configuration.
The cache size.
The description of the DNS service configs. Max size = 1024.
List the disabled DNS service configs.
List the disabled DNS service configs reason.
dns_queries_metadata ElemDnsQueriesMetadata
Lists the DNS queries parameters that append the client metadata to the DNS query as it is sent to the upstream DNS server.
add_customer_premises_equipment ElemCustomerPremisesEquipment
The element ID, text, or element name is added based on the DNS query configuration.
The custom string added to the DNS query.
Possible values: [text
, element_id
, element_name
]
The customer premises equipment type.
add_subnets Subnet[]
The subnet ID is added for the DNS query.
The IPv4 address for the add subnet.
The prefix lenth of the IP4 address of the add subnet.
The IPv6 address for the add subnet.
The prefix lenth of the IPv6 address of the add subnet.
The DNS service profile ID.
dnsservicerole_bindings DnsServiceroleBindings[]
The bindings of the DNS srevice role.
The DNS service role ID.
interfaces Interface[]required
The DNS role binding interfaces.
The interface ID.
The DNS server interface IP.
domains_to_addresses DomainsToAddress[]
The unique domain to address mapping and the IP address.
The domain name.
The IPv4 address for the domain to address mapping.
The IPv6 address for the domain to address mapping.
domains_to_interfaces DomainsToInterface[]
The domain to interface mapping details.
The domains to interface domain name.
The interface ID.
The element ID.
The enabled DNS service configs.
The ID of the DNS service configs.
Lists the inactive DNS service configs.
Reason the DNS service config is inactive.
The max number of concurrent DNS queries.
Name of the DNS service config.
Region
ID of the site.
A information field that can be added to identify the DNS service roles. Maximum 10 unique tags of length 1024 each are allowed.
The upper case names.
{
"cache_config": {
"cache_size": 0
},
"disabled": true,
"disabled_reason": "string",
"dns_queries_metadata": {
"add_customer_premises_equipment": {
"identifier_text": "string",
"type": "text"
},
"add_subnets": [
{
"ipv4_address": "string",
"ipv4_prefix_length": 0,
"ipv6_address": "string",
"ipv6_prefix_length": 0
}
]
},
"dnsservice_profile_id": "string",
"dnsservicerole_bindings": [
{
"dnsservicerole_id": "string",
"interfaces": [
{
"interface_id": "string",
"interface_ip": "string"
}
]
}
],
"domains_to_addresses": [
{
"domain_names": [
"string"
],
"ipv4_address": "string",
"ipv6_address": "string"
}
],
"domains_to_interfaces": [
{
"domain_names": [
"string"
],
"interface_id": "string"
}
],
"element_id": "string",
"enabled": true,
"id": "string",
"inactive": true,
"inactive_reason": "string",
"max_concurrent_dns_queries": 0,
"name": "string",
"region": "string",
"site_id": "string",
"tags": [
"string"
],
"upperCaseName": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_REQUEST_DUPLICATE_KEY"
},
{
"code": "HUB_UNSUPPORTED"
},
{
"code": "ELEMENT_UNASSIGNED"
},
{
"code": "INVALID_PROFILE_ID"
},
{
"code": "INVALID_DNSROLE_ID"
},
{
"code": "INVALID_INTERFACE_CONFIG"
},
{
"code": "DTI_DOMAIN_CONFIG_INVALID_HOST"
},
{
"code": "DTA_DOMAIN_CONFIG_INVALID_HOST"
},
{
"code": "DNSSERVER_IP_CONFIG_INVALID_IP"
},
{
"code": "INVALID_CUSTOMER_PREMISES_EQUIPMENT_TYPE"
},
{
"code": "DNSQUERYMETADATA_CONFIG_INVALID_IP_ADDRESS"
},
{
"code": "DNSQUERYMETADATA_CONFIG_INVALID_IP_PREFIX_LENGTH_RANGE"
},
{
"code": "DNSQUERYMETADATA_CONFIG_INVALID_IPV6_ADDRESS"
},
{
"code": "DNSQUERYMETADATA_CONFIG_INVALID_IPV6_PREFIX_LENGTH_RANGE"
},
{
"code": "INVALID_DOMAINTOADDRESS_DOMAIN_NAMES_LIST_CONFIG"
},
{
"code": "DOMAINTOADDRESS_IP_CONFIG_MISSING"
}
]
}
}