Dell N3200-ON Networking N-Series Switches RESTful API User Guide version 6.8. - Page 21
Response Example, Error Example, Returns an appropriate status message., browser
View all Dell N3200-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 21 highlights
Response Example Returns an appropriate status message. NOTE: For Internet browser requests, the SID value is returned as a cookie and is not returned as part of the following JSON data. { "SIDSSL" : rQAVUkzFbLUwhNvDHnfBIezOAETHpQFiGIddSDITQeSXuncbchCKO DaohTVYldhSLMVfRfYIjsh, "accessLevel" : 15, "status": { "response_code": 200, "msg": "OK", "more_info": "", "error_code": 0 } } Error Example curl -cacert cacert.pem -d "username=admin&password= badpassword" https://10.10.10.1:8080/open/v1/login curl -d "username=admin&password=badpassword" http://10.10.10.1:8080/open/v1/login browser: http://10.10.10.1:8080/open/v1/login?method=post&username= admin&password=badpassword Response Example { "status": { "response_code": 401, "msg": "Unauthorized", "more_info": "Invalid username or password.", "error_code": -26 } } Rest API Reference 21