Difference between revisions of "The json information API"

From BubbaWiki
Jump to navigation Jump to search
(Links added for immediate testing of the JSON-API by the reader.)
Line 2: Line 2:
<pre>http://b3/admin/ajax_status/?
<pre>http://b3/admin/ajax_status/?
..where&nbsp;? can be:
..where&nbsp;? can be:
uptime
[http://b3/admin/ajax_status/uptime uptime]
hardware
hardware
version
version
Line 12: Line 12:
free_space (gives free space for home and system partitions, respectively, in bytes)
free_space (gives free space for home and system partitions, respectively, in bytes)
</pre>  
</pre>  
All of these are available with user level authentication ('admin' not required).
All of these are available with user level &nbsp;authentication ('admin' not required).

Revision as of 15:19, 4 June 2012

There is a json-based information interface from where applications (such as the firefox "bubbamon" tool) can get information automatically.
This is valid from B3 version 2.4.1 and onwards.

http://b3/admin/ajax_status/?
..where ? can be:
[http://b3/admin/ajax_status/uptime uptime]
hardware
version
printers
disks (note: the 'size' field is in 512 Byte blocks)
vgs
mds
fstab
free_space (gives free space for home and system partitions, respectively, in bytes)

All of these are available with user level  authentication ('admin' not required).