This blog post will show you how you can automate DNS policy management with Tags.To streamline DNS policy management for roaming computers, categorize them using tags.
By assigning a standard tag to a collection of roaming computers, they can be collectively addressed as a single entity during policy configuration.
This approach is recommended for deployments with many roaming computers, ranging from hundreds to thousands, as it significantly simplifies and speeds up policy creation.
Get the list of roaming computers and identify related 'originId' Add tag to devices.
The Umbrella API provides a standard REST interface and supports the OAuth 2.0 client credentials flow.
While creating the API Key, you can set the related Scope and Expire Date.
To start working with tagging, you need to create an API key with the Deployment read/write scope.
After generating the API Client and API secret, you can use it for related API calls.
First, we need to generate an OAuth 2.0 access token.
Import requests import os import json import base64 api client = os.
We will use the OAuth 2.0 access token retrieved in the previous step for the following API requests.
Each tag has its unique ID, so we should note these numbers for use in the following query.
Users can iterate through the JSON list items and filter them by osVersionName, name, deviceId, etc.
Record the related originId in the list that we will use to apply the related tag.
This Cyber News was published on feedpress.me. Publication date: Fri, 15 Mar 2024 22:13:06 +0000