The Dynatrace API examples demonstrate how to access various parts of Dynatrace, such as timeseries, problem feed and infrastructure topology as an API consumer.
The full Dynatrace API documentation can be found here: https://help.dynatrace.com/api-documentation/v1/
In order to use the Dynatrace API, you need an API key for your Dynatrace tenant. You can generate a key by following these steps
- Go to your Dynatrace environment: https://{tenant}.live.dynatrace.com
- Expand the side-bar menu on the left side of the screen and go to Settings and then Integration
- Choose the Dynatrace API section
- Click on Generate token to create a new API key
- Enter a description label and submit the request
- Expand the created key via clicking on the "Edit"-label, copy the token and use it in your Dynatrace API examples
For Dynatrace Managed environments you need to use an URL with the following structure:
https://<hostname>/e/<tenant-id>/api/v1/
e.g.
https://sample.dynatrace-managed.com/e/12345678-1234-1234-1234-abcdef12/api/v1/
This module is provided under BSD-3-Clause license. Please check out the details in the LICENSE.txt