I’ve been developing code to maintain baselines and actions for automated patching of Linux systems, and it is mostly working well.
I figured out how to create and post a Multiple Action Group Action, but it always ends up in the operator site of the user I am using to log into the API.
I’ve been studying the XSD, and found I can add a CustomSite element. I added that, and it accepts it as valid XML, but ignores the content of the CustomSite element, leaving the Action in the operator’s site as before.
For background, actions are deployed to the actionsite, operator sites, or mailboxes. They are not deployed to Fixlet sites (external or custom).
Just as with the Console, where an action is generated/hosted will depend on the user issuing the action as well as the target of the action. With the API, the action’s issuer is based on the operator credentials used to authenticate to the API.
OK. That explains a lot. It is confusing to me because the is an Actions folder within the custom site (and other sites too). Does it even matter where the Action is “hosted”?
The way I do it, I build a baseline and then schedule it as an action. So I have a SourcedFixletAction element within the BES element, then within that is the SourceFixlet, the FixletID (of the Baseline) and Sitename elements.
The XML in your original post is not showing properly so I can’t help with how yours should be formatted.