API master action site does not exsist

Hi,

Im trying to run an action from the bigfix API.

URL:
https://<bigfix_server>:52311/api/actions

Content to send:
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction>
<SourceFixlet>
<Sitename>BES Support</Sitename>
<FixletID>{ID}</FixletID>
<Action>Action1</Action>
</SourceFixlet>
<Target>
<ComputerID>{id}</ComputerID>
</Target>
</SourcedFixletAction>
</BES>

When I tried to run an action from the ‘BES Support’ site it worked, but when I change it to an action from the ‘Master action site’ I got an error message - “Site “master action site” does not exist.”

What can I do?

Thank you,
AgentsOfShield.

“Master action site” is just a “display name”. The “real” name of the site is “actionsite”. Try that…

Im still getting the same error… “Site “actionsite” does not exist.”

Are you using credentials from a master operator? If not, you won’t have rights to create an action in the master action site (actionsite), instead you would need to create it in the operator site for that non-master operator.

Hello agentsofshield,

Here are some site types examples you may find useful:
(I found them on the “RESTAPI Fixlet” page: https://developer.bigfix.com/rest-api/api/fixlet.html)

/api/fixlets/master --> returns fixlets from the master action site
/api/fixlets/custom/MyCustomSite --> returns fixlets from your MyCustomSite custom site.
/api/fixlets/external/BES Support --> returns fixlets from the external site "BES Support"
/api/fixlets/operator/Daniel --> returns fixlets from Daniel's operator site

Regards,
Vitaliy

Yes, I am a master operator.
Im tring to run a task that i created (using the Windows Registry Wizard).

Hi Vitaliy,
Thank you for your reply.
I tried looking at the page you send but I sill can not run the action I need.
I can not understand why…

Does it mean you get the same “site does not exist” error when you set a site name to master?

Just checked the reference for /api/actions at developer.bigfix.com. It doesn’t have an example using the master action site, but a couple of interesting notes.

Try using the exact capitalization “ActionSite”, or even leaving the <SiteName> value empty, in which case “ActionSite” is assumed.

1 Like

It is working now, thank you all so much!

Regards,
AgentsOfShield