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.

NOTE:

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

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