Skip to content

A way to retrieve all dashboard groups? #157

Open
@TobyWans

Description

@TobyWans

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions