Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 07:44 AM
There is REST API endpoint to manage tokens:
https://docs.databricks.com/dev-tools/api/latest/token-management.html
So using your code, you get the host and a short token. So all you need to do is construct Rest API, which will generate long-term connections.
Create a token on behalf of a service principal. >> https://docs.databricks.com/dev-tools/api/latest/token-management.html#operation/create-obo-token
My blog: https://databrickster.medium.com/