Use case — login-sessions

If a user is configured on the switch, login request must be posted to the switch for authentication. If user validation is successful, the switch returns a session id as a cookie that will be used for further requests.


Users are able to create a maximum of five REST sessions simultaneously.

WorkStation# curl --noproxy -X POST -d '{"userName":"test", "password":"test"}'
Response from the switch when user validation is successful:
"uri": "/rest/v1/login-sessions","cookie":