Hi everyone, I have a question about API and VQL integration.
With this query, the org config param is read from the selected scope on frontend:
LET Build(Target) = repack(
upload_name=format(
format='Org_%v_%v',
args=[org().name, inventory_get(tool=Target).Definition.filename]),
target=Target,
config=serialize(format='yaml', item=org()._client_config))
SELECT *
FROM chain(
a={
SELECT Build(Target="VelociraptorWindowsMSI")
FROM scope()
},
b={
SELECT Build(Target="VelociraptorWindows_x86MSI")
FROM scope()
WHERE AlsoBuild_x86
})
How can I refer to a specific ORG using API when I run this server artifact (Server.Utils.CreateMSI)?
Thank you.
~p