Class: Kandji::Devices
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_missing ⇒ Object
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_enabled ⇒ Object
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
|