All URIs are relative to https://api.us-2.crowdstrike.com
Method | HTTP request | Description |
---|---|---|
create_host_groups | POST /devices/entities/host-groups/v1 | Create Host Groups by specifying details about the group to create |
delete_host_groups | DELETE /devices/entities/host-groups/v1 | Delete a set of Host Groups by specifying their IDs |
get_host_groups | GET /devices/entities/host-groups/v1 | Retrieve a set of Host Groups by specifying their IDs |
perform_group_action | POST /devices/entities/host-group-actions/v1 | Perform the specified action on the Host Groups specified in the request |
query_combined_group_members | GET /devices/combined/host-group-members/v1 | Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria |
query_combined_host_groups | GET /devices/combined/host-groups/v1 | Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Groups which match the filter criteria |
query_group_members | GET /devices/queries/host-group-members/v1 | Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria |
query_host_groups | GET /devices/queries/host-groups/v1 | Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Group IDs which match the filter criteria |
update_host_groups | PATCH /devices/entities/host-groups/v1 | Update Host Groups by specifying the ID of the group and details to update |
create_host_groups(body)
Create Host Groups by specifying details about the group to create
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
body = Falcon::HostGroupsCreateGroupsReqV1.new({resources: [Falcon::HostGroupsCreateGroupReqV1.new({group_type: 'static', name: 'name_example'})]}) # HostGroupsCreateGroupsReqV1 |
begin
# Create Host Groups by specifying details about the group to create
result = api_instance.create_host_groups(body)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->create_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_host_groups_with_http_info(body)
begin
# Create Host Groups by specifying details about the group to create
data, status_code, headers = api_instance.create_host_groups_with_http_info(body)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->create_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | HostGroupsCreateGroupsReqV1 |
oauth2
- Content-Type: application/json
- Accept: application/json
delete_host_groups(ids)
Delete a set of Host Groups by specifying their IDs
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
ids = ['inner_example'] # Array<String> | The IDs of the Host Groups to delete
begin
# Delete a set of Host Groups by specifying their IDs
result = api_instance.delete_host_groups(ids)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->delete_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_host_groups_with_http_info(ids)
begin
# Delete a set of Host Groups by specifying their IDs
data, status_code, headers = api_instance.delete_host_groups_with_http_info(ids)
p status_code # => 2xx
p headers # => { ... }
p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->delete_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
ids | Array<String> | The IDs of the Host Groups to delete |
oauth2
- Content-Type: Not defined
- Accept: application/json
get_host_groups(ids)
Retrieve a set of Host Groups by specifying their IDs
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
ids = ['inner_example'] # Array<String> | The IDs of the Host Groups to return
begin
# Retrieve a set of Host Groups by specifying their IDs
result = api_instance.get_host_groups(ids)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->get_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_host_groups_with_http_info(ids)
begin
# Retrieve a set of Host Groups by specifying their IDs
data, status_code, headers = api_instance.get_host_groups_with_http_info(ids)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->get_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
ids | Array<String> | The IDs of the Host Groups to return |
oauth2
- Content-Type: Not defined
- Accept: application/json
perform_group_action(action_name, body, opts)
Perform the specified action on the Host Groups specified in the request
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
action_name = 'add-hosts' # String | The action to perform
body = Falcon::MsaEntityActionRequestV2.new({ids: ['ids_example']}) # MsaEntityActionRequestV2 |
opts = {
disable_hostname_check: true # Boolean | Bool to disable hostname check on add-member
}
begin
# Perform the specified action on the Host Groups specified in the request
result = api_instance.perform_group_action(action_name, body, opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->perform_group_action: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> perform_group_action_with_http_info(action_name, body, opts)
begin
# Perform the specified action on the Host Groups specified in the request
data, status_code, headers = api_instance.perform_group_action_with_http_info(action_name, body, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->perform_group_action_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
action_name | String | The action to perform | |
body | MsaEntityActionRequestV2 | ||
disable_hostname_check | Boolean | Bool to disable hostname check on add-member | [optional][default to false] |
oauth2
- Content-Type: application/json
- Accept: application/json
query_combined_group_members(opts)
Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
opts = {
id: 'id_example', # String | The ID of the Host Group to search for members of
filter: 'filter_example', # String | The filter expression that should be used to limit the results
offset: 56, # Integer | The offset to start retrieving records from
limit: 56, # Integer | The maximum records to return. [1-5000]
sort: 'sort_example' # String | The property to sort by
}
begin
# Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
result = api_instance.query_combined_group_members(opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_combined_group_members: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> query_combined_group_members_with_http_info(opts)
begin
# Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
data, status_code, headers = api_instance.query_combined_group_members_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsMembersRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_combined_group_members_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the Host Group to search for members of | [optional] |
filter | String | The filter expression that should be used to limit the results | [optional] |
offset | Integer | The offset to start retrieving records from | [optional] |
limit | Integer | The maximum records to return. [1-5000] | [optional] |
sort | String | The property to sort by | [optional] |
oauth2
- Content-Type: Not defined
- Accept: application/json
query_combined_host_groups(opts)
Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Groups which match the filter criteria
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
opts = {
filter: 'filter_example', # String | The filter expression that should be used to limit the results
offset: 56, # Integer | The offset to start retrieving records from
limit: 56, # Integer | The maximum records to return. [1-5000]
sort: 'created_by.asc' # String | The property to sort by
}
begin
# Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Groups which match the filter criteria
result = api_instance.query_combined_host_groups(opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_combined_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> query_combined_host_groups_with_http_info(opts)
begin
# Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Groups which match the filter criteria
data, status_code, headers = api_instance.query_combined_host_groups_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_combined_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
filter | String | The filter expression that should be used to limit the results | [optional] |
offset | Integer | The offset to start retrieving records from | [optional] |
limit | Integer | The maximum records to return. [1-5000] | [optional] |
sort | String | The property to sort by | [optional] |
oauth2
- Content-Type: Not defined
- Accept: application/json
query_group_members(opts)
Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
opts = {
id: 'id_example', # String | The ID of the Host Group to search for members of
filter: 'filter_example', # String | The filter expression that should be used to limit the results
offset: 56, # Integer | The offset to start retrieving records from
limit: 56, # Integer | The maximum records to return. [1-5000]
sort: 'sort_example' # String | The property to sort by
}
begin
# Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
result = api_instance.query_group_members(opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_group_members: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> query_group_members_with_http_info(opts)
begin
# Search for members of a Host Group in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
data, status_code, headers = api_instance.query_group_members_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_group_members_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the Host Group to search for members of | [optional] |
filter | String | The filter expression that should be used to limit the results | [optional] |
offset | Integer | The offset to start retrieving records from | [optional] |
limit | Integer | The maximum records to return. [1-5000] | [optional] |
sort | String | The property to sort by | [optional] |
oauth2
- Content-Type: Not defined
- Accept: application/json
query_host_groups(opts)
Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Group IDs which match the filter criteria
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
opts = {
filter: 'filter_example', # String | The filter expression that should be used to limit the results
offset: 56, # Integer | The offset to start retrieving records from
limit: 56, # Integer | The maximum records to return. [1-5000]
sort: 'created_by.asc' # String | The property to sort by
}
begin
# Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Group IDs which match the filter criteria
result = api_instance.query_host_groups(opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> query_host_groups_with_http_info(opts)
begin
# Search for Host Groups in your environment by providing an FQL filter and paging details. Returns a set of Host Group IDs which match the filter criteria
data, status_code, headers = api_instance.query_host_groups_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->query_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
filter | String | The filter expression that should be used to limit the results | [optional] |
offset | Integer | The offset to start retrieving records from | [optional] |
limit | Integer | The maximum records to return. [1-5000] | [optional] |
sort | String | The property to sort by | [optional] |
oauth2
- Content-Type: Not defined
- Accept: application/json
update_host_groups(body)
Update Host Groups by specifying the ID of the group and details to update
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::HostGroup.new
body = Falcon::HostGroupsUpdateGroupsReqV1.new({resources: [Falcon::HostGroupsUpdateGroupReqV1.new({id: 'id_example'})]}) # HostGroupsUpdateGroupsReqV1 |
begin
# Update Host Groups by specifying the ID of the group and details to update
result = api_instance.update_host_groups(body)
p result
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->update_host_groups: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_host_groups_with_http_info(body)
begin
# Update Host Groups by specifying the ID of the group and details to update
data, status_code, headers = api_instance.update_host_groups_with_http_info(body)
p status_code # => 2xx
p headers # => { ... }
p data # => <HostGroupsRespV1>
rescue Falcon::ApiError => e
puts "Error when calling HostGroup->update_host_groups_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | HostGroupsUpdateGroupsReqV1 |
oauth2
- Content-Type: application/json
- Accept: application/json