Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Dynatrace/dynatrace-api

Folders and files

NameName
Last commit message
Last commit date
Jul 7, 2020
Apr 10, 2018
Apr 3, 2017
Apr 3, 2019
Mar 20, 2017
May 12, 2017
Jan 23, 2019
Jul 24, 2023
Jan 29, 2018
Jan 29, 2018
Mar 19, 2019
Jun 14, 2017
Mar 20, 2017
Nov 10, 2022
May 15, 2019
May 15, 2019
Mar 20, 2017
Mar 20, 2017
Nov 9, 2015
Apr 5, 2017

Overview

The Dynatrace API examples demonstrate how to access various parts of Dynatrace, such as timeseries, problem feed and infrastructure topology as an API consumer.

Dynatrace API documentation

The full Dynatrace API documentation can be found here: https://help.dynatrace.com/api-documentation/v1/

API key

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

  1. Go to your Dynatrace environment: https://{tenant}.live.dynatrace.com
  2. Expand the side-bar menu on the left side of the screen and go to Settings and then Integration
  3. Choose the Dynatrace API section
  4. Click on Generate token to create a new API key
  5. Enter a description label and submit the request
  6. Expand the created key via clicking on the "Edit"-label, copy the token and use it in your Dynatrace API examples

Using the API with Dynatrace Managed environments

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/

License

This module is provided under BSD-3-Clause license. Please check out the details in the LICENSE.txt