Solved

v1/v2 API Sunset


Userlevel 7
Badge +17

Did anyone else get a little sick at how many things are probably going to break in October?

 

icon

Best answer by Lewis Beard 5 April 2023, 16:32

View original

11 replies

Userlevel 4
Badge +5

Which features from v1/v2 are you most concerned about?

Userlevel 4
Badge +9

So many automations I need to visit before then. I have a lot on my plate to prepare.

I also dislike very much the change in documentation. Don’t get me wrong, I love having a swagger again. But with the change from v1/v2 to v3, we are losing a lot of decent examples of how to do filtering and what not.

 

Even tho I think either v3 or some things just ignore filters now.

Userlevel 7
Badge +17

Not about features. About my automations that I’ll have to update to use v3. I wasn’t using v1, so I sort of wish they were sunsetting them one at a time. They left v1 around for years (a decade?). I understand getting rid of v1, there were security issues. And i understand wanting to get rid of v2, but i wish they weren’t both at the same time. 

Userlevel 2
Badge +4

I’m reading it as support ends Oct 23, not that things are going to begin to suddenly stop working.

https://www.logicmonitor.com/support/logicmonitorrest-api-v1-and-v2sunset

 

Userlevel 7
Badge +17

True, the ship will only start sinking in October. How long can I wait to refactor all my scripts to make sure they’re not using v2.

Userlevel 4
Badge +9

True, the ship will only start sinking in October. How long can I wait to refactor all my scripts to make sure they’re not using v2.

Luckily I wrote a crappy python function that works decently well. So I am able to just alter that portion of the script and control the returned data the way the rest of the script is expecting.

Userlevel 2
Badge +6

My biggest worry with this is that I inherited being our portal admin in a trial by fire, when the previous individual left. And internally to our company, things were set up before I came on to where different lines of business use the system for different things, and they have their own abilities to make collectors, write scripts that use the API, etc. And they have been using the portal for ages.

 

So in a nutshell, I have no way that I know of to even be sure of what v1 or v2 scripts exist that people rely on. I can see all the tokens in use but I dont think the logs show me who is actually using them. So all I can do is communicate it. But there could be any number of scripts using the API that I’m unaware of. So I’m going to communicate, and of course any scripts directly made my my predecessor I think I have awareness of, and converting isnt hard.

 

But I dread the October Breakstorm that is coming. :)

 

Userlevel 4
Badge +5

I can see all the tokens in use but I dont think the logs show me who is actually using them.

Audit Logs will show the API access ID making the calls, but only if there is a change in the portal (adding/deleting/updating) or if the API call fails. If you know the ID, you can then find the associated user from Settings > Users & Roles > API Tokens.

Userlevel 7
Badge +17

@Michael Raymond is there a way we can run a report to show usage of v1, v2, and v3? One of the portal datasources? Something from Looker? Can that be built before the rug is yanked out from under us? That would give me something to work on because I can use the endpoint to search the audit log to find the id to figure out what the id is used for (assuming you’ve added descriptive descriptions to your tokens when they were generated).

Userlevel 4
Badge +5

@Stuart Weenig All great questions! Nothing that I’m aware of, but I can certainly relay this feedback.

Userlevel 4
Badge +4

For those using .NET / C#, the LogicMonitor.Api nuget package (maintained by us at Panoramic Data Limited) has now been completely converted to use the V3 API.  This is COMPLETELY FREE and licensed under MIT, so free (as in beer AND speech) for commercial use.

If you have any system integration requirements that you would like to make supportable, we also provide software development services at a reasonable price ;-)

Reply