API : Gathering Computers in a Building

joshbillions
New Contributor

Does an API end-point exist to provide a list of computers in a building? I'm currently iterating through each computer item and sorting them into arrays that correspond with each building. However, pulling down information on each computer just to update the contents of a single building seems like too much work.

1 ACCEPTED SOLUTION

SamF
Contributor II
Contributor II

Josh- Unfortunately there isn't an easier way to directly query the membership of computers assigned to a building without looping through each computer's data. You may want to consider creating a smart group based on building, since it's possible to query the membership of groups using the API. That adds an extra step from the GUI, but should make the API query fairly simple.

View solution in original post

1 REPLY 1

SamF
Contributor II
Contributor II

Josh- Unfortunately there isn't an easier way to directly query the membership of computers assigned to a building without looping through each computer's data. You may want to consider creating a smart group based on building, since it's possible to query the membership of groups using the API. That adds an extra step from the GUI, but should make the API query fairly simple.