when i posting action how i can targeting what computer will be at this action?
Check the BES.xsd schema definition at https://developer.bigfix.com/rest-api/bes_xsd.html for details. Basically there is a <Target>
xml node that can have as a child element one of
<ComputerName>
<ComputerID>
<CustomRelevance>
<AllComputers>
To target by Groups or Properties, you’d use CustomRelevance.
1 Like
See also https://developer.bigfix.com/rest-api/examples/create-action.html for a simple example that leverages the <AllComputers>
approach.
Here’s another simple example based on <ComputerName>
:
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction>
<SourceFixlet>
<Sitename>MySite</Sitename>
<FixletID>123</FixletID>
<Action>Action1</Action>
</SourceFixlet>
<Target>
<ComputerName>MyComputer</ComputerName>
</Target>
</SourcedFixletAction>
</BES>
I have pasted my sample python code here.