-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.rb
26 lines (22 loc) · 674 Bytes
/
test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "crimson-falcon"
Falcon.configure do |config|
config.client_id = "XXXX"
config.client_secret = "XXXX"
# config.cloud = 'us-2'
# config.debugging = true
end
# Create new api instance of Falcon::SensorUpdatePoliciesApi
api_instance = Falcon::SensorUpdatePoliciesApi.new
opts = {
platform: "windows",
}
begin
# Get sensor update policy settings by platform
result = api_instance.query_combined_sensor_update_builds(opts)
result.resources.each do |resource|
puts resource.sensor_version
end
rescue Falcon::ApiError => e
puts "Exception when calling SensorUpdatePoliciesApi->query_combined_sensor_update_builds: #{e}"
end
# rubocop:enable all