setup new system using API
AnsweredI am confused how to set up a new system using the API.
Looking at the docs and wireshark, it appears I need /web/api/setupLocalSystem. But that seems to require authentication, and I have not set username or password yet, since the system is at factory settings.
I see some /web/api/cookieLogin action going on, and the algorithm for this includes:
digest = md5_hex(user_name + ":" + realm + ":" + password)
I assume user_name should be "admin".
What is password? Blank? So digest is
md5_hex(admin:VMS:)
?
Am I on the right track? Is there some easier way to initially setup a new system without going through the auth steps? If there is no password yet, why do I have to authenticate?
-
Hello Jim,
The default password is "admin", the username has to be "admin"
Here is a curl command for configuring a system.
curl -X POST --digest "http://admin:admin@localhost:7001/api/setupLocalSystem" -H "Content-Type: application/json" --data-binary @system_settings.json
Here is the content of the system_settings.json file
{
"password":"<new password>",
"systemName":"<a name of a system>",
"systemSettings":{
"statisticsAllowed": "false"
}
}0 -
Perfect, thanks!
0
Please sign in to leave a comment.
Comments
2 comments