GET - GET a specific SRV Record by ID

Purpose

This API retrieves a specific SRV (Service) record under a DNS zone. SRV records specify the location of services (e.g., SIP, LDAP, XMPP) by defining hostnames and ports where a service can be accessed. This API provides real-time visibility into SRV records, ensuring efficient service resolution, redundancy, and network reliability.

Request URL

Method: GET

https://{appconsole_IP}:{9443}/api/dhcp/zone/{zone_pk}/SRV/{pk}/

Request Headers

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" }

Path Parameters

  • zone_pk* long
    • The unique identifier of the DNS zone where the SRV record exists.
    • Example: 5867.
  • pk* long
    • The unique identifier of the specific SRV record to retrieve.
    • Example: 10805.

 

- Mandatory parameter.

 

Sample Response

Copied
{
   "srv_domain_id":177,
   "zone_id":5867,
   "domain_name":"srv7.hellotest109.com.",
   "domain_ttl":86400,
   "records":[
      {
         "port":584,
         "srv_weight":10,
         "priority":4,
         "target":"srv.the.fgsgs."
      },
      {
         "port":456,
         "srv_weight":10,
         "priority":2,
         "target":"xmtp.sd.ds.fg."
      }
   ]
}