{"type":"api","title":"List blocked domains","meta":{"id":"/apps/pubhub/media/legacy-umbrella-api/bf58de618cbb72dda8f39b0414ce94c0a15cd467/86312610-23fe-3095-b9df-8fd01f7f8e0d","info":{"title":"Enforcement API","version":"v1.0.0","description":"Umbrella Enforcement API","contact":{"name":"Cloud Security Developer Community"}},"tags":[{"name":"Register domain information"},{"name":"List blocked domains"},{"name":"Delete a domain"}],"x-parser-conf":{"overview":{"markdownPath":"legacy/enforcement/enforcement-overview-api-reference.md"},"meta":{"useProxy":true}},"openapi":"3.0.0","servers":[{"url":"https://s-platform.api.opendns.com/{basePath}","variables":{"basePath":{"default":"1.0"}}}]},"spec":{"operationId":"getDomains","tags":["List blocked domains"],"summary":"List blocked domains","description":"Get the unordered list of blocked domains.\nAn initial query lists a page of the first 200 records from the collection.\nThe limit for any query for this endpoint is 200.","parameters":[{"name":"customerKey","in":"query","required":true,"description":"A customer key assigned to the integration.","schema":{"type":"string"},"$$ref":"#/components/parameters/customerKeyParam"},{"name":"limit","in":"query","required":false,"description":"The maximum number of records to return in the collection.","schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"description":"Used to paginate the additional domains in a list.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"page":{"type":"number","example":1},"limit":{"type":"number","example":2},"prev":{"type":"string","example":"false"},"next":{"type":"string","example":"https://s-platform.api.opendns.com/1.0/domains?customerKey=XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&page=2&limit=2"}}},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"lastSeenAt":{"type":"number"}}},"example":[{"id":2388,"name":"maliciousdomain.com","lastSeenAt":1596104261},{"id":7527,"name":"phishingsite.com","lastSeenAt":1596104261}]}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/400Error"},"401":{"description":"Unauthorized request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/401Error"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/403Error"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/404Error"},"500":{"description":"Server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/500Error"}},"__originalOperationId":"getDomains","method":"get","path":"/domains"}}