Feature Requests
Completed :latest

REST API authentication

Is there a way to generate a long lasting API token so that we can use the internal API of PatchMon from other applications and services?

4 Comments

Posting anonymously

9technologygroup·6 months ago

API platform has been implemented.

Posting anonymously

Feinstone·9 months ago

The documentation has what you're looking for. However, I'm getting a blank screen.

https://docs.patchmon.net/books/patchmon-application-documentation/page/patchmon-environment-variables-reference

Posting anonymously

krestaino·9 months ago

Yes, the backend API that the frontend is using.

My immediate desire is to get the currently deployed version of PatchMon so that Argus can let me know when there's a new version of PatchMon available. I'm currently using the following endpoint, but without a proper API token, I need to update it every time the token expires.

http://patchmon/api/v1/version/current

Longer term, I'd like to be able to simply query PatchMon for hosts I've added to PatchMon for a dashboard I'm developing right now. I think in general, just allowing users to use your internal API is a really nice addition to allow them to extend functionality for whatever weird use case they may have.

Posting anonymously

9technologygroup·9 months ago

Hi

Thanks for the message here :)

Are you referring to the backend api that's used by the PatchMon frontend?

Would you be able to also give some examples of how you're going to use it so I can think of the best way to implement something that will cater for those who want to use it in a similar way.

Thanks
iby___

Posting anonymously