Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. Zone tasks

Zone query list

API reference (XML/JSON) · Updated 2023-09-19

Function

The ZoneQueryList task inquires the number of zone queries.

You can find more information about list queries here.

Description


Route: /zone/zoneQuery/_search

{
	"filters": [
		{
			"link": "OR",
			"filters": [
				{
					"key": "name",
					"operator": "LIKE",
					"value": "000%"
				},
				{
					"key": "name",
					"operator": "LIKE",
					"value": "example.com"
				}
			]
		}
	],
	"view": {
		"children": true,
		"from": "2015-04-01",
		"limit": 1,
		"offset": 0,
		"to": "2015-05-31"
	}
}
{
  "status" : {
    "code" : "S0265",
    "text" : "S0265",
    "type" : "SUCCESS"
  },
  "object" : {
    "type" : "ZoneQuery",
    "summary" : 4
  },
  "data" : [ {
    "created" : "2015-05-18T10:03:53.000+0200",
    "updated" : "2015-05-19T12:41:02.000+0200",
    "date" : "2015-05-16T00:00:00.000+0200",
    "count" : 400,
    "unit" : "DAY",
    "zone" : {
      "origin" : "example.com",
      "owner" : {
        "context" : 4,
        "user" : "customer"
      },
      "virtualNameServer" : "ns1.example.com"
    }
  } ]
}