GET - Get all SRV records in a zone

Purpose

This API call retrieves all SRV (Service) records under a specific DNS zone. It provides detailed information about each SRV record, including domain name, TTL (Time-to-Live), and service-related parameters such as priority, weight, port, and target.

Request URL

Method: GET

https://{appconsole_IP}:{port_number}/api/dns/zone/{zone_pk}/SRV/?cluster_name={cluster_name}&zone_name={zone_name}
Example: https://10.16.5.16:9443/api/dns/zone/7555/SRV/?cluster_name=wincluster-zoho&zone_name=hellotest109.com

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 pk parameter represents the unique identifier (primary key) of a DNS zone hosted in one of the clusters configured in DDI Central. It ensures that the API fetches the exact zone details from DDI Central database without ambiguity.

Query parameters

  • cluster_name*  string

    •  Identifies the cluster associated with the targeted DNS zone (e.g., "wincluster-zoho").
  • zone_name*  string

    •  Specifies the DNS zone name for which SRV records are requested (e.g., "hellotest109.com.").

 

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

Show full

Show less