Lantronix EDS3000PS Command Reference - Page 46
File System Web API
View all Lantronix EDS3000PS manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 46 highlights
5: Configuration Using Web API ); request.send( " group=Interface&optionalGroupInstance=eth0&action=Renew " ); File System Web API The File System Web API is a RESTful cloud API that allows basic manipulation of file system nodes (files and directories). It is intended to support web-based file system access without the need of a browser, and as such can be used in scripts with HTTP programs such as cURL. Supported file system node operations are implemented via various HTTP request types. The File System Web API uses standard HTTP requests as well as HTTP extensions from the Web Distributed Authoring and Versioning (WebDAV) standard. Four principal HTTP requests are implemented by the API: GET, PUT, MKCOL, and DELETE. HTTP GET Used to read the contents of files and directories in the file system. URL: http:///fs/[node] Where node can be a file, in which case the file content is returned, or a directory, in which case an XML-formatted list of directory objects is returned. HTTP Response Codes: 200: Success 404: Node not found Example: # curl -s -u admin:PASSWORD http://192.168.0.1/fs/embedded ]> main 0 modem_emulation 0 monitor 0 ntp 0 EDS3000 Command Reference 46