Dashboards API - GET all dashboards
Lists all dashboards of your DESK environment, regardless of access rights in the UI.
The request produces an application/json
payload.
This request is an early adopter release and may be changed in non compatible way.
GET |
|
Parameters
The request doesn't provide any configurable parameters.
Response format
The DashboardList object
A list of short representations of dashboards.
Element | Type | Description |
---|---|---|
dashboards | DashboardStub[] | A list of short representations of dashboards. |
The DashboardStub object
A short representation of a dashboard.
Element | Type | Description |
---|---|---|
id | string | The ID of the dashboard. |
name | string | The name of the dashboard. |
owner | string | The owner of the dashboard. |
{
"dashboards": [
{
"id": "d6740373-ff26-4681-b95f-fd5b858c97f7",
"name": "Home dashboard",
"owner": "admin"
},
{
"id": "54b34dbb-2ae7-4c27-9dbc-90a4f4c68b10",
"name": "Databases",
"owner": "viewer"
},
{
"id": "8525b0bf-e33c-4a92-a534-9dedc1391e10",
"name": "Business value",
"owner": "rocks"
}
]
}
Example
In this example, the request lists all dashboards of the mySampleEnv environment.
The API token is passed in the Authorization header.
The result is truncated to three entries.
Curl
curl -X GET \
https://mySampleEnv.live.dexp.ae/api/config/v1/dashboards \
-H 'Authorization: Api-token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dexp.ae/api/config/v1/dashboards
Response body
{
"dashboards": [
{
"id": "891f3203-9953-4796-aacd-886c0f59dddf",
"name": "Home",
"owner": "admin.user"
},
{
"id": "2768e6ca-e199-4433-9e0d-2922aec2099b",
"name": "Sample dashboard",
"owner": "john.smith"
},
{
"id": "1d7d34c6-0eb1-4131-8d29-9022f8e7f530",
"name": "Kubernetes metrics",
"owner": "jane.brown"
}
]
}
Response code
200