This API is used to create a new NAPTR (Naming Authority Pointer) DNS record within a specified zone in DDI Central. NAPTR records are used in advanced service discovery protocols, including ENUM for VoIP and SIP, by allowing mapping of regular expressions to services such as voice, email, or messaging. This API enables adding flexible and prioritized routing logic to DNS zones.
Method: POST
https://{appconsole_IP}:{9443}/api/dns/zone/{zone_pk}/NAPTR/
The following headers must be included in the API request for successful authentication and data submission:
Authorization: DDI Central's OAuth implementation uses the Bearer authentication scheme. Hence, while making API calls, access_token obtained via the OAuth 2.0 Client Credentials Grant must be included in the Authorization header of API requests. This token verifies the client’s identity and ensures appropriate permissions for accessing resources.
The Authorization Header follows the format below:
headers = { "Authorization": "Bearer {bearer_tk}" }
Content-Type: Required in the header to indicate the media type of the resource being sent. It helps the server at the receiving end understand how to process the transmitted request body.
The Content-Type Header follows the format below:
headers ={ "Content-Type": "application/json" }
"na94.green.com.").86400)."green.com")."local-cluster"), used to scope the record creation to the correct DDI site."U" or "S")"E2U+h323")
* - Mandatory parameter.
Copied
{
"domain_name": "na94.green.com.",
"domain_ttl": 86400,
"zone_name": "green.com.",
"cluster_name": "local-cluster",
"records": [
{
"order": "13",
"preference": "10",
"flag": "U",
"service": "E2U+h323",
"regexp": "!^.*$!sip:customer-service@green.com!",
"replacement": "green.com."
},
{
"order": "14",
"preference": "11",
"flag": "S",
"service": "E2U+email",
"regexp": "!^.*$!sip:consumer-service@green.com!",
"replacement": "green.com."
}
]
}
Copied
{
"naptr_domain_id": 112,
"zone_id": 12145,
"domain_name": "na94.green.com.",
"domain_ttl": 86400,
"zone_name": "green.com.",
"cluster_name": "chennai2",
"records": [
{
"order": 13,
"preference": 10,
"flag": "U",
"service": "E2U+h323",
"regexp": "!^.*$!sip:customer-service@green.com!",
"replacement": "green.com."
},
{
"order": 14,
"preference": 11,
"flag": "S",
"service": "E2U+email",
"regexp": "!^.*$!sip:consumer-service@green.com!",
"replacement": "green.com."
}
]
}