Method: Jamf::Computer.inventory_collection_settings

Defined in:
lib/jamf/api/classic/api_objects/computer.rb

.inventory_collection_settings(api: nil, cnx: Jamf.cnx) ⇒ Hash

Display the current Computer Inventory Collection settings in the JSS. Currently this is read-only in ruby-jss, even tho the API allows updating.

Parameters:

Returns:

  • (Hash)

    the Computer Inventpry Collection Settings from the currently connected JSS.



291
292
293
294
# File 'lib/jamf/api/classic/api_objects/computer.rb', line 291

def self.inventory_collection_settings(api: nil, cnx: Jamf.cnx)
  cnx = api if api
  cnx.c_get(INV_COLLECTION_RSRC)[INV_COLLECTION_KEY]
end