Skip to content

Latest commit

 

History

History
2445 lines (1746 loc) · 87.4 KB

FirewallManagementApi.md

File metadata and controls

2445 lines (1746 loc) · 87.4 KB

Falcon::FirewallManagementApi

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

Method HTTP request Description
aggregate_events POST /fwmgr/aggregates/events/GET/v1 Aggregate events for customer
aggregate_policy_rules POST /fwmgr/aggregates/policy-rules/GET/v1 Aggregate rules within a policy for customer
aggregate_rule_groups POST /fwmgr/aggregates/rule-groups/GET/v1 Aggregate rule groups for customer
aggregate_rules POST /fwmgr/aggregates/rules/GET/v1 Aggregate rules for customer
create_network_locations POST /fwmgr/entities/network-locations/v1 Create new network locations provided, and return the ID.
create_rule_group POST /fwmgr/entities/rule-groups/v1 Create new rule group on a platform for a customer with a name and description, and return the ID
create_rule_group_validation POST /fwmgr/entities/rule-groups/validation/v1 Validates the request of creating a new rule group on a platform for a customer with a name and description
delete_network_locations DELETE /fwmgr/entities/network-locations/v1 Delete network location entities by ID.
delete_rule_groups DELETE /fwmgr/entities/rule-groups/v1 Delete rule group entities by ID
get_events GET /fwmgr/entities/events/v1 Get events entities by ID and optionally version
get_firewall_fields GET /fwmgr/entities/firewall-fields/v1 Get the firewall field specifications by ID
get_network_locations GET /fwmgr/entities/network-locations/v1 Get a summary of network locations entities by ID
get_network_locations_details GET /fwmgr/entities/network-locations-details/v1 Get network locations entities by ID
get_platforms GET /fwmgr/entities/platforms/v1 Get platforms by ID, e.g., windows or mac or droid
get_policy_containers GET /fwmgr/entities/policies/v1 Get policy container entities by policy ID
get_rule_groups GET /fwmgr/entities/rule-groups/v1 Get rule group entities by ID. These groups do not contain their rule entites, just the rule IDs in precedence order.
get_rules GET /fwmgr/entities/rules/v1 Get rule entities by ID (64-bit unsigned int as decimal string) or Family ID (32-character hexadecimal string)
query_events GET /fwmgr/queries/events/v1 Find all event IDs matching the query with filter
query_firewall_fields GET /fwmgr/queries/firewall-fields/v1 Get the firewall field specification IDs for the provided platform
query_network_locations GET /fwmgr/queries/network-locations/v1 Get a list of network location IDs
query_platforms GET /fwmgr/queries/platforms/v1 Get the list of platform names
query_policy_rules GET /fwmgr/queries/policy-rules/v1 Find all firewall rule IDs matching the query with filter, and return them in precedence order
query_rule_groups GET /fwmgr/queries/rule-groups/v1 Find all rule group IDs matching the query with filter
query_rules GET /fwmgr/queries/rules/v1 Find all rule IDs matching the query with filter
update_network_locations PATCH /fwmgr/entities/network-locations/v1 Updates the network locations provided, and return the ID.
update_network_locations_metadata POST /fwmgr/entities/network-locations-metadata/v1 Updates the network locations metadata such as polling_intervals for the cid
update_network_locations_precedence POST /fwmgr/entities/network-locations-precedence/v1 Updates the network locations precedence according to the list of ids provided.
update_policy_container PUT /fwmgr/entities/policies/v2 Update an identified policy container, including local logging functionality.
update_policy_container_v1 PUT /fwmgr/entities/policies/v1 Update an identified policy container. WARNING: This endpoint is deprecated in favor of v2, using this endpoint could disable your local logging setting.
update_rule_group PATCH /fwmgr/entities/rule-groups/v1 Update name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
update_rule_group_validation PATCH /fwmgr/entities/rule-groups/validation/v1 Validates the request of updating name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
upsert_network_locations PUT /fwmgr/entities/network-locations/v1 Updates the network locations provided, and return the ID.
validate_filepath_pattern POST /fwmgr/entities/rules/validate-filepath/v1 Validates that the test pattern matches the executable filepath glob pattern.

aggregate_events

aggregate_events(body)

Aggregate events for customer

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::FirewallManagementApi.new
body = [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [], time_zone: 'time_zone_example', type: 'type_example'})], time_zone: 'time_zone_example', type: 'type_example'})] # Array<FwmgrMsaAggregateQueryRequest> | Query criteria and settings

