Forum Discussion

Jeff_Kinny's avatar
Jeff_Kinny
Icon for Contributor III rankContributor III
26 days ago
Solved

API Endpoint for Event Policy Creation

I was hoping to upload a large number of event policies to our ScienceLogic environment. Rather than going through the UI to do all of these manually, is there an API endpoint I can use to upload event policies? I have navigated a bit through the API Tool, and I do not see any endpoints that look like they would be the correct ones?

  • Hello Jeff,

    I do not see a way to upload event policies via the API, however, the easiest way to upload event policies to a SL1 stack would be to add the policies to a PowerPack and then import the PowerPack to whichever SL1 stack you want to upload those policies.

    Antonio Andres

    Principal Technical Support Engineer | ScienceLogic

2 Replies

  • Hello Jeff,

    I do not see a way to upload event policies via the API, however, the easiest way to upload event policies to a SL1 stack would be to add the policies to a PowerPack and then import the PowerPack to whichever SL1 stack you want to upload those policies.

    Antonio Andres

    Principal Technical Support Engineer | ScienceLogic

    • Jeff_Kinny's avatar
      Jeff_Kinny
      Icon for Contributor III rankContributor III

      Thanks for checking... The use case is that I have to do the initial creation of a bunch, >30, and they follow a really specific format. So the thought was I could create a script to print out the json and send that at the API way easier than I could create them in the UI.