Search for a policy by policy ID.
GET https://api-<DNS.Edge.URL>/v5/api/policies/{policyId} Authorization: Bearer token Content Type: application/JSON
Successful response
200 OK Content-Type: application/JSON { "id": "id", "timestamp": "unix timestamp ms", "name": "name", "description": "description", "appliedTo": [{ "type": "siteName | siteGroupID | AllSites", "name": "value" }], "domain": [ { "type": "list", "listId": "dns-list-id" }], "action": { "type":"block | monitor | allow" }, "exceptionDomainLists":[{ "type": "list", "listId": "dns-list-id" }], "active": "true | false", "sourceIps": { "type": "INCLUDE | EXCLUDE", "ranges": [ "192.168.0.1", "1.2.3.4" ] }, "timeRanges":[{ "start": "01:00", "end": "20:00", "days": ["Monday", "Tuesday", "Wednesday"], }], "queryTypes": ["15", "A"] "redirectTarget": "valid FQDN domain", "threats": {[ "type": "DGA" }, { "type": "DNS_Tunneling" }], "matchAnswer": "true | false", "matchAuthority": "true | false", "matchResponseIpListIds": [ "IPList1" ], "exceptionResponseIpListIds": [ "IPList2" ] }
Possible error codes
- 401 Unauthorized - Missing or invalid token