Creates a new report.
The request consumes and produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/reports |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/reports |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
DashboardReport
objectConfiguration of a dashboard report.
The dashboard report provides a public link to the associated dashboard with a custom reporting period: last week for weekly subscribers or last month for monthly subscribers.
The ID of the associated dashboard.
The email notifications for the dashboard report are enabled (true
) or disabled (false
).
The ID of the report.
DASHBOARD
DashboardReportSubscription
objectA list of the report subscribers.
A list of monthly subscribers.
Monthly subscribers receive the report on the first Monday of the month at midnight.
You can specify email addresses or Dynatrace user IDs here.
A list of weekly subscribers.
Weekly subscribers receive the report every Monday at midnight.
You can specify email addresses or Dynatrace user IDs here.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"dashboardId": "8dd67562-8bf5-4a09-830d-4e0ca992abd6","enabled": "true","id": "337d883e-98c3-4dac-b8f2-1a9cdbd05969","subscriptions": {"MONTH": ["demo@email.com","demo2@email.com"],"WEEK": ["demo@email.com"]},"type": "DASHBOARD"}
Success. The new report has been created. The response contains the ID of the new report.
EntityShortRepresentation
objectThe short representation of a Dynatrace entity.
A short description of the Dynatrace entity.
The ID of the Dynatrace entity.
The name of the Dynatrace entity.
{"description": "Dynatrace entity for the REST API example","id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a","name": "Dynatrace entity"}
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/reports/validator |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/reports/validator |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Validated. The submitted report is valid. The response doesn't have a body.
In this example, the request creates a new report for the dashboard with the ID of 2768e6ca-e199-4433-9e0d-2922aec2099b.
The report is sent weekly to Dynatrace user john.smith and monthly to Dynatrace user jane.brown.
The API token is passed in the Authorization header.
You can download or copy the example request body to try it out on your own. Be sure to use the dashboard ID and user that are available in your environment.
curl -X POST \https://mySampleEnv.live.dynatrace.com/api/config/v1/reports \-H 'Accept: application/json' \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890' \-H 'Content-Type: application/json' \-d '{"type": "DASHBOARD","dashboardId": "2768e6ca-e199-4433-9e0d-2922aec2099b","enabled": "true","subscriptions": {"WEEK": ["john.smith"],"MONTH": ["jane.brown"]}}'
https://mySampleEnv.live.dynatrace.com/api/config/v1/reports
{"type": "DASHBOARD","dashboardId": "2768e6ca-e199-4433-9e0d-2922aec2099b","enabled": "true","subscriptions": {"WEEK": ["john.smith"],"MONTH": ["jane.brown"]}}
{"id": "f78f78f5-00bd-4cc1-9e8b-ecfd1e379a73"}
204