Toggle Scheduler via API? #395
Replies: 5 comments 4 replies
-
Should be /api/app/update_master_state { "enabled": true} or false to disable |
Beta Was this translation helpful? Give feedback.
-
Can you point me to the section of code that handles this? We are having a hard time finding any reference to update_manager_state in the source. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@jhuckaby @mikeTWC1984 |
Beta Was this translation helpful? Give feedback.
-
There is no specific api for that, but as a work around you can use login. It should return "app" object which would contain info abut state. E.g. curl -X POST -H "Content-Type: application/json" -d '{"username":"admin", "password":"admin"}' http://localhost:3012/api/user/login | jq '.state' But I agree this would be useful to have some "healthcheck" endpoint with such info. |
Beta Was this translation helpful? Give feedback.
-
Please don't use the user login API for this purpose, as it creates a new session every time. I added new APIs in v0.9.23 to address this:
|
Beta Was this translation helpful? Give feedback.
-
Hi! When setting up an API Key, I see "Toggle Scheduler" as a privilege option. But I can't see anything in the docs or the code about how to perform this API call. We would really love to be able to toggle it off during our scale-up and scale-down events automatically. Can you point me in the right direction for that?
Thanks!
Tony
Beta Was this translation helpful? Give feedback.
All reactions