REST query default action for a fixlet

(imported topic written by RobG1)

I’m attempting to build a Multi Action Group using REST. Using the following api/query, I can get the name and relevance for all fixlets that are relevant for a particular host,

api/query?relevance=( name of it,  relevance of it) of relevant fixlets of bes computers whose (name of it is "<hostname>")

‘it’ in the query points to the relevant fixlet. I cannot figure out how to get the DefaultAction for each relevant fixlet displayed.

Does anyone have a suggestion for this?

Thanks,

Rob

(imported comment written by RobG1)

I tried adding default action of it,

api/query?relevance=( name of it, relevance of it, default action of it) of relevant fixlets of bes computers whose (name of it is “”), but I get the error “The operator “string” is not defined.”

(imported comment written by jgstew)

I’d suggest getting the relevance to work in the “BigFix Session Relevance Tester” first before trying it with REST. Makes it much easier to write and debug.

( name of it, relevance of it, script of default action of it) of relevant fixlets whose(exists default action of it) of bes computers whose (name of it is “HOST_NAME”)

(imported comment written by RobG1)

James,

Thank you for that post. That query did work. I have a couple more questions,

  • How would I know to use “script of default action of it”? Where is it documented what members are available for a particular object? That is one of the issues I have been fighting, how to figure out what options are available.

  • When I query a fixlet, the action script also comes with a MIMEType, which appears to be used in the MAG Action statement for each member action. How would I modify your query to include this value?

  • I found a download link for the relevance tester, but it is for 8.0.627 is there a newer version or will this work ok with IEM 9.x?

Thank you,

(imported comment written by jgstew)

I figure out what members are available through the internal help tool of the session relevance tester and through here:
http://support.bigfix.com/inspectors/World%20Objects_Any.html

I’m not sure about the MIMEType … that may be a things you can query using a different session relevance statement.

I believe that is the newest session relevance tester. It will work with 9.x

(imported comment written by jgstew)

Also, I don’t think it is a good idea to make a very large multi action group with a very large number of components. I think that can cause performance issues.

(imported comment written by RobG1)

Any clue on what a “very large MAG is”? 10, 15, 20 members? I read somewhere that for baselines, about 50 actions was the max recommended for performance reasons.

(imported comment written by jgstew)

250 components in a baseline is what I have read as the max that should be included, which should be equivalent to 250 member actions in a MAG.

(imported comment written by cwmenard)

Another way would be to find the site and id of the relevant fixlets, export them via REST to xml, use that xml to create each member action of the MultiActionGroup to be imported via REST. Overly simplified but that’s how we’re doing it.