Hey all, weird scenario here. I have a secure parameter that works just fine when I run the fixlet as master operator from the console in my DEV environment. However, when the fixlet is used to create an action via rest api, the secure parameter is not recognized. The user running the rest API call is also a master operator, so it does not appear to be a permissions issue. Error at the bottom. Any help would be greatly appreciated, thank you.
Is there something in the rest API call that needs to allow dynamic content??
I am simply mapping a drive with the secure parameter pass with a user that has access to a NAS share.
Command failed (Substitution failed while writing file) createfile until end
the XML generated looks like the below. Since the fixlet already has the secure parameter baked into it, I thought just launching the existing fixlet against a target would be fine via the rest api. It works when I run it from the console.
This looks like it might be a value that would be returned when your perform a REST GET on an existing action, but isn’t the right kind of document to POST a new action.
You’d need either the full definition of an Action (like the example I posted - that has Relevance, ActionScript, Target, Parameters and SecureParameters) or a SourcedFixletAction (that has a SourceID, SourceSite, ActionID, Target, and Parameters)
Thanks for the info. So in theory, I should be able to create an action from a pre-existing fixlet that has a baked in secure parameter, right? Assuming it has all of the necessary sourcedfixlet info, site, id, etc. Thank you
Yes, that’s correct, you need to send the parameter values in <SecureParameter> nodes.
The same limitations apply as in the console - an action with Secure Parameters cannot be targeted dynamically, for instance. I think I recall a discussion on edge cases that sending these through API requires targeting by ComputerID as well, it may not be possible to target by ComputerName, but I’m not finding that discussion at the moment