I expected that adding a test rest api to the servcheck would be easy. But each of my devices works differently. I think I'm giving up. I'd have to frequently store names and passwords in a database, make some sort of wizard on top of curl to allow different ways of logging in:
I expected that adding a test rest api to the servcheck would be easy. But each of my devices works differently. I think I'm giving up. I'd have to frequently store names and passwords in a database, make some sort of wizard on top of curl to allow different ways of logging in:
curl --request POST \ --url https://:4443/c/router \
--header "content-type: application/json" \
--cookie-jar cookies.txt \
--data "{
"action": "AuthenticationManagement",
"method": "login",
"data": ["admin", null, false],
"type": "rpc",
"tid": 1}"
curl --noproxy "192.0.2.5" -k -X POST \ -c /tmp/auth_cookie -H 'Content-Type: multipart/form-data' \"https://192.0.2.5/rest/v1/login" \ -F 'username=test' -F 'password=test'
...