Skip to content

Latest commit

 

History

History
1459 lines (1036 loc) · 44.8 KB

CustomIoa.md

File metadata and controls

1459 lines (1036 loc) · 44.8 KB

Falcon::CustomIoa

All URIs are relative to https://api.us-2.crowdstrike.com

Method HTTP request Description
create_rule POST /ioarules/entities/rules/v1 Create a rule within a rule group. Returns the rule.
create_rule_group_mixin0 POST /ioarules/entities/rule-groups/v1 Create a rule group for a platform with a name and an optional description. Returns the rule group.
delete_rule_groups_mixin0 DELETE /ioarules/entities/rule-groups/v1 Delete rule groups by ID.
delete_rules_0 DELETE /ioarules/entities/rules/v1 Delete rules from a rule group by ID.
get_patterns GET /ioarules/entities/pattern-severities/v1 Get pattern severities by ID.
get_platforms_mixin0 GET /ioarules/entities/platforms/v1 Get platforms by ID.
get_rule_groups_mixin0 GET /ioarules/entities/rule-groups/v1 Get rule groups by ID.
get_rule_types GET /ioarules/entities/rule-types/v1 Get rule types by ID.
get_rules_get POST /ioarules/entities/rules/GET/v1 Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`.
get_rules_mixin0 GET /ioarules/entities/rules/v1 Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`. The max number of IDs is constrained by URL size.
query_patterns GET /ioarules/queries/pattern-severities/v1 Get all pattern severity IDs.
query_platforms_mixin0 GET /ioarules/queries/platforms/v1 Get all platform IDs.
query_rule_groups_full GET /ioarules/queries/rule-groups-full/v1 Find all rule groups matching the query with optional filter.
query_rule_groups_mixin0 GET /ioarules/queries/rule-groups/v1 Finds all rule group IDs matching the query with optional filter.
query_rule_types GET /ioarules/queries/rule-types/v1 Get all rule type IDs.
query_rules_mixin0 GET /ioarules/queries/rules/v1 Finds all rule IDs matching the query with optional filter.
update_rule_group_mixin0 PATCH /ioarules/entities/rule-groups/v1 Update a rule group. The following properties can be modified: name, description, enabled.
update_rules_0 PATCH /ioarules/entities/rules/v1 Update rules within a rule group. Return the updated rules.
update_rules_v2 PATCH /ioarules/entities/rules/v2 Update name, description, enabled or field_values for individual rules within a rule group. The v1 flavor of this call requires the caller to specify the complete state for all the rules in the rule group, instead the v2 flavor will accept the subset of rules in the rule group and apply the attribute updates to the subset of rules in the rule group.Return the updated rules.
validate POST /ioarules/entities/rules/validate/v1 Validates field values and checks for matches if a test string is provided.

create_rule

create_rule(body)

Create a rule within a rule group. Returns the rule.

Examples

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::CustomIoa.new
body = Falcon::ApiRuleCreateV1.new({comment: 'comment_example', description: 'description_example', disposition_id: 37, field_values: [Falcon::DomainFieldValue.new({name: 'name_example', type: 'type_example', value: 'value_example', values: [Falcon::DomainValueItem.new({label: 'label_example', value: 'value_example'})]})], name: 'name_example', pattern_severity: 'pattern_severity_example', rulegroup_id: 'rulegroup_id_example', ruletype_id: 'ruletype_id_example'}) # ApiRuleCreateV1 | 

