Skip to content

APIClient and Server Artifacts #4099

Answered by scudette
c-f asked this question in Q&A
Mar 1, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Scheduling a server artifact requires the SERVER_ADMIN permission (I think it should be COLLECT_SERVER actually). From an API user you can just call the artifact using the SELECT * FROM Artifact.XX.YY.ZZ() format. This is almost the same as scheduling it but the results are not stored on the server but are streamed over the API.

So this basically reuses the VQL query in the artifact - no need to copy it out. The only issue is that the query will run with the ACL of the API user. Which means if you want to do a privileged operation (like collect new artifacts etc) you need to give the API user the relevant permissions.

For this reason there is actually not a lot of difference in giving col…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@scudette
Comment options

@scudette
Comment options

@c-f
Comment options

Answer selected by c-f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants