Bigfix Computer Group Comment API

Wanted to see if there was a method to make an API call to pull a list of computer groups and their member count if computer group has a specific comment?

Base example:

https://bigfix.com:52311/api/computergroup/custom/test

This will return the listing of computer groups from custom site “test”. Is there anyway to filter that computer group listing down further if a specific computer group has a set comment?

If the above is not possible, can someone shed light on the possibility of querying a specific site for computer group listing that includes the member count of each computer group?

Session relevance is the key to refining RestAPI calls.

One of the properties of ‘bes computer’ is ‘bes comment’

The properties of ‘bes comment’ are

author of <bes comment>: bes user
timestamp of <bes comment>: time
deleted flag of <bes comment>: boolean
text of <bes comment>: string

As a starter, the session relevance

(name of it, number of comments of it) of bes computers whose (exists comment of it)

Will do what it says on the tin, and you then plug that into your RestAPI

https://<bigfix_server>:52311/api/query?relevance=(name of it, number of comments of it) of bes computers whose (exists comment of it)

Second question:

(name of it, size of member set of it) of bes computer groups whose (name of site of it = "ABCDE")

1 Like

Thank you very much for the feedback. The below works for bes computers, but we’d ideally like to return bes computer groups

https://<bigfix_server>:52311/api/query?relevance=(name of it, number of comments of it) of bes computers whose (exists comment of it)

Can you advise on that? We tried the below, but received “The operator “comment” is not defined.”

https://<bigfix_server>:52311/api/query?relevance=(name of it, number of comments of it) of bes computer groups whose (exists comment of it)

Weirdly, I don’t see a listing for group comments in the docs.
https://developer.bigfix.com/relevance/reference/bes-computer-group.html
https://developer.bigfix.com/relevance/reference/bes-comment.html

/api/query?output=json&relevance=(name of it, size of member set of it) of bes computer groups

1 Like

Worked like a charm! Thanks!