Datadog API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:


=Internal=
=Internal=
* [[Internal|Datadog Concepts#API|Datadog Concepts]]
* [[|Datadog Concepts#API|Datadog Concepts]]


=Overview=
=Overview=

Revision as of 21:07, 8 March 2022

External

Internal

  • [[|Datadog Concepts#API|Datadog Concepts]]

Overview

Datadog resources can be provisioned via an API.

HTTP

Organization

Organization information

curl -s -X GET "https://api.datadoghq.com/api/v1/org" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DATADOG_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}"

Dashboard

https://docs.datadoghq.com/api/latest/dashboards/

Getting all dashboards: https://docs.datadoghq.com/api/latest/dashboards/#get-all-dashboards
Get one dashboard: https://docs.datadoghq.com/api/latest/dashboards/#get-a-dashboard

Python

Playground

https://github.com/ovidiuf/playground/tree/master/datadog/python-api