jssapi package

Submodules

jssapi.cli module

Console script for jssapi.

jssapi.cph module

class jssapi.cph.ConfigProfileHelper(name, description, organization)[source]

Bases: object

add_payload(payload_type, content)[source]
add_restrictions_payload(restrictions)[source]
generate_profile(escape=False)[source]
payloads = []
profile_description = ''
profile_name = ''
profile_organization = ''
profile_uuid = 'c64a2a15-e4c9-4ff4-b715-1621fdd3a793'

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.decorators.aliased(aliased_class)[source]

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

delete(method='mobiledevices')[source]

Interact with DELETE 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

get(method='mobiledevices')[source]

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

post(method='mobiledevices', body='')[source]

Interact with POST methods of JSS API

put(method='mobiledevices', body='')[source]

Interact with PUT 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_auth(user='', pwd='')[source]

Provide login credentials

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

Module contents