Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to retrieve all dashboard groups? #157

Open
TobyWans opened this issue Jun 14, 2024 · 0 comments
Open

A way to retrieve all dashboard groups? #157

TobyWans opened this issue Jun 14, 2024 · 0 comments

Comments

@TobyWans
Copy link

Description

I am looking for a way to retrieve all dashboard groups. I have successfully used the get_user_dashboards API call to fetch the dashboards, but I need a similar method to get all dashboard groups.

Current Usage

Here is a snippet of how I currently fetch customer dashboards:

from tb_rest_client.rest_client_pe import *
from tb_rest_client.rest import ApiException

# Initialize the ThingsBoard REST client
client = RestClientPE(base_url="https://thingsboard.cloud")

# Login
client.login(username="USERNAME", password="PASSWORD")

# Fetch customer dashboards
customer_dashboards = client.get_user_dashboards(page_size=100, page=0).data

# Logout
client.logout()

What I need to do is get the dashboard groups in the same way, something like this:

customer_dashboard_groups = client.get_dashboard_groups(page_size=100, page=0).data

Is there any way to do this without knowing the group id?

Thank you for your assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant