Downloads
The Downloads API service collection provides operations for enumerating and downloading files available for your CID. Retrieve pre-signed download URLs for CrowdStrike-provided files and cloud security tools, with support for filtering by architecture, category, operating system, and platform.
| Language | Last Update |
|---|---|
| Python | v1.6.1 |
| PowerShell | v2.2.9 |
| Go | v0.20.0 |
| TypeScript | v0.6.0 |
| Rust | v0.7.0 |
| Ruby | v1.2.0 |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
DownloadFiledownload | Gets pre-signed URL for the file. deprecated |
EnumerateFileenumerate | Enumerates a list of files available for CID. deprecated |
FetchFilesDownloadInfofetch_download_info | Get files info and pre-signed download URLs |
FetchFilesDownloadInfoV2fetch_download_info_v2 | Get cloud security tools info and pre-signed download URLs |
DownloadFile
Section titled “DownloadFile”Gets pre-signed URL for the file.
This operation has been deprecated in favor of the FetchFilesDownloadInfo operation. Developers should move code over to this new operation as soon as time permits.
downloadParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| file_name | query | string | Name of the file to be downloaded |
| file_version | query | string | Version of the file to be downloaded |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.download(file_name="string", file_version="string")print(response)from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.DownloadFile(file_name="string", file_version="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("DownloadFile", file_name="string", file_version="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/downloads_api")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.DownloadsApi.DownloadFile( &downloads_api.DownloadFileParams{ FileName: "string", FileVersion: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.downloadsApi.downloadFile( "string", // fileName "string" // fileVersion);
console.log(response);use rusty_falcon::apis::downloads_api_api::download_file;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = download_file( &falcon.cfg, // configuration "string", // file_name "string", // file_version ).await.expect("API call failed");
println!("{:?}", response);}Examples coming soon.
Enumerates a list of files available for CID
This operation has been deprecated in favor of the FetchFilesDownloadInfo operation. Developers should move code over to this new operation as soon as time permits.
enumerateParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| arch | query | string | Apply filtering on system architecture |
| category | query | string | Apply filtering on file category |
| file_name | query | string | Apply filtering on file name |
| file_version | query | string | Apply filtering on file version |
| os | query | string | Apply filtering on operating system |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
| platform | query | string | Apply filtering on file platform |
Code Examples
Section titled “Code Examples”from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.enumerate(arch="string", category="string", file_name="string", file_version="string", os="string", platform="string" )print(response)from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.EnumerateFile(arch="string", category="string", file_name="string", file_version="string", os="string", platform="string" )print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("EnumerateFile", arch="string", category="string", file_name="string", file_version="string", os="string", platform="string" )print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/downloads_api")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.DownloadsAPI.DownloadFile( &downloads_api.DownloadFileParams{ FileName: "string", FileVersion: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import FalconClient from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.downloadsApi.downloadFile({ fileName: "string", fileVersion: "string",});
console.log(response);Examples coming soon.
require 'crimson-falcon'
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"] || "us-1"end
api = Falcon::Downloads.newresponse = api.enumerate_file({ category: "string", platform: "string" })puts responseEnumerateFile
Section titled “EnumerateFile”Enumerates a list of files available for CID.
This operation has been deprecated. Developers should move code over to the FetchFilesDownloadInfo operation as soon as time permits.
enumerateParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| file_name | query | string | Apply filtering on file name. |
| file_version | query | string | Apply filtering on file version. |
| platform | query | string | Apply filtering on file platform. |
| os | query | string | Apply filtering on operating system. |
| arch | query | string | Apply filtering on architecture. |
| category | query | string | Apply filtering on file category. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.enumerate(arch="string", file_name="string", file_version="string", os="string", platform="string", category="string")print(response)from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.EnumerateFile(arch="string", file_name="string", file_version="string", os="string", platform="string", category="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("EnumerateFile", file_name="string", file_version="string", platform="string", os="string", arch="string", category="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/downloads_api")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
fileName := "string" fileVersion := "string" platform := "string" os := "string" arch := "string" category := "string"
response, err := client.DownloadsApi.EnumerateFile( &downloads_api.EnumerateFileParams{ FileName: &fileName, FileVersion: &fileVersion, Platform: &platform, Os: &os, Arch: &arch, Category: &category, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.downloadsApi.enumerateFile( "string", // fileName "string", // fileVersion "string", // platform "string", // os "string", // arch "string" // category);
console.log(response);use rusty_falcon::apis::downloads_api_api::enumerate_file;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = enumerate_file( &falcon.cfg, // configuration Some("string"), // file_name Some("string"), // file_version Some("string"), // platform Some("string"), // os Some("string"), // arch Some("string"), // category ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::DownloadsApi.new
response = api.enumerate_file(file_name: 'string', file_version: 'string', platform: 'string', os: 'string', arch: 'string', category: 'string')
puts responseFetchFilesDownloadInfo
Section titled “FetchFilesDownloadInfo”Get files info and pre-signed download URLs
fetch_download_infoParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | Search files using various filters using query in Falcon Query Language (FQL). Supported filters: arch,category,file_name,file_version,os |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
| sort | query | string | The fields to sort records on. Supported columns: arch category file_name file_version os |
Code Examples
Section titled “Code Examples”from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.fetch_download_info(filter="string", sort="string")print(response)from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.FetchFilesDownloadInfo(filter="string", sort="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("FetchFilesDownloadInfo", filter="string", sort="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/downloads_api")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
filter := "string" sort := "string"
response, err := client.DownloadsApi.FetchFilesDownloadInfo( &downloads_api.FetchFilesDownloadInfoParams{ Filter: &filter, Sort: &sort, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.downloadsApi.fetchFilesDownloadInfo( "string", // filter "string" // sort);
console.log(response);use rusty_falcon::apis::downloads_api_api::fetch_files_download_info;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = fetch_files_download_info( &falcon.cfg, // configuration Some("string"), // filter Some("string"), // sort ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::DownloadsApi.new
response = api.fetch_files_download_info(filter: 'string', sort: 'string')
puts responseFetchFilesDownloadInfoV2
Section titled “FetchFilesDownloadInfoV2”Get cloud security tools info and pre-signed download URLs
fetch_download_info_v2Parameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | Search files using various filters. Supported filters: arch,category,file_name,file_version,os |
| limit | query | integer | The upper-bound on the number of records to retrieve. Maximum limit: 100. |
| offset | query | integer | The offset from where to begin. Maximum offset = 1000 - limit. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
| sort | query | string | The fields to sort records on. Supported columns: arch category file_name file_version os |
Code Examples
Section titled “Code Examples”from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.fetch_download_info_v2(filter="string", sort="string", limit="string", offset="string")print(response)from falconpy import Downloads
falcon = Downloads(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.FetchFilesDownloadInfoV2(filter="string", sort="string", limit="string", offset="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("FetchFilesDownloadInfoV2", filter="string", sort="string", limit=integer, offset=integer)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/downloads_api")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
filter := "string" sort := "string" limit := int64(0) offset := int64(0)
response, err := client.DownloadsApi.FetchFilesDownloadInfoV2( &downloads_api.FetchFilesDownloadInfoV2Params{ Filter: &filter, Sort: &sort, Limit: &limit, Offset: &offset, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.downloadsApi.fetchFilesDownloadInfoV2( "string", // filter "string", // sort integer, // limit integer // offset);
console.log(response);Examples coming soon.
require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::DownloadsApi.new
response = api.fetch_files_download_info_v2(filter: 'string', sort: 'string', limit: integer, offset: integer)
puts response