-
Notifications
You must be signed in to change notification settings - Fork 6
Function to end maintenance mode #9
Comments
Hey there - I'm a dev and one of my ops guys has installed your project and wants me to use it to do exactly this - start and end maintenance mode.
Naively, it seems like the last point shouldn't be too hard? Happy to jump in and do a PR soon. Any pointers / landmines to be aware of? For context - what we want to do is plug SCOM into our Octopus deploys, starting and ending maintenance mode for our servers during the deployment |
Hi, thanks for your interest. My respond will be as an IT-pro as i'm not a dev :) 1: In general, yes. The API loads SCOM sdk through its DLLs and exposes some of the functionality as a WebAPI. I belive it's restful, but maybe not everything. As unOfficial as its gets. Personally, I dont know of any pit falls other than the code is written by me, as my first C# project. Meaning it might be full of non best practice stuff. If you have a blog or anything, It would be cool to see a little article on your project, or a guest blog if you like :) ` /// Updates or ends existing maintenance mode for object. /// /// Json string with object id required /// If true, maintenance will end /// /// { /// "id": "Guid", /// "EndTime": "2017-07-07T19:00:00.000Z" /// } /// /// Successfully updated maintenance mode for the object /// Bad request. Check json input /// Conflict: object not in maintenance mode
` |
I've spotted a couple of things :) Are you open to some (maybe a lot ;) refactoring in a PR? Over the weekend I had a thought that, for my use case I can call the SCOM libraries from our console app directly and don't need a Web API intermediary...Will keep you posted. |
As long as I can some how understand why and how you made the changes that is fine with me. My priority was to sort out the bugs and some of the much needed functions at this point. |
Just letting you know I'm going to reference the SCOM libs directly from a console app we have - so no need for your API. I made a nuget package of the SCOM binaries - see #15 - HTH! |
Dev branch contains function to update or end maintenance mode for monitoring objects. Schedule still missing |
A way to stop/end maintenance mode is needed.
The text was updated successfully, but these errors were encountered: