cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Best Approach to Retrieve Policy IDs Across Multiple Workspaces

Chinu
New Contributor III

Hi, 
I’m aware of the API endpoint api/2.0/policies/clusters/list to fetch a list of policy IDs and names. However, we have 50 different workspaces, and I need to retrieve the specific policy ID and name for each one.

Could you advise on the most efficient way to accomplish this? For example:

  • Is there a way to query all workspaces at once?

  • Would scripting (e.g., Python loop with workspace IDs) be the best approach?

Thanks in advance for your guidance!

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @Chinu ,

Databricks does not provide a global API to query all workspaces in a single call. I guess your only option for now is to use scripting approach.

View solution in original post

1 REPLY 1

szymon_dybczak
Esteemed Contributor III

Hi @Chinu ,

Databricks does not provide a global API to query all workspaces in a single call. I guess your only option for now is to use scripting approach.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now