Reports API - GET all reports

Lists all available reports of the specified type.

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/reports
Environment ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/reports

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

ParameterTypeDescriptionInRequired
typestring

Type of a report.

  • DASHBOARD
queryoptional
sourceIdstring

Referencing source entity of a report (e.g. dashboard).

queryoptional

Response

Response codes

CodeTypeDescription
200ReportStubList

Success

Response body objects

The ReportStubList object

A list of short representations of reports.

ElementTypeDescription
valuesDashboardReportStub[]

A list of reports.

The DashboardReportStub object

A short representations of the report.

ElementTypeDescription
dashboardIdstring

The ID of the associated dashboard.

idstring

The ID of the report.

typestring

The type of the report.

  • DASHBOARD

Response body JSON model

{
"values": [
{
"dashboardId": "9eee7ed6-a125-4d9d-bfa7-afdb3404cb36",
"id": "337d883e-98c3-4dac-b8f2-1a9cdbd05969",
"type": "DASHBOARD"
},
{
"dashboardId": "26ccd360-828c-4d83-a65e-040ddc31e8f6",
"id": "b059e372-0b35-4d44-869b-95c326748848",
"type": "DASHBOARD"
}
]
}

Example

In this example, the request asks for a list of all the report configurations in 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.dynatrace.com/api/config/v1/reports/ \
-H 'Accept: application/json; charset=utf-8' \
-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/config/v1/reports/

Response body

{
"values": [
{
"id": "3ad7dece-98a4-4cc4-8805-34dcd19d4714",
"type": "DASHBOARD",
"dashboardId": "18d5b111-05ed-4efb-8cf1-e8dd0a9e5c47"
},
{
"id": "81c86de0-95d6-42d1-ad50-8578bb688b1c",
"type": "DASHBOARD",
"dashboardId": "bf0aad45-3785-444f-88d3-21e547eb78b1"
},
{
"id": "0b2e3121-4f8d-4b08-a879-3047e044ba4c",
"type": "DASHBOARD",
"dashboardId": "b6570e01-1d49-4bcc-a3bb-2fab2906512c"
}
]
}

Response code

200