Foundry
The Custom Storage service collection provides operations for managing custom object storage within the CrowdStrike platform. List, describe, search, get, upload, and delete objects within named collections. Support includes versioned collections with schema management and metadata retrieval.
The FaaS Execution service collection provides operations for retrieving large request bodies from Function-as-a-Service gateway executions. Retrieve files or other large payloads that have spilled into object storage during function execution.
The Foundry LogScale service collection provides operations for ingesting data, managing lookup files, executing saved searches, and listing repositories and views within your CrowdStrike Falcon Foundry LogScale environment.
| Language | Last Update |
|---|---|
| Python | v1.6.7 |
| PowerShell | v2.2.9 |
| Go | v0.25.0 |
| TypeScript | v0.9.0 |
| Rust | v0.7.1 |
| Ruby | v1.6.0 |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
| BatchGetObjects | Fetch 1–100 objects by key in a single request. |
| BatchGetObjectsByVersion | Fetch 1–100 objects by key in a single request. |
CreateFileV1create_file_v1 | Creates a lookup file within a foundry app |
CreateSavedSearchesDynamicExecuteV1execute_dynamic | Execute a dynamic saved search |
CreateSavedSearchesExecuteV1execute | Execute a saved search |
CreateSavedSearchesIngestV1populate | Populate a saved search |
DeleteObjectdelete | Delete the specified object |
DeleteVersionedObjectdelete_version | Delete the specified versioned object |
DescribeCollectiondescribe_collection | Fetch metadata about an existing collection |
DescribeCollectionsdescribe_collections | Fetch metadata about one or more existing collections |
GetObjectget | Get the bytes for the specified object |
GetObjectMetadatametadata | Get the metadata for the specified object |
GetSavedSearchesExecuteV1get_search_results | Get the results of a saved search |
GetSavedSearchesJobResultsDownloadV1download_results | Get the results of a saved search as a file |
GetSchemaget_schema | Get the bytes of the specified schema of the requested collection |
GetSchemaMetadataschema_metadata | Get the metadata for the specified schema of the requested collection |
GetVersionedObjectget_version | Get the bytes for the specified object |
GetVersionedObjectMetadataversion_metadata | Get the metadata for the specified object |
IngestDataAsyncV1ingest_data_async | Asynchronously ingest data into the application repository |
IngestDataV1ingest_data | Synchronously ingest data into the application repository |
ListCollectionslist_collections | List available collection names in alphabetical order |
ListObjectslist | List the object keys in the specified collection in alphabetical order |
ListObjectsByVersionlist_by_version | List the object keys in the specified collection in alphabetical order |
ListReposV1list_repos | Lists available repositories |
ListSchemaslist_schemas | Get the list of schemas for the requested collection in reverse version order (latest first) |
ListViewV1list_views | List available views |
PutObjectupload | Put the specified new object at the given key or overwrite an existing object at the given key |
PutObjectByVersionupload_version | Put the specified new object at the given key or overwrite an existing object at the given key |
ReadRequestBodyread_request_body | retrieve a large request body, such as a file, that has spilled into object storage |
SearchObjectssearch | Search for objects that match the specified filter criteria (returns metadata, not actual objects) |
SearchObjectsByVersionsearch_by_version | Search for objects that match the specified filter criteria (returns metadata, not actual objects) |
UpdateFileV1update_file_v1 | Updates a lookup file within a Foundry app |
BatchGetObjects
Section titled “BatchGetObjects”Fetch 1–100 objects by key in a single request.
Parameters
Section titled “Parameters”Examples coming soon.
Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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, batchgetobjectsmultistatus, err := client.CustomStorage.BatchGetObjects( &custom_storage.BatchGetObjectsParams{ CollectionName: "string", ObjectKeys: []string{"ID1", "ID2", "ID3"}, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload) fmt.Printf("%+v\n", batchgetobjectsmultistatus.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.batchGetObjects( "string", // collectionName ["ID1", "ID2", "ID3"] // objectKeys);
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::CustomStorage.new
response = api.batch_get_objects('string', ['ID1', 'ID2', 'ID3'])
puts response[ { "collection_name": "string", "collection_version": "string", "etag": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string", "value_base64": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "count": 0, "limit": 0, "next": "string", "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ { "collection_name": "string", "collection_version": "string", "etag": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string", "value_base64": "string" } ]}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}BatchGetObjectsByVersion
Section titled “BatchGetObjectsByVersion”Fetch 1–100 objects by key in a single request.
Parameters
Section titled “Parameters”Examples coming soon.
Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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, batchgetobjectsbyversionmultistatus, err := client.CustomStorage.BatchGetObjectsByVersion( &custom_storage.BatchGetObjectsByVersionParams{ CollectionName: "string", CollectionVersion: "string", ObjectKeys: []string{"ID1", "ID2", "ID3"}, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload) fmt.Printf("%+v\n", batchgetobjectsbyversionmultistatus.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.batchGetObjectsByVersion( "string", // collectionName "string", // collectionVersion ["ID1", "ID2", "ID3"] // objectKeys);
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::CustomStorage.new
response = api.batch_get_objects_by_version('string', 'string', ['ID1', 'ID2', 'ID3'])
puts response[ { "collection_name": "string", "collection_version": "string", "etag": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string", "value_base64": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "count": 0, "limit": 0, "next": "string", "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ { "collection_name": "string", "collection_version": "string", "etag": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string", "value_base64": "string" } ]}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CreateFileV1
Section titled “CreateFileV1”Creates a lookup file within a foundry app
create_file_v1Parameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.create_file_v1(file_name="string", file="string", name="string", description="string", id="string", repo="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.CreateFileV1(file_name="string", file="string", name="string", description="string", id="string", repo="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("CreateFileV1", file_data=open("filename", "rb").read(), name="string", description="string", id="string", repo="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_lookup_files")
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) }
description := "string" iD := "string" repo := "string"
response, err := client.FoundryLookupFiles.CreateFileV1( &foundry_lookup_files.CreateFileV1Params{ Name: "string", Description: &description, ID: &iD, Repo: &repo, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLookupFiles.createFileV1( new Blob([]), // file "string", // name "string", // xCSUSERNAME "string", // xCSUSERUUID "string", // description "string", // id "string" // repo);
console.log(response);use rusty_falcon::apis::lookup_files_api::create_file_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = create_file_v1( &falcon.cfg, // configuration std::path::PathBuf::default(), // file "string", // name Some("string"), // x_cs_username Some("string"), // x_cs_useruuid Some("string"), // description Some("string"), // id Some("string"), // repo ).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::FoundryLookupFiles.new
response = api.create_file_v1(File.open('path/to/file', 'rb'), 'string')
puts response[ { "app_id": "string", "cid": "string", "contents_hash": "string", "created_by": {}, "created_timestamp": "string", "description": "string", "filename": "string", "format": "string", "id": "string", "last_modified_by": {}, "last_modified_timestamp": "string", "name": "string", "repo": "string", "size": 0, "status": "string", "version": "string", "version_numeric": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CreateSavedSearchesDynamicExecuteV1
Section titled “CreateSavedSearchesDynamicExecuteV1”Execute a dynamic saved search
execute_dynamicParameters
Section titled “Parameters”Available values (3)
sync | async | async_offload |
from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
search_query_args = {}
response = falcon.execute_dynamic(app_id="string", end="string", include_schema_generation=boolean, incude_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, mode="string", repo_or_view="string", search_query="string", search_query_args=search_query_args, start="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
search_query_args = {}
response = falcon.CreateSavedSearchesDynamicExecuteV1(app_id="string", end="string", include_schema_generation=boolean, incude_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, mode="string", repo_or_view="string", search_query="string", search_query_args=search_query_args, start="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "end": "string", "extra_log_fields": {}, "next_run_interval": { "end": integer, "start": integer }, "repo_or_view": "string", "search_query": "string", "search_query_args": {}, "start": "string"}
response = falcon.command("CreateSavedSearchesDynamicExecuteV1", app_id="string", include_schema_generation=boolean, include_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, mode="string", body=body_payload)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale" "github.com/crowdstrike/gofalcon/falcon/models")
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) }
appID := "string" includeSchemaGeneration := boolean includeTestData := boolean inferJSONTypes := boolean matchResponseSchema := boolean metadata := boolean mode := "string" repoOrView := "string" searchQuery := "string"
response, err := client.FoundryLogscale.ExecuteDynamic( &foundry_logscale.ExecuteDynamicParams{ Body: &models.ApidomainDynamicExecuteSearchRequestV1{ End: "string", ExtraLogFields: map[string]string{}, RepoOrView: &repoOrView, SearchQuery: &searchQuery, SearchQueryArgs: "string", Start: "string", }, AppID: &appID, IncludeSchemaGeneration: &includeSchemaGeneration, IncludeTestData: &includeTestData, InferJSONTypes: &inferJSONTypes, MatchResponseSchema: &matchResponseSchema, Metadata: &metadata, Mode: &mode, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.executeDynamic( { // body end: "string", extraLogFields: {}, repoOrView: "string", searchQuery: "string", searchQueryArgs: {}, start: "string" }, "string", // appId boolean, // includeSchemaGeneration boolean, // includeTestData boolean, // inferJsonTypes boolean, // matchResponseSchema boolean, // metadata "sync" // mode);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::create_saved_searches_dynamic_execute_v1;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::ApidomainDynamicExecuteSearchRequestV1;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = ApidomainDynamicExecuteSearchRequestV1 { repo_or_view: "string".to_string(), search_query: "string".to_string(), search_query_args: Default::default(), ..Default::default() };
let response = create_saved_searches_dynamic_execute_v1( &falcon.cfg, // configuration body, // body Some("string"), // app_id Some(boolean), // include_schema_generation Some(boolean), // include_test_data Some(boolean), // infer_json_types Some(boolean), // match_response_schema Some(boolean), // metadata Some("string"), // mode Some("string"), // x_cs_useruuid ).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::FoundryLogscale.new
body = Falcon::ApidomainDynamicExecuteSearchRequestV1.new( _end: 'string', extra_log_fields: {}, repo_or_view: 'string', search_query: 'string', search_query_args: {}, start: 'string')
response = api.create_saved_searches_dynamic_execute_v1(body)
puts response[ { "event_count": 0, "events": [], "fields": [], "filtered_event_count": 0, "job_status": {}, "meta_data": {}, "schemas": {} }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CreateSavedSearchesExecuteV1
Section titled “CreateSavedSearchesExecuteV1”Execute a saved search
executeParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with_in = { "field": "string", "values": [ "string" ]}
with_limit = { "from": "string", "limit": 0}
with_renames = [ { "as": "string", "field": "string" }]
with_sort = { "fields": [ "string" ], "limit": 0, "order": [ "string" ], "reverse": True, "type": [ "string" ]}
response = falcon.execute(app_id="string", detailed=boolean, end="string", id="string", include_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, name="string", search_parameters={}, start="string", with_in=with_in, with_limit=with_limit, with_renames=with_renames, with_sort=with_sort)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with_in = { "field": "string", "values": [ "string" ]}
with_limit = { "from": "string", "limit": 0}
with_renames = [ { "as": "string", "field": "string" }]
with_sort = { "fields": [ "string" ], "limit": 0, "order": [ "string" ], "reverse": True, "type": [ "string" ]}
response = falcon.CreateSavedSearchesExecuteV1(app_id="string", detailed=boolean, end="string", id="string", include_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, name="string", search_parameters={}, start="string", with_in=with_in, with_limit=with_limit, with_renames=with_renames, with_sort=with_sort)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "end": "string", "extra_log_fields": {}, "id": "string", "mode": "string", "name": "string", "next_run_interval": { "end": integer, "start": integer }, "parameters": {}, "start": "string", "version": "string", "with_in": { "field": "string", "values": ["string"] }, "with_limit": { "from": "string", "limit": integer }, "with_renames": [ { "as": "string", "field": "string" } ], "with_sort": { "fields": ["string"], "limit": integer, "order": ["string"], "reverse": boolean, "type": ["string"] }}
response = falcon.command("CreateSavedSearchesExecuteV1", app_id="string", detailed=boolean, include_test_data=boolean, infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, body=body_payload)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale" "github.com/crowdstrike/gofalcon/falcon/models")
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) }
appID := "string" detailed := boolean includeTestData := boolean inferJSONTypes := boolean matchResponseSchema := boolean metadata := boolean field := "string" from := "string" limit := int32(0) as := "string" field2 := "string"
response, err := client.FoundryLogscale.Execute( &foundry_logscale.ExecuteParams{ Body: &models.ApidomainSavedSearchExecuteRequestV1{ End: "string", ExtraLogFields: map[string]string{}, ID: "string", Mode: "string", Name: "string", Parameters: "string", Start: "string", Version: "string", WithIn: &models.ClientExtraIn{ Field: &field, Values: []string{"string"}, }, WithLimit: &models.ClientExtraLimit{ From: &from, Limit: &limit, }, WithRenames: []*models.ClientExtraRename{ { As: &as, Field: &field2, }, }, WithSort: &models.ClientExtraSort{ Fields: []string{"string"}, Limit: integer, Order: []string{"string"}, Reverse: boolean, Type: []string{"string"}, }, }, AppID: &appID, Detailed: &detailed, IncludeTestData: &includeTestData, InferJSONTypes: &inferJSONTypes, MatchResponseSchema: &matchResponseSchema, Metadata: &metadata, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.execute( { // body end: "string", extraLogFields: {}, id: "string", mode: "string", name: "string", start: "string", version: "string", withIn: { field: "string", values: [] }, withLimit: { from: "string", limit: integer }, withRenames: [{ as: "string", field: "string" }], withSort: { fields: [], limit: integer, order: [], reverse: boolean, type: [] } }, "string", // appId boolean, // detailed boolean, // includeTestData boolean, // inferJsonTypes boolean, // matchResponseSchema boolean // metadata);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::create_saved_searches_execute_v1;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::ApidomainSavedSearchExecuteRequestV1;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = ApidomainSavedSearchExecuteRequestV1 { ..Default::default() };
let response = create_saved_searches_execute_v1( &falcon.cfg, // configuration body, // body Some("string"), // app_id Some(boolean), // detailed Some(boolean), // include_test_data Some(boolean), // infer_json_types Some(boolean), // match_response_schema Some(boolean), // metadata Some("string"), // x_cs_useruuid ).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::FoundryLogscale.new
body = Falcon::ApidomainSavedSearchExecuteRequestV1.new( _end: 'string', extra_log_fields: {}, id: 'string', mode: 'string', name: 'string', start: 'string', version: 'string', with_in: { field: 'string', values: [] }, with_limit: { from: 'string', limit: integer }, with_renames: [{ as: 'string', field: 'string' }], with_sort: { fields: [], limit: integer, order: [], reverse: boolean, type: [] })
response = api.create_saved_searches_execute_v1(body)
puts response[ { "event_count": 0, "events": [], "fields": [], "filtered_event_count": 0, "job_status": {}, "meta_data": {}, "schemas": {} }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CreateSavedSearchesIngestV1
Section titled “CreateSavedSearchesIngestV1”Populate a saved search
populateParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.populate(app_id="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.CreateSavedSearchesIngestV1(app_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("CreateSavedSearchesIngestV1", app_id="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
appID := "string"
response, err := client.FoundryLogscale.Populate( &foundry_logscale.PopulateParams{ AppID: &appID, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.populate("string"); // appId
console.log(response);use rusty_falcon::apis::foundry_logscale_api::create_saved_searches_ingest_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = create_saved_searches_ingest_v1( &falcon.cfg, // configuration Some("string"), // app_id ).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::FoundryLogscale.new
response = api.create_saved_searches_ingest_v1(app_id: 'string')
puts response[ { "error_message": "string", "failed_events": 0, "failed_item_indices": [], "partial_success": false, "repo": {}, "rows_written": 0, "successful_events": 0, "total_events": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}DeleteObject
Section titled “DeleteObject”Delete the specified object
deleteParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.delete(collection_name="string", dry_run=boolean, object_key="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.DeleteObject(collection_name="string", dry_run=boolean, object_key="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("DeleteObject", collection_name="string", dry_run=boolean, object_key="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.DeleteObject( &custom_storage.DeleteObjectParams{ CollectionName: "string", DryRun: boolean, ObjectKey: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage._delete( "string", // collectionName "string", // objectKey boolean // dryRun);
console.log(response);use rusty_falcon::apis::custom_storage_api::delete_object;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = delete_object( &falcon.cfg, // configuration "string", // collection_name "string", // object_key Some(boolean), // dry_run ).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::CustomStorage.new
response = api.delete_object('string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}DeleteVersionedObject
Section titled “DeleteVersionedObject”Delete the specified versioned object
delete_versionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.delete_version(collection_name="string", collection_name="string", dry_run=boolean, object_key="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.DeleteVersionedObject(collection_name="string", collection_name="string", dry_run=boolean, object_key="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("DeleteVersionedObject", collection_name="string", collection_version="string", dry_run=boolean, object_key="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.DeleteVersionedObject( &custom_storage.DeleteVersionedObjectParams{ CollectionName: "string", CollectionVersion: "string", DryRun: boolean, ObjectKey: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.deleteVersionedObject( "string", // collectionName "string", // collectionVersion "string", // objectKey boolean // dryRun);
console.log(response);use rusty_falcon::apis::custom_storage_api::delete_versioned_object;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = delete_versioned_object( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version "string", // object_key Some(boolean), // dry_run ).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::CustomStorage.new
response = api.delete_versioned_object('string', 'string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}DescribeCollection
Section titled “DescribeCollection”Fetch metadata about an existing collection
describe_collectionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.describe_collection(collection_name="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.DescribeCollection(collection_name="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("DescribeCollection", collection_name="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.DescribeCollection( &custom_storage.DescribeCollectionParams{ CollectionName: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.describeCollection("string"); // collectionName
console.log(response);use rusty_falcon::apis::custom_storage_api::describe_collection;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = describe_collection( &falcon.cfg, // configuration "string", // collection_name ).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::CustomStorage.new
response = api.describe_collection('string')
puts response[ { "agent_tools_meta": {}, "created_by": {}, "created_timestamp": "string", "description": "string", "draft_schema_version": "string", "is_global": false, "last_modified_by": {}, "last_modified_timestamp": "string", "name": "string", "namespace": "string", "permissions": [], "published_version": "string", "schema_version": "string", "status": "string", "version": "string", "workflow_meta": {} }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}DescribeCollections
Section titled “DescribeCollections”Fetch metadata about one or more existing collections
describe_collectionsParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.describe_collections(names=id_list)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DescribeCollections(names=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("DescribeCollections", names=id_list)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.DescribeCollections( &custom_storage.DescribeCollectionsParams{ Names: []string{"ID1", "ID2", "ID3"}, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.describeCollections(["ID1", "ID2", "ID3"]); // names
console.log(response);use rusty_falcon::apis::custom_storage_api::describe_collections;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = describe_collections( &falcon.cfg, // configuration vec!["string".to_string()], // names ).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::CustomStorage.new
response = api.describe_collections(['ID1', 'ID2', 'ID3'])
puts response[ { "agent_tools_meta": {}, "created_by": {}, "created_timestamp": "string", "description": "string", "draft_schema_version": "string", "is_global": false, "last_modified_by": {}, "last_modified_timestamp": "string", "name": "string", "namespace": "string", "permissions": [], "published_version": "string", "schema_version": "string", "status": "string", "version": "string", "workflow_meta": {} }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetObject
Section titled “GetObject”Get the bytes for the specified object
getParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.get(collection_name="string", object_key="string", stream=boolean) save_file.write(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.GetObject(collection_name="string", object_key="string", stream=boolean) save_file.write(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.command("GetObject", collection_name="string", object_key="string") save_file.write(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
file, err := os.Create("output_file") if err != nil { panic(err) } defer file.Close()
response, err := client.CustomStorage.GetObject( &custom_storage.GetObjectParams{ CollectionName: "string", ObjectKey: "string", Context: context.Background(), }, file, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.get( "string", // collectionName "string" // objectKey);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_object;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_object( &falcon.cfg, // configuration "string", // collection_name "string", // object_key ).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::CustomStorage.new
response = api.get_object('string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetObjectMetadata
Section titled “GetObjectMetadata”Get the metadata for the specified object
metadataParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.metadata(collection_name="string", object_key="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.GetObjectMetadata(collection_name="string", object_key="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("GetObjectMetadata", collection_name="string", object_key="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.GetObjectMetadata( &custom_storage.GetObjectMetadataParams{ CollectionName: "string", ObjectKey: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.metadata( "string", // collectionName "string" // objectKey);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_object_metadata;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_object_metadata( &falcon.cfg, // configuration "string", // collection_name "string", // object_key ).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::CustomStorage.new
response = api.get_object_metadata('string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetSavedSearchesExecuteV1
Section titled “GetSavedSearchesExecuteV1”Get the results of a saved search
get_search_resultsParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.get_search_results(app_id="string", job_id="string", job_status_only=boolean, limit="string", infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, offset="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.GetSavedSearchesExecuteV1(app_id="string", job_id="string", job_status_only=boolean, limit="string", infer_json_types=boolean, match_response_schema=boolean, metadata=boolean, offset="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("GetSavedSearchesExecuteV1", job_id="string", app_id="string", infer_json_types=boolean, job_status_only=boolean, limit="string", match_response_schema=boolean, metadata=boolean, offset="string")print(response)Get-FalconFoundrySearch -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
appID := "string" inferJSONTypes := boolean jobStatusOnly := boolean limit := "string" matchResponseSchema := boolean metadata := boolean offset := "string"
response, err := client.FoundryLogscale.GetSearchResults( &foundry_logscale.GetSearchResultsParams{ JobID: "string", AppID: &appID, InferJSONTypes: &inferJSONTypes, JobStatusOnly: &jobStatusOnly, Limit: &limit, MatchResponseSchema: &matchResponseSchema, Metadata: &metadata, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.getSearchResults( "string", // jobId "string", // appId boolean, // inferJsonTypes boolean, // jobStatusOnly "string", // limit boolean, // matchResponseSchema boolean, // metadata "string" // offset);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::get_saved_searches_execute_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_saved_searches_execute_v1( &falcon.cfg, // configuration "string", // job_id Some("string"), // app_id Some(boolean), // infer_json_types Some(boolean), // job_status_only Some("string"), // limit Some(boolean), // match_response_schema Some(boolean), // metadata Some("string"), // offset Some("string"), // x_cs_useruuid ).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::FoundryLogscale.new
response = api.get_saved_searches_execute_v1('string')
puts response[ { "event_count": 0, "events": [], "fields": [], "filtered_event_count": 0, "job_status": {}, "meta_data": {}, "schemas": {} }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetSavedSearchesJobResultsDownloadV1
Section titled “GetSavedSearchesJobResultsDownloadV1”Get the results of a saved search as a file
download_resultsParameters
Section titled “Parameters”Available values (2)
json | csv |
from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.download_results(job_id="string", infer_json_types=boolean, result_format="string", stream=boolean) save_file.write(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.GetSavedSearchesJobResultsDownloadV1(job_id="string", infer_json_types=boolean, result_format="string", stream=boolean) save_file.write(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.command("GetSavedSearchesJobResultsDownloadV1", job_id="string", infer_json_types=boolean, result_format="string") save_file.write(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
inferJSONTypes := boolean resultFormat := "string"
file, err := os.Create("output_file") if err != nil { panic(err) } defer file.Close()
response, err := client.FoundryLogscale.DownloadResults( &foundry_logscale.DownloadResultsParams{ JobID: "string", InferJSONTypes: &inferJSONTypes, ResultFormat: &resultFormat, Context: context.Background(), }, file, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.downloadResults( "string", // jobId boolean, // inferJsonTypes "json" // resultFormat);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::get_saved_searches_job_results_download_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_saved_searches_job_results_download_v1( &falcon.cfg, // configuration "string", // job_id Some(boolean), // infer_json_types Some("string"), // result_format ).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::FoundryLogscale.new
response = api.get_saved_searches_job_results_download_v1('string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}GetSchema
Section titled “GetSchema”Get the bytes of the specified schema of the requested collection
get_schemaParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.get_schema(collection_name="string", schema_version="string", stream=boolean) save_file.write(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.GetSchema(collection_name="string", schema_version="string", stream=boolean) save_file.write(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.command("GetSchema", collection_name="string", schema_version="string") save_file.write(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
file, err := os.Create("output_file") if err != nil { panic(err) } defer file.Close()
response, err := client.CustomStorage.GetSchema( &custom_storage.GetSchemaParams{ CollectionName: "string", SchemaVersion: "string", Context: context.Background(), }, file, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.getSchema( "string", // collectionName "string" // schemaVersion);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_schema;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_schema( &falcon.cfg, // configuration "string", // collection_name "string", // schema_version ).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::CustomStorage.new
response = api.get_schema('string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetSchemaMetadata
Section titled “GetSchemaMetadata”Get the metadata for the specified schema of the requested collection
schema_metadataParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.schema_metadata(collection_name="string", schema_version="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.GetSchemaMetadata(collection_name="string", schema_version="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("GetSchemaMetadata", collection_name="string", schema_version="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.GetSchemaMetadata( &custom_storage.GetSchemaMetadataParams{ CollectionName: "string", SchemaVersion: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.getSchemaMetadata( "string", // collectionName "string" // schemaVersion);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_schema_metadata;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_schema_metadata( &falcon.cfg, // configuration "string", // collection_name "string", // schema_version ).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::CustomStorage.new
response = api.get_schema_metadata('string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "create_timestamp": "string", "created_by": {}, "indexed_fields": [], "last_modified_by": {}, "last_modified_timestamp": "string", "namespace": "string", "status": "string", "type": "string", "version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetVersionedObject
Section titled “GetVersionedObject”Get the bytes for the specified object
get_versionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.get_version(collection_name="string", collection_version="string", object_key="string", stream=boolean) save_file.write(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.GetVersionedObject(collection_name="string", collection_version="string", object_key="string", stream=boolean) save_file.write(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.command("GetVersionedObject", collection_name="string", collection_version="string", object_key="string") save_file.write(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
file, err := os.Create("output_file") if err != nil { panic(err) } defer file.Close()
response, err := client.CustomStorage.GetVersionedObject( &custom_storage.GetVersionedObjectParams{ CollectionName: "string", CollectionVersion: "string", ObjectKey: "string", Context: context.Background(), }, file, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.getVersionedObject( "string", // collectionName "string", // collectionVersion "string" // objectKey);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_versioned_object;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_versioned_object( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version "string", // object_key ).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::CustomStorage.new
response = api.get_versioned_object('string', 'string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetVersionedObjectMetadata
Section titled “GetVersionedObjectMetadata”Get the metadata for the specified object
version_metadataParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.version_metadata(collection_name="string", collection_version="string", object_key="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.GetVersionedObjectMetadata(collection_name="string", collection_version="string", object_key="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("GetVersionedObjectMetadata", collection_name="string", collection_version="string", object_key="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.GetVersionedObjectMetadata( &custom_storage.GetVersionedObjectMetadataParams{ CollectionName: "string", CollectionVersion: "string", ObjectKey: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.getVersionedObjectMetadata( "string", // collectionName "string", // collectionVersion "string" // objectKey);
console.log(response);use rusty_falcon::apis::custom_storage_api::get_versioned_object_metadata;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_versioned_object_metadata( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version "string", // object_key ).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::CustomStorage.new
response = api.get_versioned_object_metadata('string', 'string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}IngestDataAsyncV1
Section titled “IngestDataAsyncV1”Asynchronously ingest data into the application repository
ingest_data_asyncParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ingest_data_async(data_content="string", data_file="string", tag="string", tag_source="string", test_data=boolean)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.IngestDataAsyncV1(data_content="string", data_file="string", tag="string", tag_source="string", test_data=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("IngestDataAsyncV1", data_content="string", data_file="string", repo="string", tag="string", tag_source="string", test_data=boolean)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
dataContent := "string" repo := "string" tagSource := "string" testData := boolean
response, err := client.FoundryLogscale.IngestDataAsyncV1( &foundry_logscale.IngestDataAsyncV1Params{ DataContent: &dataContent, Repo: &repo, Tag: []string{"ID1", "ID2", "ID3"}, TagSource: &tagSource, TestData: &testData, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.ingestDataAsyncV1( "string", // dataContent new Blob([]), // dataFile "string", // repo ["ID1", "ID2", "ID3"], // tag "string", // tagSource boolean // testData);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::ingest_data_async_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = ingest_data_async_v1( &falcon.cfg, // configuration Some("string"), // data_content Some(std::path::PathBuf::default()), // data_file Some("string"), // repo Some(vec!["string".to_string()]), // tag Some("string"), // tag_source Some(boolean), // test_data ).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::FoundryLogscale.new
response = api.ingest_data_async_v1(data_content: 'string', repo: 'string', tag: ['ID1', 'ID2', 'ID3'], tag_source: 'string', test_data: boolean)
puts response[ { "error_message": "string", "failed_events": 0, "failed_item_indices": [], "partial_success": false, "repo": {}, "rows_written": 0, "successful_events": 0, "total_events": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}IngestDataV1
Section titled “IngestDataV1”Synchronously ingest data into the application repository
ingest_dataParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ingest_data(data_content="string", data_file="string", tag="string", tag_source="string", test_data=boolean)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.IngestDataV1(data_content="string", data_file="string", tag="string", tag_source="string", test_data=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("IngestDataV1", data_content="string", data_file="string", tag="string", tag_source="string", test_data=boolean)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
dataContent := "string" tagSource := "string" testData := boolean
response, err := client.FoundryLogscale.IngestData( &foundry_logscale.IngestDataParams{ DataContent: &dataContent, Tag: []string{"ID1", "ID2", "ID3"}, TagSource: &tagSource, TestData: &testData, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.ingestData( "string", // dataContent new Blob([]), // dataFile ["ID1", "ID2", "ID3"], // tag "string", // tagSource boolean // testData);
console.log(response);use rusty_falcon::apis::foundry_logscale_api::ingest_data_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = ingest_data_v1( &falcon.cfg, // configuration Some("string"), // data_content Some(std::path::PathBuf::default()), // data_file Some(vec!["string".to_string()]), // tag Some("string"), // tag_source Some(boolean), // test_data ).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::FoundryLogscale.new
response = api.ingest_data_v1(data_content: 'string', tag: ['ID1', 'ID2', 'ID3'], tag_source: 'string', test_data: boolean)
puts response[ { "error_message": "string", "failed_events": 0, "failed_item_indices": [], "partial_success": false, "repo": {}, "rows_written": 0, "successful_events": 0, "total_events": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListCollections
Section titled “ListCollections”List available collection names in alphabetical order
list_collectionsParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_collections(end="string", limit=integer, start="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListCollections(end="string", limit=integer, start="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListCollections", end="string", limit=integer, start="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.ListCollections( &custom_storage.ListCollectionsParams{ End: "string", Limit: integer, Start: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.listCollections( "string", // end integer, // limit "string" // start);
console.log(response);use rusty_falcon::apis::custom_storage_api::list_collections;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_collections( &falcon.cfg, // configuration Some("string"), // end Some(integer), // limit Some("string"), // start ).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::CustomStorage.new
response = api.list_collections(_end: 'string', limit: integer, start: 'string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListObjects
Section titled “ListObjects”List the object keys in the specified collection in alphabetical order
listParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list(collection_name="string", end="string", limit=integer, start="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListObjects(collection_name="string", end="string", limit=integer, start="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListObjects", collection_name="string", end="string", limit=integer, start="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.ListObjects( &custom_storage.ListObjectsParams{ CollectionName: "string", End: "string", Limit: integer, Start: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.list( "string", // collectionName "string", // end integer, // limit "string" // start);
console.log(response);use rusty_falcon::apis::custom_storage_api::list_objects;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_objects( &falcon.cfg, // configuration "string", // collection_name Some("string"), // end Some(integer), // limit Some("string"), // start ).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::CustomStorage.new
response = api.list_objects('string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListObjectsByVersion
Section titled “ListObjectsByVersion”List the object keys in the specified collection in alphabetical order
list_by_versionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_by_version(collection_name="string", collection_version="string", end="string", limit=integer, start="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListObjectsByVersion(collection_name="string", collection_version="string", end="string", limit=integer, start="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListObjectsByVersion", collection_name="string", collection_version="string", end="string", limit=integer, start="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.ListObjectsByVersion( &custom_storage.ListObjectsByVersionParams{ CollectionName: "string", CollectionVersion: "string", End: "string", Limit: integer, Start: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.listObjectsByVersion( "string", // collectionName "string", // collectionVersion "string", // end integer, // limit "string" // start);
console.log(response);use rusty_falcon::apis::custom_storage_api::list_objects_by_version;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_objects_by_version( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version Some("string"), // end Some(integer), // limit Some("string"), // start ).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::CustomStorage.new
response = api.list_objects_by_version('string', 'string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListReposV1
Section titled “ListReposV1”Lists available repositories
list_reposParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_repos(check_test_data=boolean)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListReposV1(check_test_data=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListReposV1", check_test_data=boolean)print(response)Get-FalconFoundryRepositorypackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
checkTestData := boolean
response, err := client.FoundryLogscale.ListRepos( &foundry_logscale.ListReposParams{ CheckTestData: &checkTestData, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.listRepos(boolean); // checkTestData
console.log(response);use rusty_falcon::apis::foundry_logscale_api::list_repos_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_repos_v1( &falcon.cfg, // configuration Some(boolean), // check_test_data ).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::FoundryLogscale.new
response = api.list_repos_v1(check_test_data: boolean)
puts response[ { "connections": [], "description": "string", "display_name": "string", "has_test_data": false, "id": "string", "name": "string", "name_contracted": "string", "size": 0, "type_name": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListSchemas
Section titled “ListSchemas”Get the list of schemas for the requested collection in reverse version order (latest first)
list_schemasParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_schemas(collection_name="string", end="string", limit=integer, start="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListSchemas(collection_name="string", end="string", limit=integer, start="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListSchemas", collection_name="string", end="string", limit=integer, start="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.ListSchemas( &custom_storage.ListSchemasParams{ CollectionName: "string", End: "string", Limit: integer, Start: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.listSchemas( "string", // collectionName "string", // end integer, // limit "string" // start);
console.log(response);use rusty_falcon::apis::custom_storage_api::list_schemas;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_schemas( &falcon.cfg, // configuration "string", // collection_name Some("string"), // end Some(integer), // limit Some("string"), // start ).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::CustomStorage.new
response = api.list_schemas('string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ListViewV1
Section titled “ListViewV1”List available views
list_viewsParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_views(check_test_data=boolean)print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.ListViewV1(check_test_data=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("ListViewV1", check_test_data=boolean)print(response)Get-FalconFoundryViewpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale")
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) }
checkTestData := boolean
response, err := client.FoundryLogscale.ListViews( &foundry_logscale.ListViewsParams{ CheckTestData: &checkTestData, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLogscale.listViews(boolean); // checkTestData
console.log(response);use rusty_falcon::apis::foundry_logscale_api::list_view_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = list_view_v1( &falcon.cfg, // configuration Some(boolean), // check_test_data ).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::FoundryLogscale.new
response = api.list_view_v1(check_test_data: boolean)
puts response[ { "connections": [], "description": "string", "display_name": "string", "has_test_data": false, "id": "string", "name": "string", "name_contracted": "string", "size": 0, "type_name": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}PutObject
Section titled “PutObject”Put the specified new object at the given key or overwrite an existing object at the given key
uploadParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.upload(collection_name="string", dry_run=boolean, object_key="string", schema_version="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.PutObject(collection_name="string", dry_run=boolean, object_key="string", schema_version="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("PutObject", collection_name="string", dry_run=boolean, object_key="string", schema_version="string", body={})print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
schemaVersion := "string"
response, err := client.CustomStorage.PutObject( &custom_storage.PutObjectParams{ CollectionName: "string", DryRun: boolean, ObjectKey: "string", SchemaVersion: &schemaVersion, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.upload( "string", // collectionName "string", // objectKey new Blob([]), // body boolean, // dryRun "string" // schemaVersion);
console.log(response);use rusty_falcon::apis::custom_storage_api::put_object;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = put_object( &falcon.cfg, // configuration "string", // collection_name "string", // object_key Default::default(), // body Some(boolean), // dry_run Some("string"), // schema_version ).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::CustomStorage.new
body = File.open('path/to/file', 'rb')
response = api.put_object('string', 'string', body)
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}PutObjectByVersion
Section titled “PutObjectByVersion”Put the specified new object at the given key or overwrite an existing object at the given key
upload_versionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.upload_version(collection_name="string", collection_version="string", dry_run=boolean, object_key="string", schema_version="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.PutObjectByVersion(collection_name="string", collection_version="string", dry_run=boolean, object_key="string", schema_version="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("PutObjectByVersion", collection_name="string", collection_version="string", dry_run=boolean, object_key="string", body={})print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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.CustomStorage.PutObjectByVersion( &custom_storage.PutObjectByVersionParams{ CollectionName: "string", CollectionVersion: "string", DryRun: boolean, ObjectKey: "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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.putObjectByVersion( "string", // collectionName "string", // collectionVersion "string", // objectKey new Blob([]), // body boolean // dryRun);
console.log(response);use rusty_falcon::apis::custom_storage_api::put_object_by_version;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = put_object_by_version( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version "string", // object_key Default::default(), // body Some(boolean), // dry_run ).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::CustomStorage.new
body = File.open('path/to/file', 'rb')
response = api.put_object_by_version('string', 'string', 'string', body)
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}ReadRequestBody
Section titled “ReadRequestBody”retrieve a large request body, such as a file, that has spilled into object storage
read_request_bodyParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.read_request_body(id="string", fn="string", filename="string", sha256="string", stream=boolean) save_file.write(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.ReadRequestBody(id="string", fn="string", filename="string", sha256="string", stream=boolean) save_file.write(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
with open("output_file", "wb") as save_file: response = falcon.command("ReadRequestBody", id="string", fn="string", filename="string", sha256="string") save_file.write(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/execution")
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.Execution.ReadRequestBody( &execution.ReadRequestBodyParams{ ID: "string", Fn: "string", Filename: "string", Sha256: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.execution.readRequestBody( "string", // id "string", // fn "string", // filename "string" // sha256);
console.log(response);use rusty_falcon::apis::execution_api::read_request_body;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = read_request_body( &falcon.cfg, // configuration "string", // id "string", // fn "string", // filename "string", // sha256 ).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::Execution.new
response = api.read_request_body('string', 'string', 'string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}SearchObjects
Section titled “SearchObjects”Search for objects that match the specified filter criteria (returns metadata, not actual objects)
searchParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.search(collection_name="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.SearchObjects(collection_name="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("SearchObjects", collection_name="string", filter="string", limit=integer, offset=integer, sort="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
sort := "string"
response, err := client.CustomStorage.SearchObjects( &custom_storage.SearchObjectsParams{ CollectionName: "string", Filter: "string", Limit: integer, Offset: integer, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.search( "string", // collectionName "string", // filter integer, // limit integer, // offset "string" // sort);
console.log(response);use rusty_falcon::apis::custom_storage_api::search_objects;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = search_objects( &falcon.cfg, // configuration "string", // collection_name "string", // filter Some(integer), // limit Some(integer), // offset 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::CustomStorage.new
response = api.search_objects('string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}SearchObjectsByVersion
Section titled “SearchObjectsByVersion”Search for objects that match the specified filter criteria (returns metadata, not actual objects)
search_by_versionParameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.search_by_version(collection_name="string", collection_version="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.SearchObjectsByVersion(collection_name="string", collection_version="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("SearchObjectsByVersion", collection_name="string", collection_version="string", filter="string", limit=integer, offset=integer, sort="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/custom_storage")
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) }
sort := "string"
response, err := client.CustomStorage.SearchObjectsByVersion( &custom_storage.SearchObjectsByVersionParams{ CollectionName: "string", CollectionVersion: "string", Filter: "string", Limit: integer, Offset: integer, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.customStorage.searchObjectsByVersion( "string", // collectionName "string", // collectionVersion "string", // filter integer, // limit integer, // offset "string" // sort);
console.log(response);use rusty_falcon::apis::custom_storage_api::search_objects_by_version;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = search_objects_by_version( &falcon.cfg, // configuration "string", // collection_name "string", // collection_version "string", // filter Some(integer), // limit Some(integer), // offset 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::CustomStorage.new
response = api.search_objects_by_version('string', 'string', 'string')
puts response[ { "collection_name": "string", "collection_version": "string", "last_modified_time": "string", "namespace": "string", "object_key": "string", "schema_version": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}UpdateFileV1
Section titled “UpdateFileV1”Updates a lookup file within a Foundry app
update_file_v1Parameters
Section titled “Parameters”from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.update_file_v1(file_name="string", id="string", description="string", file="string")print(response)from falconpy import Foundry
falcon = Foundry(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.UpdateFileV1(file_name="string", id="string", description="string", file="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("UpdateFileV1", id="string", description="string", file_data=open("filename", "rb").read())print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/foundry_lookup_files")
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) }
description := "string"
response, err := client.FoundryLookupFiles.UpdateFileV1( &foundry_lookup_files.UpdateFileV1Params{ ID: "string", Description: &description, 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.foundryLookupFiles.updateFileV1( "string", // id "string", // xCSUSERNAME "string", // xCSUSERUUID "string", // description new Blob([]) // file);
console.log(response);use rusty_falcon::apis::lookup_files_api::update_file_v1;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = update_file_v1( &falcon.cfg, // configuration "string", // id Some("string"), // x_cs_username Some("string"), // x_cs_useruuid Some("string"), // description Some(std::path::PathBuf::default()), // file ).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::FoundryLookupFiles.new
response = api.update_file_v1('string')
puts response[ { "app_id": "string", "cid": "string", "contents_hash": "string", "created_by": {}, "created_timestamp": "string", "description": "string", "filename": "string", "format": "string", "id": "string", "last_modified_by": {}, "last_modified_timestamp": "string", "name": "string", "repo": "string", "size": 0, "status": "string", "version": "string", "version_numeric": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}