begin
  # Create a rule within a rule group. Returns the rule.
  result = api_instance.create_rule(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->create_rule: #{e}"
end

Using the create_rule_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> create_rule_with_http_info(body)

begin
  # Create a rule within a rule group. Returns the rule.
  data, status_code, headers = api_instance.create_rule_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->create_rule_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRuleCreateV1

Return type

ApiRulesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

create_rule_group_mixin0

create_rule_group_mixin0(body)

Create a rule group for a platform with a name and an optional description. Returns the rule group.

Examples

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::CustomIoa.new
body = Falcon::ApiRuleGroupCreateRequestV1.new({comment: 'comment_example', description: 'description_example', name: 'name_example', platform: 'platform_example'}) # ApiRuleGroupCreateRequestV1 | 

begin
  # Create a rule group for a platform with a name and an optional description. Returns the rule group.
  result = api_instance.create_rule_group_mixin0(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->create_rule_group_mixin0: #{e}"
end

Using the create_rule_group_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> create_rule_group_mixin0_with_http_info(body)

begin
  # Create a rule group for a platform with a name and an optional description. Returns the rule group.
  data, status_code, headers = api_instance.create_rule_group_mixin0_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRuleGroupsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->create_rule_group_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRuleGroupCreateRequestV1

Return type

ApiRuleGroupsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

delete_rule_groups_mixin0

delete_rule_groups_mixin0(ids, opts)

Delete rule groups by ID.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities
opts = {
  comment: 'comment_example' # String | Explains why the entity is being deleted
}

begin
  # Delete rule groups by ID.
  result = api_instance.delete_rule_groups_mixin0(ids, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->delete_rule_groups_mixin0: #{e}"
end

Using the delete_rule_groups_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> delete_rule_groups_mixin0_with_http_info(ids, opts)

begin
  # Delete rule groups by ID.
  data, status_code, headers = api_instance.delete_rule_groups_mixin0_with_http_info(ids, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaReplyMetaOnly>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->delete_rule_groups_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities
comment String Explains why the entity is being deleted [optional]

Return type

MsaReplyMetaOnly

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

delete_rules_0

delete_rules_0(rule_group_id, ids, opts)

Delete rules from a rule group by ID.

Examples

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::CustomIoa.new
rule_group_id = 'rule_group_id_example' # String | The parent rule group
ids = ['inner_example'] # Array<String> | The IDs of the entities
opts = {
  comment: 'comment_example' # String | Explains why the entity is being deleted
}

begin
  # Delete rules from a rule group by ID.
  result = api_instance.delete_rules_0(rule_group_id, ids, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->delete_rules_0: #{e}"
end

Using the delete_rules_0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> delete_rules_0_with_http_info(rule_group_id, ids, opts)

begin
  # Delete rules from a rule group by ID.
  data, status_code, headers = api_instance.delete_rules_0_with_http_info(rule_group_id, ids, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaReplyMetaOnly>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->delete_rules_0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
rule_group_id String The parent rule group
ids Array<String> The IDs of the entities
comment String Explains why the entity is being deleted [optional]

Return type

MsaReplyMetaOnly

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_patterns

get_patterns(ids)

Get pattern severities by ID.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities

begin
  # Get pattern severities by ID.
  result = api_instance.get_patterns(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_patterns: #{e}"
end

Using the get_patterns_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_patterns_with_http_info(ids)

begin
  # Get pattern severities by ID.
  data, status_code, headers = api_instance.get_patterns_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiPatternsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_patterns_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities

Return type

ApiPatternsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_platforms_mixin0

get_platforms_mixin0(ids)

Get platforms by ID.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities

begin
  # Get platforms by ID.
  result = api_instance.get_platforms_mixin0(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_platforms_mixin0: #{e}"
end

Using the get_platforms_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_platforms_mixin0_with_http_info(ids)

begin
  # Get platforms by ID.
  data, status_code, headers = api_instance.get_platforms_mixin0_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiPlatformsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_platforms_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities

Return type

ApiPlatformsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_rule_groups_mixin0

get_rule_groups_mixin0(ids)

Get rule groups by ID.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities

begin
  # Get rule groups by ID.
  result = api_instance.get_rule_groups_mixin0(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rule_groups_mixin0: #{e}"
end

Using the get_rule_groups_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_rule_groups_mixin0_with_http_info(ids)

begin
  # Get rule groups by ID.
  data, status_code, headers = api_instance.get_rule_groups_mixin0_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRuleGroupsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rule_groups_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities

Return type

ApiRuleGroupsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_rule_types

get_rule_types(ids)

Get rule types by ID.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities

begin
  # Get rule types by ID.
  result = api_instance.get_rule_types(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rule_types: #{e}"
end

Using the get_rule_types_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_rule_types_with_http_info(ids)

begin
  # Get rule types by ID.
  data, status_code, headers = api_instance.get_rule_types_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRuleTypesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rule_types_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities

Return type

ApiRuleTypesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_rules_get

get_rules_get(body)

Get rules by ID and optionally with cid and/or version in the following format: [cid:]ID[:version].

Examples

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::CustomIoa.new
body = Falcon::ApiRulesGetRequestV1.new({ids: ['ids_example']}) # ApiRulesGetRequestV1 | The \"ids\" field contains a list of the rules to retrieve.

begin
  # Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`.
  result = api_instance.get_rules_get(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rules_get: #{e}"
end

Using the get_rules_get_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_rules_get_with_http_info(body)

begin
  # Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`.
  data, status_code, headers = api_instance.get_rules_get_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rules_get_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRulesGetRequestV1 The &quot;ids&quot; field contains a list of the rules to retrieve.

Return type

ApiRulesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

get_rules_mixin0

get_rules_mixin0(ids)

Get rules by ID and optionally with cid and/or version in the following format: [cid:]ID[:version]. The max number of IDs is constrained by URL size.

Examples

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::CustomIoa.new
ids = ['inner_example'] # Array<String> | The IDs of the entities

begin
  # Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`. The max number of IDs is constrained by URL size.
  result = api_instance.get_rules_mixin0(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rules_mixin0: #{e}"
end

Using the get_rules_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_rules_mixin0_with_http_info(ids)

begin
  # Get rules by ID and optionally with cid and/or version in the following format: `[cid:]ID[:version]`. The max number of IDs is constrained by URL size.
  data, status_code, headers = api_instance.get_rules_mixin0_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->get_rules_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the entities

Return type

ApiRulesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_patterns

query_patterns(opts)

Get all pattern severity IDs.

Examples

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::CustomIoa.new
opts = {
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Get all pattern severity IDs.
  result = api_instance.query_patterns(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_patterns: #{e}"
end

Using the query_patterns_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_patterns_with_http_info(opts)

begin
  # Get all pattern severity IDs.
  data, status_code, headers = api_instance.query_patterns_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_patterns_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

MsaQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_platforms_mixin0

query_platforms_mixin0(opts)

Get all platform IDs.

Examples

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::CustomIoa.new
opts = {
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Get all platform IDs.
  result = api_instance.query_platforms_mixin0(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_platforms_mixin0: #{e}"
end

Using the query_platforms_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_platforms_mixin0_with_http_info(opts)

begin
  # Get all platform IDs.
  data, status_code, headers = api_instance.query_platforms_mixin0_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_platforms_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

MsaQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_rule_groups_full

query_rule_groups_full(opts)

Find all rule groups matching the query with optional filter.

Examples

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::CustomIoa.new
opts = {
  sort: 'created_by', # String | Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name}
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'.
  q: 'q_example', # String | Match query criteria, which includes all the filter string fields
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Find all rule groups matching the query with optional filter.
  result = api_instance.query_rule_groups_full(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_groups_full: #{e}"
end

Using the query_rule_groups_full_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_rule_groups_full_with_http_info(opts)

begin
  # Find all rule groups matching the query with optional filter.
  data, status_code, headers = api_instance.query_rule_groups_full_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRuleGroupsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_groups_full_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
sort String Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name} [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'. [optional]
q String Match query criteria, which includes all the filter string fields [optional]
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

ApiRuleGroupsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_rule_groups_mixin0

query_rule_groups_mixin0(opts)

Finds all rule group IDs matching the query with optional filter.

Examples

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::CustomIoa.new
opts = {
  sort: 'created_by', # String | Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name}
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'.
  q: 'q_example', # String | Match query criteria, which includes all the filter string fields
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Finds all rule group IDs matching the query with optional filter.
  result = api_instance.query_rule_groups_mixin0(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_groups_mixin0: #{e}"
end

Using the query_rule_groups_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_rule_groups_mixin0_with_http_info(opts)

begin
  # Finds all rule group IDs matching the query with optional filter.
  data, status_code, headers = api_instance.query_rule_groups_mixin0_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_groups_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
sort String Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name} [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'. [optional]
q String Match query criteria, which includes all the filter string fields [optional]
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

MsaQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_rule_types

query_rule_types(opts)

Get all rule type IDs.

Examples

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::CustomIoa.new
opts = {
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Get all rule type IDs.
  result = api_instance.query_rule_types(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_types: #{e}"
end

Using the query_rule_types_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_rule_types_with_http_info(opts)

begin
  # Get all rule type IDs.
  data, status_code, headers = api_instance.query_rule_types_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rule_types_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

MsaQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

query_rules_mixin0

query_rules_mixin0(opts)

Finds all rule IDs matching the query with optional filter.

Examples

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::CustomIoa.new
opts = {
  sort: 'rules.created_by', # String | Possible order by fields: {rules.created_by, rules.created_on, rules.current_version.action_label, rules.current_version.description, rules.current_version.modified_by, rules.current_version.modified_on, rules.current_version.name, rules.current_version.pattern_severity, rules.enabled, rules.ruletype_name}
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'.
  q: 'q_example', # String | Match query criteria, which includes all the filter string fields
  offset: 'offset_example', # String | Starting index of overall result set from which to return IDs
  limit: 56 # Integer | Number of IDs to return
}

begin
  # Finds all rule IDs matching the query with optional filter.
  result = api_instance.query_rules_mixin0(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rules_mixin0: #{e}"
end

Using the query_rules_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> query_rules_mixin0_with_http_info(opts)

begin
  # Finds all rule IDs matching the query with optional filter.
  data, status_code, headers = api_instance.query_rules_mixin0_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <MsaQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->query_rules_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
sort String Possible order by fields: {rules.created_by, rules.created_on, rules.current_version.action_label, rules.current_version.description, rules.current_version.modified_by, rules.current_version.modified_on, rules.current_version.name, rules.current_version.pattern_severity, rules.enabled, rules.ruletype_name} [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: [enabled platform name description rules.action_label rules.name rules.description rules.pattern_severity rules.ruletype_name rules.enabled]. Filter range criteria: created_on, modified_on; use any common date format, such as '2010-05-15T14:55:21.892315096Z'. [optional]
q String Match query criteria, which includes all the filter string fields [optional]
offset String Starting index of overall result set from which to return IDs [optional]
limit Integer Number of IDs to return [optional]

Return type

MsaQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

update_rule_group_mixin0

update_rule_group_mixin0(body)

Update a rule group. The following properties can be modified: name, description, enabled.

Examples

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::CustomIoa.new
body = Falcon::ApiRuleGroupModifyRequestV1.new({comment: 'comment_example', description: 'description_example', enabled: false, id: 'id_example', name: 'name_example', rulegroup_version: 3.56}) # ApiRuleGroupModifyRequestV1 | 

begin
  # Update a rule group. The following properties can be modified: name, description, enabled.
  result = api_instance.update_rule_group_mixin0(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rule_group_mixin0: #{e}"
end

Using the update_rule_group_mixin0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> update_rule_group_mixin0_with_http_info(body)

begin
  # Update a rule group. The following properties can be modified: name, description, enabled.
  data, status_code, headers = api_instance.update_rule_group_mixin0_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRuleGroupsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rule_group_mixin0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRuleGroupModifyRequestV1

Return type

ApiRuleGroupsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

update_rules_0

update_rules_0(body)

Update rules within a rule group. Return the updated rules.

Examples

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::CustomIoa.new
body = Falcon::ApiRuleUpdatesRequestV1.new({comment: 'comment_example', rule_updates: [Falcon::ApiRuleUpdateV1.new({description: 'description_example', disposition_id: 37, enabled: false, field_values: [Falcon::DomainFieldValue.new({name: 'name_example', type: 'type_example', value: 'value_example', values: [Falcon::DomainValueItem.new({label: 'label_example', value: 'value_example'})]})], instance_id: 'instance_id_example', name: 'name_example', pattern_severity: 'pattern_severity_example', rulegroup_version: 3.56})], rulegroup_id: 'rulegroup_id_example', rulegroup_version: 3.56}) # ApiRuleUpdatesRequestV1 | 

begin
  # Update rules within a rule group. Return the updated rules.
  result = api_instance.update_rules_0(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rules_0: #{e}"
end

Using the update_rules_0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> update_rules_0_with_http_info(body)

begin
  # Update rules within a rule group. Return the updated rules.
  data, status_code, headers = api_instance.update_rules_0_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rules_0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRuleUpdatesRequestV1

Return type

ApiRulesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

update_rules_v2

update_rules_v2(body)

Update name, description, enabled or field_values for individual rules within a rule group. The v1 flavor of this call requires the caller to specify the complete state for all the rules in the rule group, instead the v2 flavor will accept the subset of rules in the rule group and apply the attribute updates to the subset of rules in the rule group.Return the updated rules.

Examples

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::CustomIoa.new
body = Falcon::ApiRuleUpdatesRequestV2.new({comment: 'comment_example', rule_updates: [Falcon::ApiRuleUpdateV2.new({description: 'description_example', disposition_id: 37, enabled: false, field_values: [Falcon::DomainFieldValue.new({name: 'name_example', type: 'type_example', value: 'value_example', values: [Falcon::DomainValueItem.new({label: 'label_example', value: 'value_example'})]})], instance_id: 'instance_id_example', name: 'name_example', pattern_severity: 'pattern_severity_example', rulegroup_version: 3.56})], rulegroup_id: 'rulegroup_id_example', rulegroup_version: 3.56}) # ApiRuleUpdatesRequestV2 | 

begin
  # Update name, description, enabled or field_values for individual rules within a rule group. The v1 flavor of this call requires the caller to specify the complete state for all the rules in the rule group, instead the v2 flavor will accept the subset of rules in the rule group and apply the attribute updates to the subset of rules in the rule group.Return the updated rules.
  result = api_instance.update_rules_v2(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rules_v2: #{e}"
end

Using the update_rules_v2_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> update_rules_v2_with_http_info(body)

begin
  # Update name, description, enabled or field_values for individual rules within a rule group. The v1 flavor of this call requires the caller to specify the complete state for all the rules in the rule group, instead the v2 flavor will accept the subset of rules in the rule group and apply the attribute updates to the subset of rules in the rule group.Return the updated rules.
  data, status_code, headers = api_instance.update_rules_v2_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->update_rules_v2_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiRuleUpdatesRequestV2

Return type

ApiRulesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

validate

validate(body)

Validates field values and checks for matches if a test string is provided.

Examples

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::CustomIoa.new
body = Falcon::ApiValidationRequestV1.new({fields: [Falcon::ApiValidationRequestFieldV1.new({name: 'name_example', test_data: 'test_data_example', type: 'type_example', values: [Falcon::DomainValueItem.new({label: 'label_example', value: 'value_example'})]})]}) # ApiValidationRequestV1 | 

begin
  # Validates field values and checks for matches if a test string is provided.
  result = api_instance.validate(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->validate: #{e}"
end

Using the validate_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> validate_with_http_info(body)

begin
  # Validates field values and checks for matches if a test string is provided.
  data, status_code, headers = api_instance.validate_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <ApiValidationResponseV1>
rescue Falcon::ApiError => e
  puts "Error when calling CustomIoa->validate_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiValidationRequestV1

Return type

ApiValidationResponseV1

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json