How to get Workspace name with workspaceId?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 02:44 AM
I have an AWS Managed Databricks instance. I am trying to get a workspace name with workspace ID.
Thank you very much for your time and assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 10:27 PM
Hey @Retired_mod, thank you for your guidance. I successfully retrieved the workspace name.
Could you advise on how to authenticate the API programmatically? I attempted using a personal token and basic authentication, but neither method worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 07:21 AM
where is the guidance. I also need the workspace name in my notebook.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 08:58 AM
Hi All,
There's a few ways to find your workspace name:
- Quickly: it's the name in the URL before .cloud, so in the URL https://devrel.cloud.databricks.com/?o=556812371150522 the name is 'devrel'
- Whilst in the notebook: spark.conf.get("spark.databricks.workspaceUrl")
- Programatically: the rest API
Hope this helps! Holly