godo.Insights.ListDashboards()
Generated on 5 Nov 2026
from godo version
v1.236.0
Usage
client.Insights.ListDashboards(ctx context.Context, opt *godo.DashboardListOptions) (*godo.DashboardList, *godo.Response, error)Description
ListDashboards lists the team’s dashboards. Without a Sort, results are
newest first; see DashboardListOptions for how Sort and SortDirection
interact. The API returns 400 for a PerPage above 200, an unknown Sort
field, or an unknown SortDirection.
Parameters
opt*godo.DashboardListOptions
Fields of godo.DashboardListOptions
DashboardListOptions are pagination and sort parameters for listing
dashboards. PerPage defaults to 20; the API rejects values above 200.
When Sort is empty, results are ordered by created_at descending and
SortDirection is ignored. When Sort is set, SortDirection defaults to
ascending.
PageintPerPageintSortstringSortis one of the InsightsDashboardSort* field constants. Any other
value is rejected by the API.SortDirectionstringSortDirectionis InsightsDashboardSortAscending or
InsightsDashboardSortDescending. Only applied when Sort is set, in
which case it defaults to ascending. Any other value is rejected by
the API.
Returns
- *godo.DashboardList
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.DashboardList
DashboardList is a page of dashboards.
Dashboards[]godo.DashboardPagination*godo.DashboardsPagination
Request Sample
More Information
See the Go package documentation for the source of this method.