Datadog API: Difference between revisions
Jump to navigation
Jump to search
(→Python) |
|||
Line 32: | Line 32: | ||
==<tt>requirements.txt</tt>== | ==<tt>requirements.txt</tt>== | ||
<font size=-1> | |||
datadog == 0.43.0 | |||
</font> | |||
==Playground== | ==Playground== | ||
{{External|https://github.com/ovidiuf/playground/tree/master/datadog/python-api}} | {{External|https://github.com/ovidiuf/playground/tree/master/datadog/python-api}} |
Revision as of 21:46, 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
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
- https://github.com/DataDog/datadogpy
- https://docs.datadoghq.com/api/latest/?code-lang=python
- https://datadogpy.readthedocs.io/en/latest/
- https://docs.datadoghq.com/api/latest/using-the-api/
requirements.txt
datadog == 0.43.0