I am wondering if and how I can use the RESTAPI to pull all machines in a certain group and get a total count. I would also like to export this list so I can use it to import it into a report. This the query I am running to pull the computers from the group but need a total count with the list and how to export it.
https://ROOTSERVER:52311/api/query?relevance=names of members of bes computer groups whose(name of it as lowercase as trimmed string = "Factset - Info_text_Group" as trimmed string as lowercase)
You just need to figure out the session relevance query that gives you the results in the format you want. I would use the Presentation Debugger or the Session Relevance Tester or WebReportsQnA to do this.
Here is an option:
("Total:" & (it as string) of number of members of it & " Members: " & concatenation ", " of names of members of it) of bes computer groups whose(name of it as lowercase as trimmed string = "Factset - Info_text_Group" as trimmed string as lowercase)
Once you have it in the format you want, then you just use the rest api to get the result (which will be in XML) and then do whatever you want with it. That part will depend on what you are using to do the query and what you want to do with the result.