netbox-community / netbox-healthcheck-plugin

Apache License 2.0
20 stars 7 forks source link

Add API Support #1

Open robertlynch3 opened 1 year ago

robertlynch3 commented 1 year ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Add the ability to pull healthcheck directly from the API endpoint

Describe alternatives you've considered None

Additional context None

sergey-kalikin-adjust commented 4 months ago

@robertlynch3 try https://netbox.local/plugins/netbox_healthcheck_plugin/healthcheck/?format=json

robertlynch3 commented 3 months ago

@sergey-kalikin-adjust that endpoint is behind Netbox's password, so you can't use the API token to get it.

llamafilm commented 2 weeks ago

I had the same request, but then I realized I can allow that endpoint by setting LOGIN_REQUIRED = False in configuration.py. For me this is safe because I run behind a secure reverse proxy.