Skip to content

Working with Record Classes

James Reynolds edited this page Jan 3, 2023 · 4 revisions

TODO

This is old documentation and a lot has changed since it was written! There is a lot more to add here.

Categories

Output All Categories

Here is an example of how to output all the categories from your Jamf Pro server:

from jamf.category import Categories
allcategories = Categories()
allcategories.names()
allcategories.ids()
allcategories.categoryWithName("Utilities")
allcategories.categoryWithId(141)

for item in allcategories:
    repr(item)

category = Categories().find("Utilities")
repr(category)
category = Categories().find(141)
repr(category)
Clone this wiki locally