Hello, I have I think probably a very basic question so apologises if it should be apparent.
I’m working on a custom pack that will integrate with some tools that we use internally. I’d like st2 to interact with the tools API and pull data down from the tool in order to then perform other tasks on.
Firstly in order to use the API, you first must send a POST request with a username and password to authenticate to the API, then you receive a token to use in subsequent API calls.
I’m unsure how to handle that in my st2 instance, do I create an action for the authentication request and then another action for the subsequent API calls then chain them together or use the token as a variable for the next API calls.
The tool I’m using is Tenable.sc (Nessus Security Centre). Perhaps there is another pack that does a similar thing that I could refer to modify for my needs.