begin
  # Aggregate events for customer
  result = api_instance.aggregate_events(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_events: #{e}"
end

Using the aggregate_events_with_http_info variant

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

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

begin
  # Aggregate events for customer
  data, status_code, headers = api_instance.aggregate_events_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiAggregatesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_events_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body Array<FwmgrMsaAggregateQueryRequest> Query criteria and settings

Return type

FwmgrApiAggregatesResponse

Authorization

oauth2

HTTP request headers

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

aggregate_policy_rules

aggregate_policy_rules(body)

Aggregate rules within a policy for customer

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::FirewallManagementApi.new
body = [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [], time_zone: 'time_zone_example', type: 'type_example'})], time_zone: 'time_zone_example', type: 'type_example'})] # Array<FwmgrMsaAggregateQueryRequest> | Query criteria and settings

begin
  # Aggregate rules within a policy for customer
  result = api_instance.aggregate_policy_rules(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_policy_rules: #{e}"
end

Using the aggregate_policy_rules_with_http_info variant

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

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

begin
  # Aggregate rules within a policy for customer
  data, status_code, headers = api_instance.aggregate_policy_rules_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiAggregatesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_policy_rules_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body Array<FwmgrMsaAggregateQueryRequest> Query criteria and settings

Return type

FwmgrApiAggregatesResponse

Authorization

oauth2

HTTP request headers

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

aggregate_rule_groups

aggregate_rule_groups(body)

Aggregate rule groups for customer

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::FirewallManagementApi.new
body = [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [], time_zone: 'time_zone_example', type: 'type_example'})], time_zone: 'time_zone_example', type: 'type_example'})] # Array<FwmgrMsaAggregateQueryRequest> | Query criteria and settings

begin
  # Aggregate rule groups for customer
  result = api_instance.aggregate_rule_groups(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_rule_groups: #{e}"
end

Using the aggregate_rule_groups_with_http_info variant

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

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

begin
  # Aggregate rule groups for customer
  data, status_code, headers = api_instance.aggregate_rule_groups_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiAggregatesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_rule_groups_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body Array<FwmgrMsaAggregateQueryRequest> Query criteria and settings

Return type

FwmgrApiAggregatesResponse

Authorization

oauth2

HTTP request headers

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

aggregate_rules

aggregate_rules(body)

Aggregate rules for customer

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::FirewallManagementApi.new
body = [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [Falcon::FwmgrMsaAggregateQueryRequest.new({date_ranges: [Falcon::FwmgrMsaDateRangeSpec.new({from: 'from_example', to: 'to_example'})], exclude: 'exclude_example', field: 'field_example', filter: 'filter_example', from: 37, include: 'include_example', interval: 'interval_example', missing: 'missing_example', name: 'name_example', q: 'q_example', ranges: [Falcon::FwmgrMsaRangeSpec.new({from: 3.56, to: 3.56})], size: 37, sort: 'sort_example', sub_aggregates: [], time_zone: 'time_zone_example', type: 'type_example'})], time_zone: 'time_zone_example', type: 'type_example'})] # Array<FwmgrMsaAggregateQueryRequest> | Query criteria and settings

