Hosts
Get the total number of active hosts
This endpoint returns the total number of active and up hosts in your Datadog account. Active means the host has reported in the past hour, and up means it has reported in the past two hours.
get/api/v1/hosts/totals
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v1/hosts/totals
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token scopes: hosts_read
Query parameters
frominteger
Number of seconds from which you want to get total number of active hosts.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.