Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kshlm/gluster-rest
A server providing a RESTful web api for access to Gluster management daemon
https://github.com/kshlm/gluster-rest
Last synced: about 8 hours ago
JSON representation
A server providing a RESTful web api for access to Gluster management daemon
- Host: GitHub
- URL: https://github.com/kshlm/gluster-rest
- Owner: kshlm
- Created: 2013-02-07T13:10:15.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-06T11:26:51.000Z (almost 12 years ago)
- Last Synced: 2024-11-19T08:50:18.661Z (2 months ago)
- Language: Go
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gluster-rest
============A server providing a RESTful web api for access to the Gluster management
daemon.Presently it is just a quick hack written in go, which given the gluster cli
arguments with a '/' as the seperator, runs the gluster cli with the arguments
and returns the xml output. There is no input validation or proper error
reporting as yet, but these will come soon.The GoRest framework [1] is used to build the server.
To install and test, run `# go get github.com/kshlm/gluster-rest`
This will download, compile and install gluster-rest and GoRest in your
`$GOPATH`.Run `$GOPATH/bin/gluster-rest` as root, to start the server.
The base URI for requests will be `http://localhost:7331/gluster`To get the list of volumes, you can do a GET request on
`http://localhost:7331/gluster/volume/list`
This will return an xml document containing the list of volumes in the cluster.To get information regarding a volume do a GET request on
`http://localhost:7331/gluster/volume/info/`
This will return an xml document containing information on the given volume.[1]: https://code.google.com/p/gorest/ "GoRest"