begin
  # Aggregate rules for customer
  result = api_instance.aggregate_rules(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_rules: #{e}"
end

Using the aggregate_rules_with_http_info variant

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

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

begin
  # Aggregate rules for customer
  data, status_code, headers = api_instance.aggregate_rules_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiAggregatesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->aggregate_rules_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body Array<FwmgrMsaAggregateQueryRequest> Query criteria and settings

Return type

FwmgrApiAggregatesResponse

Authorization

oauth2

HTTP request headers

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

create_network_locations

create_network_locations(body, opts)

Create new network locations provided, and return the 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::FirewallManagementApi.new
body = Falcon::FwmgrApiNetworkLocationCreateRequestV1.new({connection_types: Falcon::FwmgrDomainConnectionType.new({wired: false, wireless: Falcon::FwmgrDomainWirelessType.new({enabled: false, require_encryption: false, ssids: ['ssids_example']})}), default_gateways: ['default_gateways_example'], description: 'description_example', dhcp_servers: ['dhcp_servers_example'], dns_resolution_targets: Falcon::FwmgrDomainDNSResolutionTargets.new({targets: [Falcon::FwmgrDomainDNSTarget.new({hostname: 'hostname_example'})]}), dns_servers: ['dns_servers_example'], enabled: false, host_addresses: ['host_addresses_example'], https_reachable_hosts: Falcon::FwmgrDomainHTTPSHosts.new({hostnames: ['hostnames_example']}), icmp_request_targets: Falcon::FwmgrDomainICMPTargets.new({targets: ['targets_example']}), name: 'name_example'}) # FwmgrApiNetworkLocationCreateRequestV1 | 
opts = {
  clone_id: 'clone_id_example', # String | A network location ID from which to copy location. If this is provided then the body of the request is ignored.
  add_fw_rules: true, # Boolean | A boolean to determine whether the cloned location needs to be added to the same firewall rules that original location is added to.
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Create new network locations provided, and return the ID.
  result = api_instance.create_network_locations(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_network_locations: #{e}"
end

Using the create_network_locations_with_http_info variant

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

<Array(, Integer, Hash)> create_network_locations_with_http_info(body, opts)

begin
  # Create new network locations provided, and return the ID.
  data, status_code, headers = api_instance.create_network_locations_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiNetworkLocationsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiNetworkLocationCreateRequestV1
clone_id String A network location ID from which to copy location. If this is provided then the body of the request is ignored. [optional]
add_fw_rules Boolean A boolean to determine whether the cloned location needs to be added to the same firewall rules that original location is added to. [optional]
comment String Audit log comment for this action [optional]

Return type

FwmgrApiNetworkLocationsResponse

Authorization

oauth2

HTTP request headers

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

create_rule_group

create_rule_group(body, opts)

Create new rule group on a platform for a customer with a name and description, and return the 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::FirewallManagementApi.new
body = Falcon::FwmgrApiRuleGroupCreateRequestV1.new({description: 'description_example', enabled: false, name: 'name_example', platform: 'platform_example', rules: [Falcon::FwmgrApiRuleCreateRequestV1.new({action: 'action_example', address_family: 'address_family_example', description: 'description_example', direction: 'direction_example', enabled: false, fields: [Falcon::FwmgrApiWorkaroundUIFieldValue.new({name: 'name_example'})], fqdn: 'fqdn_example', fqdn_enabled: false, icmp: Falcon::FwmgrDomainICMP.new({icmp_code: 'icmp_code_example', icmp_type: 'icmp_type_example'}), local_address: [Falcon::FwmgrDomainAddressRange.new({address: 'address_example'})], local_port: [Falcon::FwmgrDomainPortRange.new({_end: 37, start: 37})], log: false, monitor: Falcon::FwmgrDomainMonitoring.new({count: 'count_example', period_ms: 'period_ms_example'}), name: 'name_example', protocol: 'protocol_example', remote_address: [Falcon::FwmgrDomainAddressRange.new({address: 'address_example'})], remote_port: [Falcon::FwmgrDomainPortRange.new({_end: 37, start: 37})], temp_id: 'temp_id_example'})]}) # FwmgrApiRuleGroupCreateRequestV1 | 
opts = {
  clone_id: 'clone_id_example', # String | A rule group ID from which to copy rules. If this is provided then the 'rules' property of the body is ignored.
  library: 'library_example', # String | If this flag is set to true then the rules will be cloned from the clone_id from the CrowdStrike Firewal Rule Groups Library.
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Create new rule group on a platform for a customer with a name and description, and return the ID
  result = api_instance.create_rule_group(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_rule_group: #{e}"
end

Using the create_rule_group_with_http_info variant

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

<Array(, Integer, Hash)> create_rule_group_with_http_info(body, opts)

begin
  # Create new rule group on a platform for a customer with a name and description, and return the ID
  data, status_code, headers = api_instance.create_rule_group_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_rule_group_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiRuleGroupCreateRequestV1
clone_id String A rule group ID from which to copy rules. If this is provided then the 'rules' property of the body is ignored. [optional]
library String If this flag is set to true then the rules will be cloned from the clone_id from the CrowdStrike Firewal Rule Groups Library. [optional]
comment String Audit log comment for this action [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

create_rule_group_validation

create_rule_group_validation(body, opts)

Validates the request of creating a new rule group on a platform for a customer with a name and description

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::FirewallManagementApi.new
body = Falcon::FwmgrApiRuleGroupCreateRequestV1.new({description: 'description_example', enabled: false, name: 'name_example', platform: 'platform_example', rules: [Falcon::FwmgrApiRuleCreateRequestV1.new({action: 'action_example', address_family: 'address_family_example', description: 'description_example', direction: 'direction_example', enabled: false, fields: [Falcon::FwmgrApiWorkaroundUIFieldValue.new({name: 'name_example'})], fqdn: 'fqdn_example', fqdn_enabled: false, icmp: Falcon::FwmgrDomainICMP.new({icmp_code: 'icmp_code_example', icmp_type: 'icmp_type_example'}), local_address: [Falcon::FwmgrDomainAddressRange.new({address: 'address_example'})], local_port: [Falcon::FwmgrDomainPortRange.new({_end: 37, start: 37})], log: false, monitor: Falcon::FwmgrDomainMonitoring.new({count: 'count_example', period_ms: 'period_ms_example'}), name: 'name_example', protocol: 'protocol_example', remote_address: [Falcon::FwmgrDomainAddressRange.new({address: 'address_example'})], remote_port: [Falcon::FwmgrDomainPortRange.new({_end: 37, start: 37})], temp_id: 'temp_id_example'})]}) # FwmgrApiRuleGroupCreateRequestV1 | 
opts = {
  clone_id: 'clone_id_example', # String | A rule group ID from which to copy rules. If this is provided then the 'rules' property of the body is ignored.
  library: 'library_example', # String | If this flag is set to true then the rules will be cloned from the clone_id from the CrowdStrike Firewall Rule Groups Library.
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Validates the request of creating a new rule group on a platform for a customer with a name and description
  result = api_instance.create_rule_group_validation(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_rule_group_validation: #{e}"
end

Using the create_rule_group_validation_with_http_info variant

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

<Array(, Integer, Hash)> create_rule_group_validation_with_http_info(body, opts)

begin
  # Validates the request of creating a new rule group on a platform for a customer with a name and description
  data, status_code, headers = api_instance.create_rule_group_validation_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->create_rule_group_validation_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiRuleGroupCreateRequestV1
clone_id String A rule group ID from which to copy rules. If this is provided then the 'rules' property of the body is ignored. [optional]
library String If this flag is set to true then the rules will be cloned from the clone_id from the CrowdStrike Firewall Rule Groups Library. [optional]
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

delete_network_locations

delete_network_locations(ids)

Delete network location entities 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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The IDs of the network locations to be deleted

begin
  # Delete network location entities by ID.
  result = api_instance.delete_network_locations(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->delete_network_locations: #{e}"
end

Using the delete_network_locations_with_http_info variant

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

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

begin
  # Delete network location entities by ID.
  data, status_code, headers = api_instance.delete_network_locations_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->delete_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the network locations to be deleted

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

delete_rule_groups

delete_rule_groups(ids, opts)

Delete rule group entities 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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The IDs of the rule groups to be deleted
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

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

Using the delete_rule_groups_with_http_info variant

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

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

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

Parameters

Name Type Description Notes
ids Array<String> The IDs of the rule groups to be deleted
comment String Audit log comment for this action [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

get_events

get_events(ids)

Get events entities by ID and optionally 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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The events to retrieve, identified by ID

begin
  # Get events entities by ID and optionally version
  result = api_instance.get_events(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_events: #{e}"
end

Using the get_events_with_http_info variant

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

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

begin
  # Get events entities by ID and optionally version
  data, status_code, headers = api_instance.get_events_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiEventsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_events_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The events to retrieve, identified by ID

Return type

FwmgrApiEventsResponse

Authorization

oauth2

HTTP request headers

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

get_firewall_fields

get_firewall_fields(ids)

Get the firewall field specifications 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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The IDs of the rule types to retrieve

begin
  # Get the firewall field specifications by ID
  result = api_instance.get_firewall_fields(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_firewall_fields: #{e}"
end

Using the get_firewall_fields_with_http_info variant

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

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

begin
  # Get the firewall field specifications by ID
  data, status_code, headers = api_instance.get_firewall_fields_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiFirewallFieldsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_firewall_fields_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the rule types to retrieve

Return type

FwmgrApiFirewallFieldsResponse

Authorization

oauth2

HTTP request headers

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

get_network_locations

get_network_locations(ids)

Get a summary of network locations entities by ID

This endpoint returns a summary of network locations that includes name, description, enabled/disabled status, a count of associated rules etc

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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The events to retrieve, identified by ID

begin
  # Get a summary of network locations entities by ID
  result = api_instance.get_network_locations(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_network_locations: #{e}"
end

Using the get_network_locations_with_http_info variant

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

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

begin
  # Get a summary of network locations entities by ID
  data, status_code, headers = api_instance.get_network_locations_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiNetworkLocationSummariesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The events to retrieve, identified by ID

Return type

FwmgrApiNetworkLocationSummariesResponse

Authorization

oauth2

HTTP request headers

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

get_network_locations_details

get_network_locations_details(ids)

Get network locations entities by ID

This endpoint returns the complete network locations objects that includes all the network location conditions.

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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The events to retrieve, identified by ID

begin
  # Get network locations entities by ID
  result = api_instance.get_network_locations_details(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_network_locations_details: #{e}"
end

Using the get_network_locations_details_with_http_info variant

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

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

begin
  # Get network locations entities by ID
  data, status_code, headers = api_instance.get_network_locations_details_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiNetworkLocationsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_network_locations_details_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The events to retrieve, identified by ID

Return type

FwmgrApiNetworkLocationsResponse

Authorization

oauth2

HTTP request headers

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

get_platforms

get_platforms(ids)

Get platforms by ID, e.g., windows or mac or droid

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

begin
  # Get platforms by ID, e.g., windows or mac or droid
  result = api_instance.get_platforms(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_platforms: #{e}"
end

Using the get_platforms_with_http_info variant

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

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

begin
  # Get platforms by ID, e.g., windows or mac or droid
  data, status_code, headers = api_instance.get_platforms_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiPlatformsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_platforms_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the platforms to retrieve

Return type

FwmgrApiPlatformsResponse

Authorization

oauth2

HTTP request headers

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

get_policy_containers

get_policy_containers(ids)

Get policy container entities by policy 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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The policy container(s) to retrieve, identified by policy ID

begin
  # Get policy container entities by policy ID
  result = api_instance.get_policy_containers(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_policy_containers: #{e}"
end

Using the get_policy_containers_with_http_info variant

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

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

begin
  # Get policy container entities by policy ID
  data, status_code, headers = api_instance.get_policy_containers_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiPolicyContainersResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_policy_containers_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The policy container(s) to retrieve, identified by policy ID

Return type

FwmgrApiPolicyContainersResponse

Authorization

oauth2

HTTP request headers

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

get_rule_groups

get_rule_groups(ids)

Get rule group entities by ID. These groups do not contain their rule entites, just the rule IDs in precedence order.

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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The IDs of the rule groups to retrieve

begin
  # Get rule group entities by ID. These groups do not contain their rule entites, just the rule IDs in precedence order.
  result = api_instance.get_rule_groups(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_rule_groups: #{e}"
end

Using the get_rule_groups_with_http_info variant

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

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

begin
  # Get rule group entities by ID. These groups do not contain their rule entites, just the rule IDs in precedence order.
  data, status_code, headers = api_instance.get_rule_groups_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiRuleGroupsResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_rule_groups_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The IDs of the rule groups to retrieve

Return type

FwmgrApiRuleGroupsResponse

Authorization

oauth2

HTTP request headers

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

get_rules

get_rules(ids)

Get rule entities by ID (64-bit unsigned int as decimal string) or Family ID (32-character hexadecimal string)

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::FirewallManagementApi.new
ids = ['inner_example'] # Array<String> | The rules to retrieve, identified by ID

begin
  # Get rule entities by ID (64-bit unsigned int as decimal string) or Family ID (32-character hexadecimal string)
  result = api_instance.get_rules(ids)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_rules: #{e}"
end

Using the get_rules_with_http_info variant

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

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

begin
  # Get rule entities by ID (64-bit unsigned int as decimal string) or Family ID (32-character hexadecimal string)
  data, status_code, headers = api_instance.get_rules_with_http_info(ids)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiRulesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->get_rules_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
ids Array<String> The rules to retrieve, identified by ID

Return type

FwmgrApiRulesResponse

Authorization

oauth2

HTTP request headers

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

query_events

query_events(opts)

Find all event IDs matching the query with 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::FirewallManagementApi.new
opts = {
  sort: 'sort_example', # String | Possible order by fields: 
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO
  offset: 'offset_example', # String | Starting index of overall result set from which to return ids.
  after: 'after_example', # String | A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results.
  limit: 56 # Integer | Number of ids to return.
}

begin
  # Find all event IDs matching the query with filter
  result = api_instance.query_events(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_events: #{e}"
end

Using the query_events_with_http_info variant

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

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

begin
  # Find all event IDs matching the query with filter
  data, status_code, headers = api_instance.query_events_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_events_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
sort String Possible order by fields: [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO [optional]
offset String Starting index of overall result set from which to return ids. [optional]
after String A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results. [optional]
limit Integer Number of ids to return. [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

query_firewall_fields

query_firewall_fields(opts)

Get the firewall field specification IDs for the provided platform

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::FirewallManagementApi.new
opts = {
  platform_id: 'platform_id_example', # String | Get fields configuration for this platform
  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 the firewall field specification IDs for the provided platform
  result = api_instance.query_firewall_fields(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_firewall_fields: #{e}"
end

Using the query_firewall_fields_with_http_info variant

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

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

begin
  # Get the firewall field specification IDs for the provided platform
  data, status_code, headers = api_instance.query_firewall_fields_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_firewall_fields_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
platform_id String Get fields configuration for this platform [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

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

query_network_locations

query_network_locations(opts)

Get a list of network location IDs

This endpoint returns a list of network location IDs based of query parameter.

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::FirewallManagementApi.new
opts = {
  sort: 'sort_example', # String | Possible order by fields: 
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: name
  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.
  after: 'after_example', # String | A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results.
  limit: 56 # Integer | Number of ids to return.
}

begin
  # Get a list of network location IDs
  result = api_instance.query_network_locations(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_network_locations: #{e}"
end

Using the query_network_locations_with_http_info variant

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

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

begin
  # Get a list of network location IDs
  data, status_code, headers = api_instance.query_network_locations_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
sort String Possible order by fields: [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: name [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]
after String A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results. [optional]
limit Integer Number of ids to return. [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

query_platforms

query_platforms(opts)

Get the list of platform names

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::FirewallManagementApi.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 the list of platform names
  result = api_instance.query_platforms(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_platforms: #{e}"
end

Using the query_platforms_with_http_info variant

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

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

begin
  # Get the list of platform names
  data, status_code, headers = api_instance.query_platforms_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_platforms_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

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

query_policy_rules

query_policy_rules(opts)

Find all firewall rule IDs matching the query with filter, and return them in precedence order

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::FirewallManagementApi.new
opts = {
  id: 'id_example', # String | The ID of the policy container within which to query
  sort: 'sort_example', # String | Possible order by fields: 
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO
  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 firewall rule IDs matching the query with filter, and return them in precedence order
  result = api_instance.query_policy_rules(opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_policy_rules: #{e}"
end

Using the query_policy_rules_with_http_info variant

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

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

begin
  # Find all firewall rule IDs matching the query with filter, and return them in precedence order
  data, status_code, headers = api_instance.query_policy_rules_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->query_policy_rules_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
id String The ID of the policy container within which to query [optional]
sort String Possible order by fields: [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO [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

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

query_rule_groups

query_rule_groups(opts)

Find all rule group IDs matching the query with 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::FirewallManagementApi.new
opts = {
  sort: 'sort_example', # String | Possible order by fields: 
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO
  offset: 'offset_example', # String | Starting index of overall result set from which to return ids.
  after: 'after_example', # String | A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results.
  limit: 56 # Integer | Number of ids to return.
}

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

Using the query_rule_groups_with_http_info variant

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

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

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

Parameters

Name Type Description Notes
sort String Possible order by fields: [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO [optional]
offset String Starting index of overall result set from which to return ids. [optional]
after String A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results. [optional]
limit Integer Number of ids to return. [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

query_rules

query_rules(opts)

Find all rule IDs matching the query with 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::FirewallManagementApi.new
opts = {
  sort: 'sort_example', # String | Possible order by fields: 
  filter: 'filter_example', # String | FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO
  offset: 'offset_example', # String | Starting index of overall result set from which to return ids.
  after: 'after_example', # String | A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results.
  limit: 56 # Integer | Number of ids to return.
}

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

Using the query_rules_with_http_info variant

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

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

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

Parameters

Name Type Description Notes
sort String Possible order by fields: [optional]
filter String FQL query specifying the filter parameters. Filter term criteria: enabled, platform, name, description, etc TODO. 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, plus TODO [optional]
offset String Starting index of overall result set from which to return ids. [optional]
after String A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results. [optional]
limit Integer Number of ids to return. [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

update_network_locations

update_network_locations(body, opts)

Updates the network locations provided, and return the 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::FirewallManagementApi.new
body = Falcon::FwmgrApiNetworkLocationModifyRequestV1.new({connection_types: Falcon::FwmgrDomainConnectionType.new({wired: false, wireless: Falcon::FwmgrDomainWirelessType.new({enabled: false, require_encryption: false, ssids: ['ssids_example']})}), default_gateways: ['default_gateways_example'], description: 'description_example', dhcp_servers: ['dhcp_servers_example'], dns_resolution_targets: Falcon::FwmgrDomainDNSResolutionTargets.new({targets: [Falcon::FwmgrDomainDNSTarget.new({hostname: 'hostname_example'})]}), dns_servers: ['dns_servers_example'], enabled: false, host_addresses: ['host_addresses_example'], https_reachable_hosts: Falcon::FwmgrDomainHTTPSHosts.new({hostnames: ['hostnames_example']}), icmp_request_targets: Falcon::FwmgrDomainICMPTargets.new({targets: ['targets_example']}), id: 'id_example', name: 'name_example'}) # FwmgrApiNetworkLocationModifyRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Updates the network locations provided, and return the ID.
  result = api_instance.update_network_locations(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations: #{e}"
end

Using the update_network_locations_with_http_info variant

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

<Array(, Integer, Hash)> update_network_locations_with_http_info(body, opts)

begin
  # Updates the network locations provided, and return the ID.
  data, status_code, headers = api_instance.update_network_locations_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiNetworkLocationModifyRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

update_network_locations_metadata

update_network_locations_metadata(body, opts)

Updates the network locations metadata such as polling_intervals for the cid

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::FirewallManagementApi.new
body = Falcon::FwmgrApiNetworkLocationModifyMetadataRequestV1.new({cid: 'cid_example', dns_resolution_targets_polling_interval: 37, https_reachable_hosts_polling_interval: 37, icmp_request_targets_polling_interval: 37, location_precedence: ['location_precedence_example']}) # FwmgrApiNetworkLocationModifyMetadataRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Updates the network locations metadata such as polling_intervals for the cid
  result = api_instance.update_network_locations_metadata(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations_metadata: #{e}"
end

Using the update_network_locations_metadata_with_http_info variant

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

<Array(, Integer, Hash)> update_network_locations_metadata_with_http_info(body, opts)

begin
  # Updates the network locations metadata such as polling_intervals for the cid
  data, status_code, headers = api_instance.update_network_locations_metadata_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations_metadata_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiNetworkLocationModifyMetadataRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

update_network_locations_precedence

update_network_locations_precedence(body, opts)

Updates the network locations precedence according to the list of ids 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::FirewallManagementApi.new
body = Falcon::FwmgrApiNetworkLocationModifyPrecedenceRequestV1.new({cid: 'cid_example', location_precedence: ['location_precedence_example']}) # FwmgrApiNetworkLocationModifyPrecedenceRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Updates the network locations precedence according to the list of ids provided.
  result = api_instance.update_network_locations_precedence(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations_precedence: #{e}"
end

Using the update_network_locations_precedence_with_http_info variant

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

<Array(, Integer, Hash)> update_network_locations_precedence_with_http_info(body, opts)

begin
  # Updates the network locations precedence according to the list of ids provided.
  data, status_code, headers = api_instance.update_network_locations_precedence_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_network_locations_precedence_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiNetworkLocationModifyPrecedenceRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

update_policy_container

update_policy_container(body)

Update an identified policy container, including local logging functionality.

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::FirewallManagementApi.new
body = Falcon::FwmgrApiPolicyContainerUpsertRequestV1.new({default_inbound: 'default_inbound_example', default_outbound: 'default_outbound_example', enforce: false, local_logging: false, platform_id: 'platform_id_example', policy_id: 'policy_id_example', rule_group_ids: ['rule_group_ids_example'], test_mode: false}) # FwmgrApiPolicyContainerUpsertRequestV1 | 

begin
  # Update an identified policy container, including local logging functionality.
  result = api_instance.update_policy_container(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_policy_container: #{e}"
end

Using the update_policy_container_with_http_info variant

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

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

begin
  # Update an identified policy container, including local logging functionality.
  data, status_code, headers = api_instance.update_policy_container_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecResponseFields>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_policy_container_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiPolicyContainerUpsertRequestV1

Return type

FwmgrMsaspecResponseFields

Authorization

oauth2

HTTP request headers

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

update_policy_container_v1

update_policy_container_v1(body)

Update an identified policy container. WARNING: This endpoint is deprecated in favor of v2, using this endpoint could disable your local logging setting.

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::FirewallManagementApi.new
body = Falcon::FwmgrApiPolicyContainerUpsertRequestV1.new({default_inbound: 'default_inbound_example', default_outbound: 'default_outbound_example', enforce: false, local_logging: false, platform_id: 'platform_id_example', policy_id: 'policy_id_example', rule_group_ids: ['rule_group_ids_example'], test_mode: false}) # FwmgrApiPolicyContainerUpsertRequestV1 | 

begin
  # Update an identified policy container. WARNING: This endpoint is deprecated in favor of v2, using this endpoint could disable your local logging setting.
  result = api_instance.update_policy_container_v1(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_policy_container_v1: #{e}"
end

Using the update_policy_container_v1_with_http_info variant

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

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

begin
  # Update an identified policy container. WARNING: This endpoint is deprecated in favor of v2, using this endpoint could disable your local logging setting.
  data, status_code, headers = api_instance.update_policy_container_v1_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecResponseFields>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_policy_container_v1_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiPolicyContainerUpsertRequestV1

Return type

FwmgrMsaspecResponseFields

Authorization

oauth2

HTTP request headers

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

update_rule_group

update_rule_group(body, opts)

Update name, description, or enabled status of a rule group, or create, edit, delete, or reorder 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::FirewallManagementApi.new
body = Falcon::FwmgrApiRuleGroupModifyRequestV1.new({diff_operations: [Falcon::FwmgrApiJsonDiff.new({op: 'op_example', path: 'path_example', value: 3.56})], diff_type: 'diff_type_example', id: 'id_example', rule_ids: ['rule_ids_example'], rule_versions: [37], tracking: 'tracking_example'}) # FwmgrApiRuleGroupModifyRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Update name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
  result = api_instance.update_rule_group(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_rule_group: #{e}"
end

Using the update_rule_group_with_http_info variant

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

<Array(, Integer, Hash)> update_rule_group_with_http_info(body, opts)

begin
  # Update name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
  data, status_code, headers = api_instance.update_rule_group_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_rule_group_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiRuleGroupModifyRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrApiQueryResponse

Authorization

oauth2

HTTP request headers

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

update_rule_group_validation

update_rule_group_validation(body, opts)

Validates the request of updating name, description, or enabled status of a rule group, or create, edit, delete, or reorder 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::FirewallManagementApi.new
body = Falcon::FwmgrApiRuleGroupModifyRequestV1.new({diff_operations: [Falcon::FwmgrApiJsonDiff.new({op: 'op_example', path: 'path_example', value: 3.56})], diff_type: 'diff_type_example', id: 'id_example', rule_ids: ['rule_ids_example'], rule_versions: [37], tracking: 'tracking_example'}) # FwmgrApiRuleGroupModifyRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Validates the request of updating name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
  result = api_instance.update_rule_group_validation(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_rule_group_validation: #{e}"
end

Using the update_rule_group_validation_with_http_info variant

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

<Array(, Integer, Hash)> update_rule_group_validation_with_http_info(body, opts)

begin
  # Validates the request of updating name, description, or enabled status of a rule group, or create, edit, delete, or reorder rules
  data, status_code, headers = api_instance.update_rule_group_validation_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->update_rule_group_validation_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiRuleGroupModifyRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

upsert_network_locations

upsert_network_locations(body, opts)

Updates the network locations provided, and return the 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::FirewallManagementApi.new
body = Falcon::FwmgrApiNetworkLocationModifyRequestV1.new({connection_types: Falcon::FwmgrDomainConnectionType.new({wired: false, wireless: Falcon::FwmgrDomainWirelessType.new({enabled: false, require_encryption: false, ssids: ['ssids_example']})}), default_gateways: ['default_gateways_example'], description: 'description_example', dhcp_servers: ['dhcp_servers_example'], dns_resolution_targets: Falcon::FwmgrDomainDNSResolutionTargets.new({targets: [Falcon::FwmgrDomainDNSTarget.new({hostname: 'hostname_example'})]}), dns_servers: ['dns_servers_example'], enabled: false, host_addresses: ['host_addresses_example'], https_reachable_hosts: Falcon::FwmgrDomainHTTPSHosts.new({hostnames: ['hostnames_example']}), icmp_request_targets: Falcon::FwmgrDomainICMPTargets.new({targets: ['targets_example']}), id: 'id_example', name: 'name_example'}) # FwmgrApiNetworkLocationModifyRequestV1 | 
opts = {
  comment: 'comment_example' # String | Audit log comment for this action
}

begin
  # Updates the network locations provided, and return the ID.
  result = api_instance.upsert_network_locations(body, opts)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->upsert_network_locations: #{e}"
end

Using the upsert_network_locations_with_http_info variant

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

<Array(, Integer, Hash)> upsert_network_locations_with_http_info(body, opts)

begin
  # Updates the network locations provided, and return the ID.
  data, status_code, headers = api_instance.upsert_network_locations_with_http_info(body, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrMsaspecQueryResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->upsert_network_locations_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiNetworkLocationModifyRequestV1
comment String Audit log comment for this action [optional]

Return type

FwmgrMsaspecQueryResponse

Authorization

oauth2

HTTP request headers

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

validate_filepath_pattern

validate_filepath_pattern(body)

Validates that the test pattern matches the executable filepath glob pattern.

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::FirewallManagementApi.new
body = Falcon::FwmgrApiFilepathTestRequest.new({filepath_pattern: 'filepath_pattern_example', filepath_test_string: 'filepath_test_string_example'}) # FwmgrApiFilepathTestRequest | 

begin
  # Validates that the test pattern matches the executable filepath glob pattern.
  result = api_instance.validate_filepath_pattern(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->validate_filepath_pattern: #{e}"
end

Using the validate_filepath_pattern_with_http_info variant

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

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

begin
  # Validates that the test pattern matches the executable filepath glob pattern.
  data, status_code, headers = api_instance.validate_filepath_pattern_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <FwmgrApiValidateFilepathResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FirewallManagementApi->validate_filepath_pattern_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body FwmgrApiFilepathTestRequest

Return type

FwmgrApiValidateFilepathResponse

Authorization

oauth2

HTTP request headers

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