jssapi package¶
Submodules¶
jssapi.cli module¶
Console script for jssapi.
jssapi.cph module¶
jssapi.decorators module¶
-
class
jssapi.decorators.
alias
(*aliases)[source]¶ Bases:
object
Alias class that can be used as a decorator for making methods callable through other names (or “aliases”). Note: This decorator must be used inside an @aliased -decorated class. For example, if you want to make the method shout() be also callable as yell() and scream(), you can use alias like this:
@alias(‘yell’, ‘scream’) def shout(message):
# ….
jssapi.jssapi module¶
Main JSSApi module.
-
class
jssapi.jssapi.
JSSApi
(url='', head={'Accept': 'application/json'}, user='', pwd='', dbhost='', db='', dbuser='', dbpasswd='')[source]¶ Bases:
object
-
change
(method='mobiledevices', body='')¶ Interact with PUT methods of JSS API
-
create
(method='mobiledevices', body='')¶ Interact with POST methods of JSS API
-
edit
(method='mobiledevices', body='')¶ Interact with PUT methods of JSS API
-
find
(method='mobiledevices')¶ Interact with GET methods of JSS API
-
insert
(method='mobiledevices', body='')¶ Interact with POST methods of JSS API
-
modify
(method='mobiledevices', body='')¶ Interact with PUT methods of JSS API
-
new
(method='mobiledevices', body='')¶ Interact with POST methods of JSS API
-
remove
(method='mobiledevices')¶ Interact with DELETE methods of JSS API
-
retrieve
(method='mobiledevices')¶ Interact with GET methods of JSS API
-
set_db
(host=None, db='', user='', passwd='')[source]¶ Provide DB credentials if you want to directly interact with MySQL DB
-
update
(method='mobiledevices', body='')¶ Interact with PUT methods of JSS API
-