Account Access token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 05:28 AM
curl --request GET https://accounts.cloud.databricks.com/api/2.0/accounts/{account_id}/usage
I use Permanent Access Token to authenticate workspace APIs but it's not working for workspace APIs which is not
In documentation, username and password was mentioned but I believe the username, password method to authenticate is deprecated now.
How to generate account access token, which I can pass in header as Authorization key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 06:15 AM
Hi @shubhdhanuka ,
To get access to account API you cannot use personal access token. Instead, you must use the Microsoft Entra ID tokens of Azure Databricks account admins. Azure Databricks account admins can be users or service principals.
Below you can find all available authentication types that you can use:
Authentication for Azure Databricks automation - overview - Azure Databricks | Microsoft Learn
You should pick one that suits your need and follow guideline