title: How do i authenticate to and get catalog from Azure Data Catalog using Rest API in Python
body: <p>I would like to get the name of the catalog from Azure Data Catalog using API. When I tried using the following command to get catalog from Azure Data Catalog</p>
  
  <pre><code>requests.get("https://management.azure.com/subscriptions/{id}/resourceGroups/{group_name}/providers/Microsoft.DataCatalog/catalogs/{catalogname}")
  </code></pre>
  
  <p>as mentioned in the link <a href="https://docs.microsoft.com/en-us/rest/api/datacatalog/data-catalog-data-catalog" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/datacatalog/data-catalog-data-catalog</a></p>
  
  <p>It throws the following error</p>
  
  <p>Response [400]</p>
  
  <p>Looks like I have to authenticate first. How do I authenticate prior to getting catalog?</p>