Is there an API to push known fixlets to systems? For example, i would like to push fixlet ID 1300609 in the Patches for Windows (English) site to a set of computers. Can this be done via the rest API?
Pinned topic api to push existing fixlet
BrianPGreen 270005EFBB8 Posts
Re: api to push existing fixlet2013-08-14T18:43:07ZThis is the accepted answer. This is the accepted answer.
There is not a simple way to do this. However, it is possible to do this by GET-ing the fixlet that you want to push, constructing the action xml from that fixlet, and then POST-ing the action.
Re: api to push existing fixlet2013-10-29T12:45:15ZThis is the accepted answer. This is the accepted answer.
Did you make progress on this, grateful if you could share ??
Re: api to push existing fixlet2013-10-30T14:08:22ZThis is the accepted answer. This is the accepted answer.
If you know the fixlet ID and sitename you can post it as an action as follows:
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<Sitename>Patches for Windows</Sitename>
Re: api to push existing fixlet2013-10-31T14:23:41ZThis is the accepted answer. This is the accepted answer.
- nberger91 270004W6A0
You could take an action in the console with the settings you want then export the action to obtain the .bes file. That file would be our xml and would have all the action settings. Be sure to add/change the target though, otherwise it will target ALL computers. Using this approch would create the aciton on the fly each time, so if the content is ever updated in the console you would have to manually modify your xml to be in sync.
You could also try to add some of the action settings rectived from the exported .bes file and add that to the method I prevously outlined, I've never tried that, so I'm not sure if it would work.
Re: api to push existing fixlet2013-10-31T14:41:36ZThis is the accepted answer. This is the accepted answer.
- MattPeterson 270006J29J
We have created an automated process that deloys relevant security hotfixes to specific machines. I cannot export an action to call via the besimport tool as the fixlet id would change on a per machine basis, meaning i would have to create hundred's of test actions.
I've tried editing the the current xml to include a pre and/or post actions but it errors out with a format error.
Re: api to push existing fixlet2013-10-31T15:23:44ZThis is the accepted answer. This is the accepted answer.
- nberger91 270004W6A0
Well, I don't know how the automated process you mentioned works... But from what I gathered your best option may be to go the route Brian suggested.
You do a GET to retireve the XML from a fixlet. You could then modify that data ,and add action settings, to create a xml to post a new action. (You would obviously want to automate this process somehow).
Your get command would look like this:
Maybe a better option would be to create baselines that include groups of desired fixlets. You should then be able to modify the default behavior of that baseline to include the pre and post action stuff, then just call the baseline ID. Your default action behavior should be taken.