Account level Rest API to list workspaces has suddenly stopped working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2025 11:03 AM
We use databricks python sdk in one of our Azure databricks workspace to list all the workspaces present in our tenant. The code was working fine since 6-8 months till yesterday and it has started failing suddenly with error :
Endpoint not found for /2.0/accounts/workspaces
Is this API deprecated ? If so, was this information made available anywhere on the official website ?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2025 09:52 PM
@GC_Seattle
Can you check if the authentication token is expired and do you have enough permission?
https://kb.databricks.com/en_US/dev-tools/python-sdk-endpoint-not-found-error-when-trying-to-use-acc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2025 10:23 PM
Yes, I did check those and token is all good.
I also noticed that databricks rest api documentation no longer shows list workspaces as an available API for Azure
whereas it shows up for AWS, link below:
https://docs.databricks.com/api/account/workspaces/list
Not found.
The service or operation you're looking for might be obsolete or have been renamed.
Make sure you're in the correct API reference and try to use search to find the page you're looking for.
We are using this API for production monitoring and would really appreciate any further help on this!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2025 12:41 PM
My bad, there was an issue with how the accountClient was created. I was able to resolve this.
This is still an issue :
I also noticed that databricks rest api documentation no longer shows list workspaces as an available API for Azure
whereas it shows up for AWS, link below:
https://docs.databricks.com/api/account/workspaces/list
Not found.
The service or operation you're looking for might be obsolete or have been renamed.
Make sure you're in the correct API reference and try to use search to find the page you're looking for.