mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Add get_tautulli_info API command
This commit is contained in:
parent
de8fa32557
commit
1eb58ba864
1 changed files with 31 additions and 0 deletions
|
@ -6300,6 +6300,37 @@ class WebInterface(object):
|
||||||
return json.dumps(API2()._api_responds(result_type='error',
|
return json.dumps(API2()._api_responds(result_type='error',
|
||||||
msg='Please use the /api/v2 endpoint.')).encode('utf-8')
|
msg='Please use the /api/v2 endpoint.')).encode('utf-8')
|
||||||
|
|
||||||
|
@cherrypy.expose
|
||||||
|
@cherrypy.tools.json_out()
|
||||||
|
@requireAuth(member_of("admin"))
|
||||||
|
@addtoapi()
|
||||||
|
def get_tautulli_info(self, **kwargs):
|
||||||
|
""" Get info about the Tautulli server.
|
||||||
|
|
||||||
|
```
|
||||||
|
Required parameters:
|
||||||
|
None
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
None
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
json:
|
||||||
|
{"tautulli_install_type": "git",
|
||||||
|
"tautulli_version": "v2.8.1",
|
||||||
|
"tautulli_branch": "master",
|
||||||
|
"tautulli_commit": "2410eb33805aaac4bd1c5dad0f71e4f15afaf742",
|
||||||
|
"tautulli_platform": "Windows",
|
||||||
|
"tautulli_platform_release": "10",
|
||||||
|
"tautulli_platform_version": "10.0.19043",
|
||||||
|
"tautulli_platform_linux_distro": "",
|
||||||
|
"tautulli_platform_device_name": "Winterfell-Server",
|
||||||
|
"tautulli_python_version": "3.10.0"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
return plexpy.get_tautulli_info()
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
@requireAuth(member_of("admin"))
|
@requireAuth(member_of("admin"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue