Posts

Showing posts with the label Azure Purview Apache Atlas Rest API

Azure Purview - Search By Glossary Terms using Atlas API

Image
Azure Purview's support to Atlas API has led a way to create custom reporting applications based on our need. In this blog we'll see how we can leverage the API to create a report based on assigned glossary terms.    Prerequisite:   The service principal we'll use to read should have Purview Data Reader role. Find the Enterprise Application Id for Purview: Copy the application id. Generate an OAuth token:   url = "https://login.microsoftonline.com/{{Directory (Tenant) ID}}/oauth2/token" body={ "grant_type": "client_credentials", "client_id": "{{Service Client Id}}", "client_secret": "{{Service Client Credential}}", "resource": "{{Enterprise Application Id for Purview}}" } response = requests.post(url=url, data=body) token = response.json() expires_on = int (token['expires_on']) access_token = token['access_token'] Fetch all Glossary Terms: url = "ht...