Method: JSS::Computer#management_data

Defined in:
lib/jss/api_object/computer.rb

#management_data(subset: nil, only: nil) ⇒ Object

The ‘computer management’ data for this computer

NOTE: the data isn’t cached locally, and the API is queried every time

Raises:

See Also:

  • for details


946
947
948
949
# File 'lib/jss/api_object/computer.rb', line 946

def management_data(subset: nil, only: nil)
  raise JSS::NoSuchItemError, 'Computer not yet saved in the JSS' unless @in_jss
  JSS::Computer.management_data @id, subset: subset, only: only, api: @api
end