Skip to content

Commit 9bdeda2

Browse files
authored
Merge pull request #6 from tfullert/main
Added support for zero query zone report API.
2 parents 9bcfedd + ce30dfb commit 9bdeda2

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

src/UDNS.postman_collection.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "1720c460-d593-4e35-9ad3-2a45b239d6b1",
3+
"_postman_id": "30a5157f-105d-4b73-ad5f-131a32cf5e47",
44
"name": "UDNS",
55
"description": "This collection contains requests for the UDNS API. The folders mostly represent the different base resources, i.e. \"zones\" which contains all the various zone operations and \"reports\" which has the reporting operations.\n\nAt the collection level, there is a pre-request script which handles your authentication and has some basic utility functions. The script will generate a bearer token and, when it expires, refresh it.\n\nThe utilities are an object defined globalls in the scope of the pre-request script, which makes it available to the individual requests. Simply call:\n\n``` javascript\nutils.functionName()\n\n ```\n\nThe username and password variables must be set in your environment for the collection pre-request to run.",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
@@ -999,6 +999,36 @@
999999
}
10001000
},
10011001
"response": []
1002+
},
1003+
{
1004+
"name": "Zero Query Report",
1005+
"request": {
1006+
"method": "POST",
1007+
"header": [],
1008+
"body": {
1009+
"mode": "raw",
1010+
"raw": "{\r\n \"zeroZoneQueryVolume\": {\r\n \"accountName\": \"{{subaccounts_accountName}}\",\r\n \"reportStartDate\": \"{{reports_startDate}}\",\r\n \"reportEndDate\": \"{{reports_endDate}}\",\r\n \"wrap\": true\r\n }\r\n}",
1011+
"options": {
1012+
"raw": {
1013+
"language": "json"
1014+
}
1015+
}
1016+
},
1017+
"url": {
1018+
"raw": "{{baseUrl}}/reports/dns_resolution/query_volume/zone/no_queries",
1019+
"host": [
1020+
"{{baseUrl}}"
1021+
],
1022+
"path": [
1023+
"reports",
1024+
"dns_resolution",
1025+
"query_volume",
1026+
"zone",
1027+
"no_queries"
1028+
]
1029+
}
1030+
},
1031+
"response": []
10021032
}
10031033
],
10041034
"description": "These are the APIs for reporting. In a fashion similar-to-but-different-than tasks, the reports will return an ID. However, the ID, in this instance, is in the JSON body of the response. You use the \"requests\" endpoint along with your ID to get the result.\n\nAfter you create a report, it's ID automatically gets saved to a collection variable which will then get passed to the requests endpoint. Note that generating a new report writes over this value."

src/UDNS.postman_environment.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "9f61514c-8715-43bf-a8ea-91992ae076ea",
2+
"id": "feaa187b-675b-4780-881b-fdf2da6c7249",
33
"name": "UDNS",
44
"values": [
55
{
@@ -148,6 +148,6 @@
148148
}
149149
],
150150
"_postman_variable_scope": "environment",
151-
"_postman_exported_at": "2025-02-27T16:48:21.196Z",
152-
"_postman_exported_using": "Postman/11.34.3"
151+
"_postman_exported_at": "2025-05-28T00:18:05.393Z",
152+
"_postman_exported_using": "Postman/11.41.4"
153153
}

0 commit comments

Comments
 (0)