Datadog API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
=Internal=
=Internal=
=HTTP=
=HTTP=
* https://docs.datadoghq.com/api/latest/
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
curl -s -X GET "https://api.datadoghq.com/api/v1/org" \
curl -s -X GET "https://api.datadoghq.com/api/v1/org" \
Line 9: Line 11:
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}"
-H "DD-APPLICATION-KEY: ${DATADOG_APP_KEY}"
</syntaxhighlight>
</syntaxhighlight>
=Python=
=Python=
* https://github.com/DataDog/datadogpy
* https://github.com/DataDog/datadogpy

Revision as of 01:23, 18 February 2022

External

Internal

HTTP

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}"

Python

Playground

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