cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API? > Retrieve last 7 days brand new on-boarding hosts

avrildong
Contributor

Issue is: anyway to retrieve last 7 days brand new on-boarding hosts? we used below test cases but return incorrect results.

//

Test case1:

"api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false"

vs "api/v1/entity/infrastructure/hosts?from=now-7d&to=now&includeDetails=false"

compare "displayName" (=hostname) return no diff.

Test case2:

"api/v1/entity/infrastructure/hosts?from=now-90d&to=now-14d&includeDetails=false"

vs "api/v1/entity/infrastructure/hosts?from=now-14d&to=now-7d&includeDetails=false": compare "displayName" (=hostname) , return very small qty of hosts and missing many.

//

Goal is to retrieve last 7 days brand new on-boarding hosts.

That is why we intend to use alternative solution: compare last 7-14days hosts list with last7days hosts list to see any brand new.

0 REPLIES 0