mastefani
Enthusiast
Enthusiast

vRA8 REST to get Machines by Project

Jump to solution

I'm looking for a REST call that returns all the machines / resources from a specific project.  I found the REST call  /iaas/api/machines which looks like it might be what I'm looking for.  So it looks like you can do filtering with this REST call, but I can't find any examples of how exactly the filtering works or what you can filter based on.  Anyone have an example or know of a better way to return all the machines of a Project?

0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert

/iaas/api/machines?$filter=projectId eq 'a0ca29a2-4594-4281-b473-a490a16b92f8'

View solution in original post

2 Replies
xian_
Expert
Expert

/iaas/api/machines?$filter=projectId eq 'a0ca29a2-4594-4281-b473-a490a16b92f8'

mastefani
Enthusiast
Enthusiast

Thanks!

0 Kudos