DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

Example 11-6 Deleting Domains Using the
Enforcement API


Click here to view code image


""" Delete domain using the Enforcement API """
import requests
url = "https://s-
platform.api.opendns.com/1.0/domains/looksfake.com"

querystring = {"customerKey":"XXXXXXX-YYYY-
ZZZZ-YYYY-XXXXXXXXXXXX"}
response = requests.request("DELETE", url,
headers=headers, params=querystring)
print(response.text)

The Investigate API


The Cisco Umbrella Investigate API is designed to give
technology partners the ability to query security events
from their platform/service/appliance within a mutual
customer’s environment to the Umbrella cloud for
investigation purposes. The Umbrella Investigate API
empowers users to query the Umbrella database to deem
a domain safe or not safe. It goes beyond traditional DNS
results to show security events and correlations.


The following are some of the tasks that can be done via
the Umbrella Investigate REST API:


Check the security status of a domain, IP address, or subset of domains
that appears in the logs from your firewall, UTM, or other Internet
egress points.
Determine whether other related cooccurring domains were accessed at
the same time as the domain or IP address you’re looking up.
Find a historical record for this domain or IP address in the DNS
database to see what has changed.
Free download pdf