crimson-falcon 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -27
- data/lib/crimson-falcon/configuration.rb +1 -1
- data/lib/crimson-falcon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6afe316bf6322ec5158a931338cba4f1736eaad52cb237226067a98bd536de4
|
4
|
+
data.tar.gz: 3d76c872bfe0c79b6e043c0e6d70f768fe004c6aa4283c6d54a44ed8f6383773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4c21cdf347f38f93d13ba29b160ef47dda59d3a216f6e69c938483651cb4129db5177d6ea8009dedabd9864482a244aa8225c37badc0e9c26216337b3a28a2
|
7
|
+
data.tar.gz: 1e7bbcb9ff9447561f4cc9fc62ac992623bbc465a5c20333f8d9dba360f71bce7a3e8f5e8cde263ac9d39357fe4e3e8367eaa661cbaf7255e5c3c7b45be462ff
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ gem install crimson-falcon
|
|
30
30
|
Add this to the Gemfile:
|
31
31
|
<!-- x-release-please-start-version -->
|
32
32
|
```ruby
|
33
|
-
gem 'crimson-falcon', '~> 0.4.
|
33
|
+
gem 'crimson-falcon', '~> 0.4.1'
|
34
34
|
```
|
35
35
|
<!-- x-release-please-end -->
|
36
36
|
### From Source to Gem: Building the Ruby Code
|
@@ -44,13 +44,13 @@ gem build crimson-falcon.gemspec
|
|
44
44
|
Then install the gem locally:
|
45
45
|
<!-- x-release-please-start-version -->
|
46
46
|
```shell
|
47
|
-
gem install ./crimson-falcon-0.4.
|
47
|
+
gem install ./crimson-falcon-0.4.1.gem
|
48
48
|
```
|
49
49
|
<!-- x-release-please-end -->
|
50
50
|
Finally, add this to the Gemfile:
|
51
51
|
<!-- x-release-please-start-version -->
|
52
52
|
```ruby
|
53
|
-
gem 'crimson-falcon', '~> 0.4.
|
53
|
+
gem 'crimson-falcon', '~> 0.4.1'
|
54
54
|
```
|
55
55
|
<!-- x-release-please-end -->
|
56
56
|
### Install from Git
|
@@ -64,6 +64,13 @@ If the Ruby gem is hosted at a git repository: <https://github.com/GIT_USER_ID/G
|
|
64
64
|
|
65
65
|
## Getting Started
|
66
66
|
|
67
|
+
### Samples
|
68
|
+
|
69
|
+
We have a collection of sample code that demonstrates how to use the Crimson Falcon SDK.
|
70
|
+
These samples are a great way to get started with the SDK. You can find the samples in the [samples](./samples) directory.
|
71
|
+
|
72
|
+
### Take Flight
|
73
|
+
|
67
74
|
Eager to take flight? Follow the [installation](#installation) process, and then launch into the following code:
|
68
75
|
|
69
76
|
```ruby
|
@@ -72,36 +79,20 @@ require 'crimson-falcon'
|
|
72
79
|
|
73
80
|
# Setup authorization
|
74
81
|
Falcon.configure do |config|
|
75
|
-
config.client_id = "
|
76
|
-
config.client_secret = "
|
77
|
-
config.cloud = "us-
|
82
|
+
config.client_id = ENV["FALCON_CLIENT_ID"]
|
83
|
+
config.client_secret = ENV["FALCON_CLIENT_SECRET"]
|
84
|
+
config.cloud = "us-2" # or "us-2", "eu-1", "us-gov1"
|
78
85
|
end
|
79
86
|
|
80
87
|
# Create a new API instance
|
81
|
-
api_instance = Falcon::
|
82
|
-
opts = {
|
83
|
-
# Integer | The starting point for the return, `0` implies the latest detection.
|
84
|
-
# The `offset` parameter assists in paginating results.
|
85
|
-
offset: 0,
|
86
|
-
# Integer | The maximum count of detections in this response (default: 100; max: 10000).
|
87
|
-
# Works in tandem with the `offset` for pagination.
|
88
|
-
limit: 25,
|
89
|
-
# String | Sort detections in `asc` (ascending) or `desc` (descending) order.
|
90
|
-
# Example: `status|asc` or `status|desc`.
|
91
|
-
sort: 'Sort_Criteria',
|
92
|
-
# String | Filter detections using a query in Falcon Query Language (FQL).
|
93
|
-
# An asterisk wildcard `*` includes all results. See API docs for more details.
|
94
|
-
filter: 'Filter_Criteria',
|
95
|
-
# String | Search all detection metadata for the provided string
|
96
|
-
q: 'Query_String'
|
97
|
-
}
|
88
|
+
api_instance = Falcon::SensorDownloadApi.new
|
98
89
|
|
99
90
|
begin
|
100
|
-
#
|
101
|
-
result = api_instance.
|
102
|
-
p result
|
91
|
+
# Get CCID to use with sensor installers
|
92
|
+
result = api_instance.get_sensor_installers_ccidby_query
|
93
|
+
p result.resources
|
103
94
|
rescue Falcon::ApiError => e
|
104
|
-
puts "
|
95
|
+
puts "Error when calling SensorDownloadApi->get_sensor_installers_ccidby_query: #{e}"
|
105
96
|
end
|
106
97
|
```
|
107
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crimson-falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CRWD Solution Architects
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -2626,7 +2626,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2626
2626
|
- !ruby/object:Gem::Version
|
2627
2627
|
version: '0'
|
2628
2628
|
requirements: []
|
2629
|
-
rubygems_version: 3.4.
|
2629
|
+
rubygems_version: 3.4.19
|
2630
2630
|
signing_key:
|
2631
2631
|
specification_version: 4
|
2632
2632
|
summary: CrowdStrike Falcon
|