grafana_api_sdk icon indicating copy to clipboard operation
grafana_api_sdk copied to clipboard

create_or_update in dashboard not working because of folders?

Open johannes-russek-sh opened this issue 7 months ago • 6 comments
trafficstars

Hi, it seems that I am unable to create a dashboard because the get_folder_id_by_dashboard_path() function is not finding the folder. It appears that the get_all_folder_ids_and_names() function returns an empty set in our grafana cloud instance.

Interestingly, if I change the get_folder_id_by_dashboard_path() function to use get_folders() instead, it works just fine.

Am I doing something incorrectly? What's the reason for using the search endpoint when finding the id of a dashboard?

I'd be happy to send a PR, it's literally one line of change - but I'd like to understand this better of course.

johannes-russek-sh avatar Apr 17 '25 20:04 johannes-russek-sh