All URIs are relative to https://api.us-2.crowdstrike.com
Method | HTTP request | Description |
---|---|---|
enumerate_file | GET /csdownloads/entities/files/enumerate/v1 | Enumerates a list of files available for CID |
enumerate_file(opts)
Enumerates a list of files available for CID
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::DownloadsApi.new
opts = {
file_name: 'file_name_example', # String | Apply filtering on file name
file_version: 'file_version_example', # String | Apply filtering on file version
platform: 'platform_example', # String | Apply filtering on file platform
os: 'os_example', # String | Apply filtering on operating system
arch: 'arch_example', # String | Apply filtering on architecture
category: 'category_example' # String | Apply filtering on file category
}
begin
# Enumerates a list of files available for CID
result = api_instance.enumerate_file(opts)
p result
rescue Falcon::ApiError => e
puts "Error when calling DownloadsApi->enumerate_file: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> enumerate_file_with_http_info(opts)
begin
# Enumerates a list of files available for CID
data, status_code, headers = api_instance.enumerate_file_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <CommonEntitiesResponse>
rescue Falcon::ApiError => e
puts "Error when calling DownloadsApi->enumerate_file_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
file_name | String | Apply filtering on file name | [optional] |
file_version | String | Apply filtering on file version | [optional] |
platform | String | Apply filtering on file platform | [optional] |
os | String | Apply filtering on operating system | [optional] |
arch | String | Apply filtering on architecture | [optional] |
category | String | Apply filtering on file category | [optional] |
oauth2
- Content-Type: Not defined
- Accept: application/json