The Management API can use the ISP and MSSP
endpoints passing the Base64-encoded authorization in
the header (see Example 11-2).
Example 11-2 Python Code to Get Customer Details
Using the Management API
Click here to view code image
""" Get Customer details given a customerID """
import requests
url =
"https://management.api.umbrella.com/v1/serviceproviders/serviceProviderId/
customers/customerId"
headers = {
'accept': "application/json",
'authorization': "Basic
ZGV2YXNjOnN0cm9uZ3Bhc3N3b3Jk"
}
response = requests.request("GET", url,
headers=headers)
print(response.text
)
The management API includes the following:
ISP and MSSP endpoints: The API returns the service provider IDs
and customer IDs. These endpoints are for Internet service providers
(ISPs), managed service providers (MSPs) using the Master Service
license, managed security service providers (MSSPs), and partner
console users. To perform these queries, you must have your service
provider ID (SPId) from your console’s URL.
MSP and multiple-organization endpoints: The API creates new
MSP customers, returns MSP customer records, and updates and
deletes MSP customers. This endpoint is for MSP and multiple-
organization consoles, not for MSPs using MSLA.
Networks: The API returns network records and deletes networks.
Note that parent organizations do not have networks. To create and
manage networks on behalf of child organizations, use the
organizations/customerID/networks endpoints.
Roaming computers: The API returns roaming computer records
and updates or deletes roaming computers.
Internal networks: The API creates, updates, and deletes internal
networks and returns internal network records.
Internal domains: The API creates, updates, and deletes internal
domains and returns internal domain records.