I can’t seem to POST to the Actions endpoint using a baseline created in a custom site as a sourced fixlet when using a MultipleActionGroup along with a SourcedMemberAction.
I’ll get something to the effect of “Action1” does not exist. If I omit the Action I will get something like: Action “” does not exist
The equivalent XML body using a SourcedFixletAction and no MultipleActionGroup will work fine.
I need to Action the Baseline with Pre and Post group ActionScripts which is why I am attempting to use the multiple action group.
I’m not sure I’m following…can you put a sample of the XML you’re posting here?
Hi sure thing - The 1st attempt using a Multiple Action Group will fail.
The response is:
The remote server returned an error: (400) Bad Request.
Action “Action1” does not exist.
<?xml version="1.0" encoding="utf-16"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="BES.xsd">
<MultipleActionGroup>
<SourcedMemberAction>
<SourceFixlet>
<Sitename>MyCustom-SiteName</Sitename>
<FixletID>1111</FixletID>
<Action>Action1</Action>
</SourceFixlet>
</SourcedMemberAction>
<Settings>
<PreActionShowUI>false</PreActionShowUI>
<HasRunningMessage>false</HasRunningMessage>
<HasTimeRange>false</HasTimeRange>
<HasStartTime>false</HasStartTime>
<HasEndTime>true</HasEndTime>
<EndDateTimeLocalOffset>P2D</EndDateTimeLocalOffset>
<HasDayOfWeekConstraint>false</HasDayOfWeekConstraint>
<UseUTCTime>false</UseUTCTime>
<ActiveUserRequirement>NoRequirement</ActiveUserRequirement>
<ActiveUserType>AllUsers</ActiveUserType>
<HasWhose>false</HasWhose>
<PreActionCacheDownload>false</PreActionCacheDownload>
<Reapply>false</Reapply>
<HasReapplyLimit>true</HasReapplyLimit>
<ReapplyLimit>3</ReapplyLimit>
<HasReapplyInterval>false</HasReapplyInterval>
<HasRetry>false</HasRetry>
<HasTemporalDistribution>false</HasTemporalDistribution>
<ContinueOnErrors>true</ContinueOnErrors>
<PostActionBehavior />
<IsOffer>false</IsOffer>
</Settings>
<Target>
<ComputerName>MyComputerName</ComputerName>
</Target>
</MultipleActionGroup>
Using this will work:
<?xml version="1.0" encoding="utf-16"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction>
<SourceFixlet>
<Sitename>MyCustom-SiteName</Sitename>
<FixletID>1111</FixletID>
<Action>Install</Action>
</SourceFixlet>
<Target>
<ComputerName>MyComputerName</ComputerName>
</Target>
<Settings>
<PreActionShowUI>false</PreActionShowUI>
<HasRunningMessage>false</HasRunningMessage>
<HasTimeRange>false</HasTimeRange>
<HasStartTime>false</HasStartTime>
<HasEndTime>true</HasEndTime>
<EndDateTimeLocalOffset>P2D</EndDateTimeLocalOffset>
<HasDayOfWeekConstraint>false</HasDayOfWeekConstraint>
<UseUTCTime>false</UseUTCTime>
<ActiveUserRequirement>NoRequirement</ActiveUserRequirement>
<ActiveUserType>AllUsers</ActiveUserType>
<HasWhose>false</HasWhose>
<PreActionCacheDownload>false</PreActionCacheDownload>
<Reapply>false</Reapply>
<HasReapplyLimit>true</HasReapplyLimit>
<ReapplyLimit>3</ReapplyLimit>
<HasReapplyInterval>false</HasReapplyInterval>
<HasRetry>false</HasRetry>
<HasTemporalDistribution>false</HasTemporalDistribution>
<ContinueOnErrors>true</ContinueOnErrors>
<PostActionBehavior />
<IsOffer>false</IsOffer>
</Settings>
</SourcedFixletAction>
</BES>
I’d like to use the former because I have some pre/post ActionScripts to tack onto the request. The sourceFixlet in this case is a custom baseline that comprises fixlets sourced from the Enterprise Security Site but the resulting baseline sits in MyCustom-SiteName
I recently saw the following in the API guide:
“Note: You cannot submit a Multiple Action Group using a MemberAction that contains a FixletSource element. This is relevant to IEM 9.0 and later.”
Do I read this to mean Sourced Fixlets can no longer be used in Multiple Action Groups past version 9.0?