Topic
  • 8 replies
  • Latest Post - ‏2014-05-27T18:36:00Z by cwmenard
RobG1
RobG1
23 Posts

Pinned topic REST query default action for a fixlet

‏2014-05-19T21:52:25Z |

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

 

 

  • RobG1
    RobG1
    23 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-20T16:24:18Z  

    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 "<hostname>"), but I get the error "The operator "string" is not defined."

     

     

  • jgstew
    jgstew
    52 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-20T20:53:07Z  
    • RobG1
    • ‏2014-05-20T16:24:18Z

    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 "<hostname>"), but I get the error "The operator "string" is not defined."

     

     

     

    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")

     

  • RobG1
    RobG1
    23 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-21T14:51:15Z  
    • jgstew
    • ‏2014-05-20T20:53:07Z

     

    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")

     

    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, <ActionScript MIMEType="application/x-Fixlet-Windows-Shell"> 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,

  • jgstew
    jgstew
    52 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-21T15:21:17Z  
    • RobG1
    • ‏2014-05-21T14:51:15Z

    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, <ActionScript MIMEType="application/x-Fixlet-Windows-Shell"> 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,

     

    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

     

  • jgstew
    jgstew
    52 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-21T15:22:34Z  
    • RobG1
    • ‏2014-05-21T14:51:15Z

    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, <ActionScript MIMEType="application/x-Fixlet-Windows-Shell"> 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,

     

    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.

     

     

  • RobG1
    RobG1
    23 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-21T15:44:07Z  
    • jgstew
    • ‏2014-05-21T15:22:34Z

     

    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.

     

     

    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.

  • jgstew
    jgstew
    52 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-21T15:59:10Z  
    • RobG1
    • ‏2014-05-21T15:44:07Z

    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.

     

    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.

     

  • cwmenard
    cwmenard
    9 Posts

    Re: REST query default action for a fixlet

    ‏2014-05-27T18:36:00Z  

    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.