Dashboards API - GET a dashboard
Gets parameters of the specified dashboard.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/dashboards/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/dashboards/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/dashboards/{id} |
Authentication
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the required dashboard. | path | required |
Response
Refer to Tile JSON models to find JSON models for each tile type.
Response codes
Code | Type | Description |
---|---|---|
200 | Dashboard | Success. The response body contains parameters of the dashboard. |
Response body objects
The Dashboard
object
Configuration of a dashboard.
Element | Type | Description |
---|---|---|
dashboardMetadata | DashboardMetadata | Parameters of a dashboard. |
id | string | The ID of the dashboard. |
metadata | ConfigurationMetadata | Metadata useful for debugging |
tiles | Tile[] | The list of tiles on the dashboard. |
The DashboardMetadata
object
Parameters of a dashboard.
Element | Type | Description |
---|---|---|
dashboardFilter | DashboardFilter | Filters, applied to a dashboard. |
dynamicFilters | DynamicFilters | Dashboard filter configuration of a dashboard. |
hasConsistentColors | boolean | The tile uses consistent colors when rendering its content. |
name | string | The name of the dashboard. |
owner | string | The owner of the dashboard. |
preset | boolean | The dashboard is a preset ( |
shared | boolean | The dashboard is shared ( |
tags | string[] | A set of tags assigned to the dashboard. |
tilesNameSize | string | The general size of the tiles tile. Default value is medium
|
The DashboardFilter
object
Filters, applied to a dashboard.
Element | Type | Description |
---|---|---|
managementZone | EntityShortRepresentation | The short representation of a Dynatrace entity. |
timeframe | string | The default timeframe of the dashboard. |
The EntityShortRepresentation
object
The short representation of a Dynatrace entity.
Element | Type | Description |
---|---|---|
description | string | A short description of the Dynatrace entity. |
id | string | The ID of the Dynatrace entity. |
name | string | The name of the Dynatrace entity. |
The DynamicFilters
object
Dashboard filter configuration of a dashboard.
Element | Type | Description |
---|---|---|
filters | string[] | A set of all possible global dashboard filters that can be applied to a dashboard Currently supported values are:
|
genericTagFilters | DashboardGenericTagFilter[] | A set of generic tag filters that can be applied to a dashboard |
The DashboardGenericTagFilter
object
Generic tag filters that can be applied to a dashboard.
Element | Type | Description |
---|---|---|
displayName | string | The display name used to identify this generic filter. |
entityTypes | string[] | Entity types affected by tag. |
suggestionsFromEntityType | string | The entity type for which the suggestions should be provided. |
tagKey | string | The tag key for this filter. |
The ConfigurationMetadata
object
Metadata useful for debugging
Element | Type | Description |
---|---|---|
clusterVersion | string | Dynatrace version. |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
The Tile
object
Configuration of a tile.
The actual set of fields depends on the type of the tile. Find the list of actual objects in the description of the tileType field or see Dashboards API - Tile JSON models.
Element | Type | Description |
---|---|---|
bounds | TileBounds | The position and size of a tile. |
configured | boolean | The tile is configured and ready to use ( |
isAutoRefreshDisabled | boolean | The tile auto refresh is disabled. Only works for certain tile types. |
name | string | The name of the tile. |
nameSize | string | The size of the tile name. Default value is null.
|
tileFilter | TileFilter | A filter applied to a tile. It overrides dashboard's filter. |
tileType | string | Defines the actual set of fields depending on the value. See one of the following objects:
|
The TileBounds
object
The position and size of a tile.
Element | Type | Description |
---|---|---|
height | integer | The height of the tile, in pixels. |
left | integer | The horizontal distance from the top left corner of the dashboard to the top left corner of the tile, in pixels. |
top | integer | The vertical distance from the top left corner of the dashboard to the top left corner of the tile, in pixels. |
width | integer | The width of the tile, in pixels. |
The TileFilter
object
A filter applied to a tile.
It overrides dashboard's filter.
Element | Type | Description |
---|---|---|
managementZone | EntityShortRepresentation | The short representation of a Dynatrace entity. |
timeframe | string | The default timeframe of the tile. |
Response body JSON model
1{2 "dashboardMetadata": {3 "dashboardFilter": {4 "managementZone": {5 "id": "3438779970106539862",6 "name": "Example Management Zone"7 },8 "timeframe": "l_72_HOURS"9 },10 "dynamicFilters": {11 "filters": [12 "SERVICE_TYPE"13 ]14 },15 "name": "Example Dashboard",16 "owner": "Example Owner",17 "shared": true18 },19 "metadata": {20 "clusterVersion": "Mock version",21 "configurationVersions": [22 4,23 224 ]25 },26 "tiles": [27 {28 "bounds": {29 "height": 38,30 "left": 0,31 "top": 0,32 "width": 30433 },34 "configured": true,35 "name": "Hosts",36 "tileFilter": {},37 "tileType": "HEADER"38 },39 {40 "bounds": {41 "height": 38,42 "left": 304,43 "top": 0,44 "width": 30445 },46 "configured": true,47 "name": "Applications",48 "tileFilter": {},49 "tileType": "HEADER"50 },51 {52 "bounds": {53 "height": 304,54 "left": 0,55 "top": 38,56 "width": 30457 },58 "chartVisible": true,59 "configured": true,60 "name": "Host health",61 "tileFilter": {62 "managementZone": {63 "id": "3438779970106539862",64 "name": "Example Management Zone"65 }66 },67 "tileType": "HOSTS"68 },69 {70 "bounds": {71 "height": 304,72 "left": 304,73 "top": 38,74 "width": 30475 },76 "chartVisible": true,77 "configured": true,78 "name": "Application health",79 "tileFilter": {80 "managementZone": {81 "id": "3438779970106539862",82 "name": "Example Management Zone"83 }84 },85 "tileType": "APPLICATIONS"86 }87 ]88}
Example
In this example, the request lists the parameters of the Sample dashboard, which has the ID of 2768e6ca-e199-4433-9e0d-2922aec2099b.
The API token is passed in the Authorization header.
The dashboard looks like this in the UI:
Curl
1curl -X GET \2 https://mySampleEnv.live.dynatrace.com/api/config/v1/dashboards/2768e6ca-e199-4433-9e0d-2922aec2099b \3 -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/config/v1/dashboards/2768e6ca-e199-4433-9e0d-2922aec2099b
Response body
1{2 "metadata": {3 "clusterVersion": "1.166.0.20190311-110828",4 "configurationVersions": [5 26 ]7 },8 "id": "2768e6ca-e199-4433-9e0d-2922aec2099b",9 "dashboardMetadata": {10 "name": "Sample dashboard",11 "shared": true,12 "owner": "john.smith",13 "sharingDetails": {14 "linkShared": true,15 "published": true16 },17 "dashboardFilter": {18 "timeframe": "l_2_HOURS",19 "managementZone": null20 }21 },22 "tiles": [23 {24 "name": "Host health",25 "tileType": "HOSTS",26 "configured": true,27 "bounds": {28 "top": 0,29 "left": 304,30 "width": 304,31 "height": 30432 },33 "tileFilter": {34 "managementZone": {35 "id": "9130632296508575249",36 "name": "Easytravel"37 }38 },39 "filterConfig": null,40 "chartVisible": true41 },42 {43 "name": "User behavior",44 "tileType": "SESSION_METRICS",45 "configured": true,46 "bounds": {47 "top": 0,48 "left": 0,49 "width": 304,50 "height": 30451 },52 "tileFilter": {53 "managementZone": null54 },55 "assignedEntities": [56 "APPLICATION-8E41C8C247910758"57 ]58 }59 ]60}
Response code
200