Best Approach to Retrieve Policy IDs Across Multiple Workspaces

Chinu
Contributor

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!