SISPM1040-582-LRT API User Guide SISPM1040-582-LRT
Total Page:16
File Type:pdf, Size:1020Kb
Transition Networks SISPM1040-582-LRT API User Guide SISPM1040-582-LRT Unified API User Guide Contents 1. Login ............................................................................................................................................................... 3 2. Logout ............................................................................................................................................................ 4 3. Reboot ............................................................................................................................................................ 4 4. Get System Information ................................................................................................................................. 5 5. Set System Information .................................................................................................................................. 6 6. Get PoE Status ................................................................................................................................................ 7 7. Get PoE Config ................................................................................................................................................ 8 8. Set PoE Config ................................................................................................................................................ 9 9. Get Port Statistics ......................................................................................................................................... 11 10. Get Port Config ........................................................................................................................................... 13 11. Set Port Config ........................................................................................................................................... 14 12. Firmware Upgrade ..................................................................................................................................... 15 13. Get Firmware Upgrade Status .................................................................................................................... 15 14. Get Account Configuration......................................................................................................................... 16 15. Set Account Configuration ......................................................................................................................... 16 16. Get MAC Table Information ....................................................................................................................... 17 17. Save Configuration ..................................................................................................................................... 17 18. Get System Time ........................................................................................................................................ 18 19. Set System Time ......................................................................................................................................... 19 20. Get NTP Server ........................................................................................................................................... 22 21. Set NTP Server ............................................................................................................................................ 23 22. Get Syslog Server ....................................................................................................................................... 24 23. Set Syslog Server ........................................................................................................................................ 24 24. Get Vlan Config .......................................................................................................................................... 25 25. Set Vlan Config ........................................................................................................................................... 26 26. Get Mac Based Vlan Config ........................................................................................................................ 29 27. Get IP Address ............................................................................................................................................ 29 28. Set IP Address ............................................................................................................................................. 30 29. Get Mirror Config ....................................................................................................................................... 31 30. Set Mirror Config ........................................................................................................................................ 32 31. Cable Diagnostic ......................................................................................................................................... 33 32. Device List Table ......................................................................................................................................... 34 33. Get ACL Config ........................................................................................................................................... 36 34. Add ACL Config ........................................................................................................................................... 55 33826 Rev. C https://www.transition.com Page 1 of 117 Transition Networks SISPM1040-582-LRT API User Guide 35. Delete ACL Config ....................................................................................................................................... 97 36. Set SSL Key ................................................................................................................................................. 99 37. Get SSL Key Status ...................................................................................................................................... 99 38. Ping ........................................................................................................................................................... 100 39. Get Ping Status ......................................................................................................................................... 101 40. Traceroute ................................................................................................................................................ 102 41. Get Traceroute Status .............................................................................................................................. 103 42. Activate Config ......................................................................................................................................... 104 43. Get DI DO Config ...................................................................................................................................... 105 44. Set DI DO Config ....................................................................................................................................... 105 45. Get DI DO Status ...................................................................................................................................... 106 46. Set DO Relay ............................................................................................................................................. 107 47. Get SNMP Trap Config .............................................................................................................................. 108 48. Add SNMP Trap Config ............................................................................................................................. 109 49. Delete SNMP Trap Config ......................................................................................................................... 111 50. Get System Log ......................................................................................................................................... 112 51. Clear System Log ...................................................................................................................................... 112 52. Get SFP Port Detail ................................................................................................................................... 113 cURL Commands v 1.4.................................................................................................................................... 114 Record of Revisions ........................................................................................................................................ 117 33826 Rev. C https://www.transition.com Page 2 of 117 Transition Networks SISPM1040-582-LRT API User Guide 1. Login URL: /api/login Method: POST Request JSON: { "login": { "username" : "user123", "password" : "user123", "user_ip":"192.168.1.1", "sessid": "375118820" } } Response JSON: { "response":{ "status":"error", "message":"Wrong username or password!" } } Section: Name Data type Allowed / Value Default Value username String 1-31 alphanumeric password String 0-31 alphanumeric user_ip String <ip4 address> sessid String <cookie> 33826 Rev. C https://www.transition.com Page 3 of 117 Transition Networks SISPM1040-582-LRT API User Guide 2. Logout URL: /api/logout Method: POST Request JSON: