getHosts
@Headers("Content-Type:application/json; charset=utf-8")
@GET("entity/infrastructure/hosts")
retrofit2.Call<List<Host>> getHosts(@Query("startTimestamp")
Long startTimestamp,
@Query("endTimestamp")
Long endTimestamp,
@Query("relativeTime")
String relativeTime,
@Query("tag")
List<String> tag,
@Query("showMonitoringCandidates")
Boolean showMonitoringCandidates,
@Query("entity")
List<String> entity)
Lists all available hosts in your environment
You can narrow down the output by specifying filtering parameters of the request.
- Parameters:
startTimestamp
- Start timestamp of the requested timeframe, in milliseconds (UTC). If not set, then 72 hours behind from now is used. (optional)
endTimestamp
- Start timestamp of the requested timeframe, in milliseconds (UTC). If not set, then now is used. (optional)
relativeTime
- Relative timeframe, back from now. (optional)
tag
- Filters the resulting set of hosts by the specified tag. A host has to match ALL specified tags. (optional)
showMonitoringCandidates
- Include/exclude monitoring canditate to the response. Monitoring candidates are network entities, which are detected but not monitored. (optional)
entity
- Only return specified hosts. (optional)
- Returns:
- Call<List<Host>>