Datadog API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
* https://docs.datadoghq.com/api/latest/
* https://docs.datadoghq.com/api/latest/


Organization information:
==Organization==
Organization information


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
Line 16: Line 17:
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}"
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}"
</syntaxhighlight>
</syntaxhighlight>
==Dashboard==
{{External|https://docs.datadoghq.com/api/latest/dashboards/}}


=Python=
=Python=

Revision as of 20:54, 8 March 2022

External

Internal

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/

Python

Playground

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