Class: Kandji::Devices

Inherits:
Client
  • Object
show all
Defined in:
lib/kandji/devices.rb

Constant Summary

Constants inherited from Client

Client::API_VERSION

Class Method Summary collapse

Methods inherited from Client

build_url, get, headers, paginated_cursor_get, paginated_get

Class Method Details

.all(params = {}) ⇒ Object



5
6
7
# File 'lib/kandji/devices.rb', line 5

def self.all(params = {})
  paginated_get("devices", params)
end

.find(id) ⇒ Object



23
24
25
# File 'lib/kandji/devices.rb', line 23

def self.find(id)
  get("devices/#{id}")
end

.where_filevault_recovery_key_missingObject



16
17
18
19
20
21
# File 'lib/kandji/devices.rb', line 16

def self.where_filevault_recovery_key_missing
  filter = { key_escrowed: { eq: false } }
  params = { filter: filter.to_json }

  paginated_get("prism/filevault", params)
end

.where_user_activation_lock_enabledObject



9
10
11
12
13
14
# File 'lib/kandji/devices.rb', line 9

def self.where_user_activation_lock_enabled
  filter = { user_activation_lock_status: { eq: true } }
  params = { filter: filter.to_json }

  paginated_get("prism/activation_lock", params)
end