ODS (On Demand Scan)
The ODS (On Demand Scan) service collection provides operations for managing on-demand malware scans across your environment. Retrieve aggregate data on scans and scan hosts, cancel active scans, get and create scans and scheduled scans, query malicious files, and manage scheduled scan configurations.
| Language | Last Update |
|---|---|
| Python | v1.4.6 |
| PowerShell | v2.2.9 |
| Go | v0.20.0 |
| TypeScript | v0.6.0 |
| Rust | v0.7.0 |
| Ruby | v1.2.0 |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
aggregate_query_scan_host_metadataaggregate_query_scan_host_metadata | Get aggregates on ODS scan-hosts data. |
aggregate_scansaggregate_scans | Get aggregates on ODS scan data. |
aggregate_scheduled_scansaggregate_scheduled_scans | Get aggregates on ODS scheduled-scan data. |
get_malicious_files_by_idsget_malicious_files | Get malicious files by ids. |
cancel_scanscancel_scans | Cancel ODS scans for the given scan ids. |
get_scan_host_metadata_by_idsget_scan_hosts | Get scan hosts by ids. |
get_scans_by_scan_ids_v1get_scans_by_scan_ids_v1 | Get Scans by IDs. |
get_scans_by_scan_ids_v2get_scans_by_scan_ids_v2 | Get Scans by IDs. |
create_scancreate_scan | Create ODS scan and start or schedule scan for the given scan request. |
get_scheduled_scans_by_scan_idsget_scheduled_scans | Get ScheduledScans by IDs. |
schedule_scanschedule_scan | Create ODS scan and start or schedule scan for the given scan request. |
delete_scheduled_scansdelete_scheduled_scans | Delete ODS scheduled-scans for the given scheduled-scan ids. |
query_malicious_filesquery_malicious_files | Query malicious files. |
query_scan_host_metadataquery_scan_hosts | Query scan hosts. |
query_scansquery_scans | Query Scans. |
query_scheduled_scansquery_scheduled_scans | Query ScheduledScans. |
aggregate_query_scan_host_metadata
Section titled “aggregate_query_scan_host_metadata”Get aggregates on ODS scan-hosts data.
aggregate_scan_hostsParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| body | body | list of dictionaries | Full body payload in JSON format. |
| date_ranges | body | list of dictionaries | Applies to date_range aggregations. Example: [{“from”: “2016-05-28T09:00:31Z”, “to”: “2016-05-30T09:00:31Z”}, {“from”: “2016-06-01T09:00:31Z”, “to”: “2016-06-10T09:00:31Z”}] |
| exclude | body | string | Elements to exclude. |
| field | body | string | The field on which to compute the aggregation. |
| filter | body | string | FQL syntax formatted string to use to filter the results. |
| from | body | integer | Starting position. |
| include | body | string | Elements to include. |
| interval | body | string | Time interval for date histogram aggregations. Valid values include: year, month, week, day, hour, minute. |
| max_doc_count | body | integer | Only return buckets if values are less than or equal to the value here. |
| min_doc_count | body | integer | Only return buckets if values are greater than or equal to the value here. |
| missing | body | string | Missing is the value to be used when the aggregation field is missing from the object. In other words, the missing parameter defines how documents that are missing a value should be treated. By default they will be ignored, but it is also possible to treat them as if they had a value. |
| name | body | string | Name of the aggregate query, as chosen by the user. Used to identify the results returned to you. |
| q | body | string | Full text search across all metadata fields. |
| ranges | body | list of dictionaries | Applies to range aggregations. Ranges values will depend on field. For example, if max_severity is used, ranges might look like: [{“From”: 0, “To”: 70}, {“From”: 70, “To”: 100}] |
| size | body | integer | The max number of term buckets to be returned. |
| sub_aggregates | body | list of dictionaries | A nested aggregation, such as: [{“name”: “max_first_behavior”, “type”: “max”, “field”: “first_behavior”}]. There is a maximum of 3 nested aggregations per request. |
| sort | body | string | FQL syntax string to sort bucket results. _count - sort by document count. _term - sort by the string value alphabetically. Supports asc and desc using \| format. Example: _count\|desc |
| time_zone | body | string | Time zone for bucket results. |
| type | body | string | Type of aggregation. Valid values include: date_histogram, date_range, terms, range, cardinality, max, min, avg, sum, percentiles. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_scan_hosts(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_query_scan_host_metadata(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = [ { "date_ranges": [ { "from": "string", "to": "string" } ], "exclude": "string", "extended_bounds": { "max": "string", "min": "string" }, "field": "string", "filter": "string", "filters_spec": { "filters": {}, "other_bucket": boolean, "other_bucket_key": "string" }, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": [ { "from": integer, "to": integer } ], "size": integer, "sort": "string", "sub_aggregates": [ { "date_ranges": ["string"], "exclude": "string", "extended_bounds": {}, "field": "string", "filter": "string", "filters_spec": {}, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": ["string"], "size": integer, "sort": "string", "sub_aggregates": ["string"], "time_zone": "string", "type": "string" } ], "time_zone": "string", "type": "string" }]
response = falcon.command("aggregate_query_scan_host_metadata", 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/ods" "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) }
from := "string" to := "string" exclude := "string" field := "string" filter := "string" from := integer include := "string" interval := "string" max_doc_count := integer min_doc_count := integer missing := "string" name := "string" q := "string" From := integer To := integer size := integer sort := "string" time_zone := "string" type := "string"
response, err := client.Ods.AggregateQueryScanHostMetadata( &ods.AggregateQueryScanHostMetadataParams{ Body: []*models.MsaAggregateQueryRequest{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{}, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{}, Size: &size, Sort: &sort, SubAggregates: []interface{}{}, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.aggregateQueryScanHostMetadata( [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [], exclude: "string", extendedBounds: {}, field: "string", filter: "string", filtersSpec: {}, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [], size: integer, sort: "string", subAggregates: [], timeZone: "string", type: "string" }], timeZone: "string", type: "string" }], timeZone: "string", type: "string"}] // body);
console.log(response);use rusty_falcon::apis::ods_api::aggregate_query_scan_host_metadata;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaAggregateQueryRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = vec![MsaAggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }];
let response = aggregate_query_scan_host_metadata( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = [Falcon::MsaAggregateQueryRequest.new( date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [], exclude: 'string', extended_bounds: {}, field: 'string', filter: 'string', filters_spec: {}, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [], size: integer, sort: 'string', sub_aggregates: [], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string')]
response = api.aggregate_query_scan_host_metadata(body)
puts responseaggregate_scans
Section titled “aggregate_scans”Get aggregates on ODS scan data.
aggregate_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| body | body | list of dictionaries | Full body payload in JSON format. |
| date_ranges | body | list of dictionaries | Applies to date_range aggregations. Example: [{“from”: “2016-05-28T09:00:31Z”, “to”: “2016-05-30T09:00:31Z”}, {“from”: “2016-06-01T09:00:31Z”, “to”: “2016-06-10T09:00:31Z”}] |
| exclude | body | string | Elements to exclude. |
| field | body | string | The field on which to compute the aggregation. |
| filter | body | string | FQL syntax formatted string to use to filter the results. |
| from | body | integer | Starting position. |
| include | body | string | Elements to include. |
| interval | body | string | Time interval for date histogram aggregations. Valid values include: year, month, week, day, hour, minute. |
| max_doc_count | body | integer | Only return buckets if values are less than or equal to the value here. |
| min_doc_count | body | integer | Only return buckets if values are greater than or equal to the value here. |
| missing | body | string | Missing is the value to be used when the aggregation field is missing from the object. In other words, the missing parameter defines how documents that are missing a value should be treated. By default they will be ignored, but it is also possible to treat them as if they had a value. |
| name | body | string | Name of the aggregate query, as chosen by the user. Used to identify the results returned to you. |
| q | body | string | Full text search across all metadata fields. |
| ranges | body | list of dictionaries | Applies to range aggregations. Ranges values will depend on field. For example, if max_severity is used, ranges might look like: [{“From”: 0, “To”: 70}, {“From”: 70, “To”: 100}] |
| size | body | integer | The max number of term buckets to be returned. |
| sub_aggregates | body | list of dictionaries | A nested aggregation, such as: [{“name”: “max_first_behavior”, “type”: “max”, “field”: “first_behavior”}]. There is a maximum of 3 nested aggregations per request. |
| sort | body | string | FQL syntax string to sort bucket results. _count - sort by document count. _term - sort by the string value alphabetically. Supports asc and desc using \| format. Example: _count\|desc |
| time_zone | body | string | Time zone for bucket results. |
| type | body | string | Type of aggregation. Valid values include: date_histogram, date_range, terms, range, cardinality, max, min, avg, sum, percentiles. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_scans(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_scans(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = [ { "date_ranges": [ { "from": "string", "to": "string" } ], "exclude": "string", "extended_bounds": { "max": "string", "min": "string" }, "field": "string", "filter": "string", "filters_spec": { "filters": {}, "other_bucket": boolean, "other_bucket_key": "string" }, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": [ { "from": integer, "to": integer } ], "size": integer, "sort": "string", "sub_aggregates": [ { "date_ranges": ["string"], "exclude": "string", "extended_bounds": {}, "field": "string", "filter": "string", "filters_spec": {}, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": ["string"], "size": integer, "sort": "string", "sub_aggregates": ["string"], "time_zone": "string", "type": "string" } ], "time_zone": "string", "type": "string" }]
response = falcon.command("aggregate_scans", 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/ods" "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) }
from := "string" to := "string" exclude := "string" field := "string" filter := "string" from := integer include := "string" interval := "string" max_doc_count := integer min_doc_count := integer missing := "string" name := "string" q := "string" From := integer To := integer size := integer sort := "string" time_zone := "string" type := "string"
response, err := client.Ods.AggregateScans( &ods.AggregateScansParams{ Body: []*models.MsaAggregateQueryRequest{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{}, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{}, Size: &size, Sort: &sort, SubAggregates: []interface{}{}, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.aggregateScans( [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [], exclude: "string", extendedBounds: {}, field: "string", filter: "string", filtersSpec: {}, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [], size: integer, sort: "string", subAggregates: [], timeZone: "string", type: "string" }], timeZone: "string", type: "string" }], timeZone: "string", type: "string"}] // body);
console.log(response);use rusty_falcon::apis::ods_api::aggregate_scans;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaAggregateQueryRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = vec![MsaAggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }];
let response = aggregate_scans( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = [Falcon::MsaAggregateQueryRequest.new( date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [], exclude: 'string', extended_bounds: {}, field: 'string', filter: 'string', filters_spec: {}, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [], size: integer, sort: 'string', sub_aggregates: [], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string')]
response = api.aggregate_scans(body)
puts responseaggregate_scheduled_scans
Section titled “aggregate_scheduled_scans”Get aggregates on ODS scheduled-scan data.
aggregate_scheduled_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| body | body | list of dictionaries | Full body payload in JSON format. |
| date_ranges | body | list of dictionaries | Applies to date_range aggregations. Example: [{“from”: “2016-05-28T09:00:31Z”, “to”: “2016-05-30T09:00:31Z”}, {“from”: “2016-06-01T09:00:31Z”, “to”: “2016-06-10T09:00:31Z”}] |
| exclude | body | string | Elements to exclude. |
| field | body | string | The field on which to compute the aggregation. |
| filter | body | string | FQL syntax formatted string to use to filter the results. |
| from | body | integer | Starting position. |
| include | body | string | Elements to include. |
| interval | body | string | Time interval for date histogram aggregations. Valid values include: year, month, week, day, hour, minute. |
| max_doc_count | body | integer | Only return buckets if values are less than or equal to the value here. |
| min_doc_count | body | integer | Only return buckets if values are greater than or equal to the value here. |
| missing | body | string | Missing is the value to be used when the aggregation field is missing from the object. In other words, the missing parameter defines how documents that are missing a value should be treated. By default they will be ignored, but it is also possible to treat them as if they had a value. |
| name | body | string | Name of the aggregate query, as chosen by the user. Used to identify the results returned to you. |
| q | body | string | Full text search across all metadata fields. |
| ranges | body | list of dictionaries | Applies to range aggregations. Ranges values will depend on field. For example, if max_severity is used, ranges might look like: [{“From”: 0, “To”: 70}, {“From”: 70, “To”: 100}] |
| size | body | integer | The max number of term buckets to be returned. |
| sub_aggregates | body | list of dictionaries | A nested aggregation, such as: [{“name”: “max_first_behavior”, “type”: “max”, “field”: “first_behavior”}]. There is a maximum of 3 nested aggregations per request. |
| sort | body | string | FQL syntax string to sort bucket results. _count - sort by document count. _term - sort by the string value alphabetically. Supports asc and desc using \| format. Example: _count\|desc |
| time_zone | body | string | Time zone for bucket results. |
| type | body | string | Type of aggregation. Valid values include: date_histogram, date_range, terms, range, cardinality, max, min, avg, sum, percentiles. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_scheduled_scans(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_scheduled_scans(date_ranges="string", exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = [ { "date_ranges": [ { "from": "string", "to": "string" } ], "exclude": "string", "extended_bounds": { "max": "string", "min": "string" }, "field": "string", "filter": "string", "filters_spec": { "filters": {}, "other_bucket": boolean, "other_bucket_key": "string" }, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": [ { "from": integer, "to": integer } ], "size": integer, "sort": "string", "sub_aggregates": [ { "date_ranges": ["string"], "exclude": "string", "extended_bounds": {}, "field": "string", "filter": "string", "filters_spec": {}, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": ["string"], "size": integer, "sort": "string", "sub_aggregates": ["string"], "time_zone": "string", "type": "string" } ], "time_zone": "string", "type": "string" }]
response = falcon.command("aggregate_scheduled_scans", 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/ods" "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) }
from := "string" to := "string" exclude := "string" field := "string" filter := "string" from := integer include := "string" interval := "string" max_doc_count := integer min_doc_count := integer missing := "string" name := "string" q := "string" From := integer To := integer size := integer sort := "string" time_zone := "string" type := "string"
response, err := client.Ods.AggregateScheduledScans( &ods.AggregateScheduledScansParams{ Body: []*models.MsaAggregateQueryRequest{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{}, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{}, Size: &size, Sort: &sort, SubAggregates: []interface{}{}, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, TimeZone: &time_zone, Type: &type, }, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.aggregateScheduledScans( [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [], exclude: "string", extendedBounds: {}, field: "string", filter: "string", filtersSpec: {}, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [], size: integer, sort: "string", subAggregates: [], timeZone: "string", type: "string" }], timeZone: "string", type: "string" }], timeZone: "string", type: "string"}] // body);
console.log(response);use rusty_falcon::apis::ods_api::aggregate_scheduled_scans;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaAggregateQueryRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = vec![MsaAggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }];
let response = aggregate_scheduled_scans( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = [Falcon::MsaAggregateQueryRequest.new( date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [{ from: 'string', to: 'string' }], exclude: 'string', extended_bounds: { max: 'string', min: 'string' }, field: 'string', filter: 'string', filters_spec: { filters: {}, other_bucket: boolean, other_bucket_key: 'string' }, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [{ From: integer, To: integer }], size: integer, sort: 'string', sub_aggregates: [{ date_ranges: [], exclude: 'string', extended_bounds: {}, field: 'string', filter: 'string', filters_spec: {}, from: integer, include: 'string', interval: 'string', max_doc_count: integer, min_doc_count: integer, missing: 'string', name: 'string', percents: [], q: 'string', ranges: [], size: integer, sort: 'string', sub_aggregates: [], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string' }], time_zone: 'string', type: 'string')]
response = api.aggregate_scheduled_scans(body)
puts responseget_malicious_files_by_ids
Section titled “get_malicious_files_by_ids”Get malicious files by ids.
get_malicious_filesParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Malicious file IDs to retrieve. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_malicious_files(ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_malicious_files_by_ids(ids=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("get_malicious_files_by_ids", ids=id_list)print(response)Get-FalconScanFile -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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.Ods.GetMaliciousFilesByIds( &ods.GetMaliciousFilesByIdsParams{ Ids: []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: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.getMaliciousFilesByIds(["ID1", "ID2", "ID3"]); // ids
console.log(response);use rusty_falcon::apis::ods_api::get_malicious_files_by_ids;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_malicious_files_by_ids( &falcon.cfg, // configuration vec!["string".to_string()], // ids ).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::Ods.new
response = api.get_malicious_files_by_ids(['ID1', 'ID2', 'ID3'])
puts responsecancel_scans
Section titled “cancel_scans”Cancel ODS scans for the given scan ids.
cancel_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Malicious file IDs to retrieve. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.cancel_scans(ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.cancel_scans(ids=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']
body_payload = { "ids": ["string"]}
response = falcon.command("cancel_scans", body=body_payload)print(response)Stop-FalconScan -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods" "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) }
response, err := client.Ods.CancelScans( &ods.CancelScansParams{ Body: &models.EntitiesODSCancelScanRequest{ Ids: []string{"string"}, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.cancelScans( { ids: []} // body);
console.log(response);use rusty_falcon::apis::ods_api::cancel_scans;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::EntitiesOdsCancelScanRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = EntitiesOdsCancelScanRequest { ids: vec!["string".to_string()], ..Default::default() };
let response = cancel_scans( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = Falcon::EntitiesODSCancelScanRequest.new( ids: [])
response = api.cancel_scans(body)
puts responseget_scan_host_metadata_by_ids
Section titled “get_scan_host_metadata_by_ids”Get scan hosts by ids.
get_scan_hostsParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Scan IDs to retrieve hosts for. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scan_hosts(ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scan_host_metadata_by_ids(ids=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("get_scan_host_metadata_by_ids", ids=id_list)print(response)Get-FalconScanHost -Filter "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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.Ods.GetScanHostMetadataByIds( &ods.GetScanHostMetadataByIdsParams{ Ids: []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: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.getScanHostMetadataByIds(["ID1", "ID2", "ID3"]); // ids
console.log(response);use rusty_falcon::apis::ods_api::get_scan_host_metadata_by_ids;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_scan_host_metadata_by_ids( &falcon.cfg, // configuration vec!["string".to_string()], // ids ).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::Ods.new
response = api.get_scan_host_metadata_by_ids(['ID1', 'ID2', 'ID3'])
puts responseget_scans_by_scan_ids_v1
Section titled “get_scans_by_scan_ids_v1”Get Scans by IDs.
get_scans_by_scan_ids_v1Parameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Scan IDs to retrieve. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
Examples coming soon.
get_scans_by_scan_ids_v2
Section titled “get_scans_by_scan_ids_v2”Get Scans by IDs.
get_scans_by_scan_ids_v2Parameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Scan IDs to retrieve. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scans(ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scans_by_scan_ids_v2(ids=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("get_scans_by_scan_ids_v2", ids=id_list)print(response)Get-FalconScan -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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.Ods.GetScansByScanIdsV2( &ods.GetScansByScanIdsV2Params{ Ids: []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: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.getScansByScanIdsV2(["ID1", "ID2", "ID3"]); // ids
console.log(response);use rusty_falcon::apis::ods_api::get_scans_by_scan_ids_v2;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_scans_by_scan_ids_v2( &falcon.cfg, // configuration vec!["string".to_string()], // ids ).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::Ods.new
response = api.get_scans_by_scan_ids_v2(['ID1', 'ID2', 'ID3'])
puts responsecreate_scan
Section titled “create_scan”Create ODS scan and start or schedule scan for the given scan request.
create_scanParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| body | body | dictionary | Full body payload in JSON format. |
| cloud_ml_level_detection | body | integer | ML Detection level for the scan. |
| cloud_ml_level_prevention | body | integer | ML Prevention level for the scan. |
| cpu_priority | body | integer | Set the scan CPU priority. |
| description | body | string | Scan description. |
| endpoint_notification | body | boolean | Flag indicating if the endpoint should be notified of the results. |
| file_paths | body | list of strings | List of file paths to be scanned. |
| host_groups | body | list of strings | List of host groups to be scanned. |
| initiated_from | body | string | Scan origination. |
| max_duration | body | integer | Maximum time (in seconds) the scan is allowed to execute. |
| max_file_size | body | integer | Maximum file size (in bytes) to be scanned. |
| pause_duration | body | integer | Amount of time (in seconds) for scan pauses. |
| quarantine | body | boolean | Flag indicating if identified threats should be quarantined. |
| scan_exclusions | body | list of strings | List of excuded files or locations for this scan. |
| sensor_ml_level_detection | body | integer | Sensor ML detection level. |
| sensor_ml_level_prevention | body | integer | Sensor ML prevention level. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.create_scan(cloud_ml_level_detection=integer, cloud_ml_level_prevention=integer, cpu_priority=integer, description="string", endpoint_notification=boolean, file_paths=["string"], host_groups=["string"], hosts=["string"], ignored_by_channelfile=boolean, initiated_from="string", interval=integer, max_duration=integer, max_file_size=integer, pause_duration=integer, quarantine=boolean, scan_exclusions=["string"], start_timestamp="string", sensor_ml_level_detection=integer, sensor_ml_level_prevention=integer)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.create_scan(cloud_ml_level_detection=integer, cloud_ml_level_prevention=integer, cpu_priority=integer, description="string", endpoint_notification=boolean, file_paths=["string"], host_groups=["string"], hosts=["string"], ignored_by_channelfile=boolean, initiated_from="string", interval=integer, max_duration=integer, max_file_size=integer, pause_duration=integer, quarantine=boolean, scan_exclusions=["string"], start_timestamp="string", sensor_ml_level_detection=integer, sensor_ml_level_prevention=integer)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "cloud_ml_level_detection": integer, "cloud_ml_level_prevention": integer, "cloud_pup_adware_level_detection": integer, "cloud_pup_adware_level_prevention": integer, "cpu_priority": integer, "description": "string", "endpoint_notification": boolean, "file_paths": ["string"], "host_groups": ["string"], "hosts": ["string"], "initiated_from": "string", "mac_cloud_ml_level_detection": integer, "mac_cloud_ml_level_prevention": integer, "mac_cloud_pup_adware_level_detection": integer, "mac_cloud_pup_adware_level_prevention": integer, "mac_scan_exclusions": ["string"], "mac_scan_inclusions": ["string"], "mac_sensor_ml_level_detection": integer, "mac_sensor_ml_level_prevention": integer, "mac_sensor_pup_adware_level_detection": integer, "mac_sensor_pup_adware_level_prevention": integer, "max_duration": integer, "pause_duration": integer, "quarantine": boolean, "scan_exclusions": ["string"], "scan_inclusions": ["string"], "sensor_ml_level_detection": integer, "sensor_ml_level_prevention": integer}
response = falcon.command("create_scan", body=body_payload)print(response)Start-FalconScan -FilePath @("ID1", "ID2") ` -SensorDetection "string" ` -SensorPrevention "string" ` -CloudDetection "string" ` -CloudPrevention "string" ` -CloudPupDetection "string" ` -CloudPupPrevention "string" ` -CpuPriority "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods" "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) }
cloud_ml_level_detection := integer cloud_ml_level_prevention := integer cloud_pup_adware_level_detection := integer cloud_pup_adware_level_prevention := integer cpu_priority := integer description := "string" endpoint_notification := boolean initiated_from := "string" mac_cloud_ml_level_detection := integer mac_cloud_ml_level_prevention := integer mac_cloud_pup_adware_level_detection := integer mac_cloud_pup_adware_level_prevention := integer mac_sensor_ml_level_detection := integer mac_sensor_ml_level_prevention := integer mac_sensor_pup_adware_level_detection := integer mac_sensor_pup_adware_level_prevention := integer max_duration := integer pause_duration := integer quarantine := boolean sensor_ml_level_detection := integer sensor_ml_level_prevention := integer
response, err := client.Ods.CreateScan( &ods.CreateScanParams{ Body: &models.EntitiesODSScanRequest{ CloudMlLevelDetection: &cloud_ml_level_detection, CloudMlLevelPrevention: &cloud_ml_level_prevention, CloudPupAdwareLevelDetection: &cloud_pup_adware_level_detection, CloudPupAdwareLevelPrevention: &cloud_pup_adware_level_prevention, CpuPriority: &cpu_priority, Description: &description, EndpointNotification: &endpoint_notification, FilePaths: []string{"string"}, HostGroups: []string{"string"}, Hosts: []string{"string"}, InitiatedFrom: &initiated_from, MacCloudMlLevelDetection: &mac_cloud_ml_level_detection, MacCloudMlLevelPrevention: &mac_cloud_ml_level_prevention, MacCloudPupAdwareLevelDetection: &mac_cloud_pup_adware_level_detection, MacCloudPupAdwareLevelPrevention: &mac_cloud_pup_adware_level_prevention, MacScanExclusions: []string{"string"}, MacScanInclusions: []string{"string"}, MacSensorMlLevelDetection: &mac_sensor_ml_level_detection, MacSensorMlLevelPrevention: &mac_sensor_ml_level_prevention, MacSensorPupAdwareLevelDetection: &mac_sensor_pup_adware_level_detection, MacSensorPupAdwareLevelPrevention: &mac_sensor_pup_adware_level_prevention, MaxDuration: &max_duration, PauseDuration: &pause_duration, Quarantine: &quarantine, ScanExclusions: []string{"string"}, ScanInclusions: []string{"string"}, SensorMlLevelDetection: &sensor_ml_level_detection, SensorMlLevelPrevention: &sensor_ml_level_prevention, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.createScan( { cloudMlLevelDetection: integer, cloudMlLevelPrevention: integer, cloudPupAdwareLevelDetection: integer, cloudPupAdwareLevelPrevention: integer, cpuPriority: integer, description: "string", endpointNotification: boolean, filePaths: [], hostGroups: [], hosts: [], initiatedFrom: "string", macCloudMlLevelDetection: integer, macCloudMlLevelPrevention: integer, macCloudPupAdwareLevelDetection: integer, macCloudPupAdwareLevelPrevention: integer, macScanExclusions: [], macScanInclusions: [], macSensorMlLevelDetection: integer, macSensorMlLevelPrevention: integer, macSensorPupAdwareLevelDetection: integer, macSensorPupAdwareLevelPrevention: integer, maxDuration: integer, pauseDuration: integer, quarantine: boolean, scanExclusions: [], scanInclusions: [], sensorMlLevelDetection: integer, sensorMlLevelPrevention: integer} // body);
console.log(response);use rusty_falcon::apis::ods_api::create_scan;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::EntitiesOdsScanRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = EntitiesOdsScanRequest { cloud_ml_level_detection: Some(integer), cloud_ml_level_prevention: Some(integer), cloud_pup_adware_level_detection: Some(integer), cloud_pup_adware_level_prevention: Some(integer), cpu_priority: Some(integer), description: Some("string".to_string()), endpoint_notification: Some(boolean), file_paths: vec!["string".to_string()], host_groups: vec!["string".to_string()], hosts: vec!["string".to_string()], initiated_from: Some("string".to_string()), mac_cloud_ml_level_detection: Some(integer), mac_cloud_ml_level_prevention: Some(integer), mac_cloud_pup_adware_level_detection: Some(integer), mac_cloud_pup_adware_level_prevention: Some(integer), mac_scan_exclusions: vec!["string".to_string()], mac_scan_inclusions: vec!["string".to_string()], mac_sensor_ml_level_detection: Some(integer), mac_sensor_ml_level_prevention: Some(integer), mac_sensor_pup_adware_level_detection: Some(integer), mac_sensor_pup_adware_level_prevention: Some(integer), max_duration: Some(integer), pause_duration: Some(integer), quarantine: Some(boolean), scan_exclusions: vec!["string".to_string()], scan_inclusions: vec!["string".to_string()], sensor_ml_level_detection: Some(integer), sensor_ml_level_prevention: Some(integer), ..Default::default() };
let response = create_scan( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = Falcon::EntitiesODSScanRequest.new( cloud_ml_level_detection: integer, cloud_ml_level_prevention: integer, cloud_pup_adware_level_detection: integer, cloud_pup_adware_level_prevention: integer, cpu_priority: integer, description: 'string', endpoint_notification: boolean, file_paths: [], host_groups: [], hosts: [], initiated_from: 'string', mac_cloud_ml_level_detection: integer, mac_cloud_ml_level_prevention: integer, mac_cloud_pup_adware_level_detection: integer, mac_cloud_pup_adware_level_prevention: integer, mac_scan_exclusions: [], mac_scan_inclusions: [], mac_sensor_ml_level_detection: integer, mac_sensor_ml_level_prevention: integer, mac_sensor_pup_adware_level_detection: integer, mac_sensor_pup_adware_level_prevention: integer, max_duration: integer, pause_duration: integer, quarantine: boolean, scan_exclusions: [], scan_inclusions: [], sensor_ml_level_detection: integer, sensor_ml_level_prevention: integer)
response = api.create_scan(body)
puts responseget_scheduled_scans_by_scan_ids
Section titled “get_scheduled_scans_by_scan_ids”Get ScheduledScans by IDs.
get_scheduled_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| ids | query | string or list of strings | Scan IDs to retrieve. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scheduled_scans(ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scheduled_scans_by_scan_ids(ids=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("get_scheduled_scans_by_scan_ids", ids=id_list)print(response)Get-FalconScheduledScan -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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.Ods.GetScheduledScansByScanIds( &ods.GetScheduledScansByScanIdsParams{ Ids: []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: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.getScheduledScansByScanIds(["ID1", "ID2", "ID3"]); // ids
console.log(response);use rusty_falcon::apis::ods_api::get_scheduled_scans_by_scan_ids;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = get_scheduled_scans_by_scan_ids( &falcon.cfg, // configuration vec!["string".to_string()], // ids ).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::Ods.new
response = api.get_scheduled_scans_by_scan_ids(['ID1', 'ID2', 'ID3'])
puts responseschedule_scan
Section titled “schedule_scan”Create ODS scan and start or schedule scan for the given scan request.
schedule_scanParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| body | body | dictionary | Full body payload in JSON format. |
| cloud_ml_level_detection | body | integer | ML Detection level for the scan. |
| cloud_ml_level_prevention | body | integer | ML Prevention level for the scan. |
| cpu_priority | body | integer | Set the scan CPU priority. |
| description | body | string | Scan description. |
| endpoint_notification | body | boolean | Flag indicating if the endpoint should be notified of the results. |
| file_paths | body | list of strings | List of file paths to be scanned. |
| host_groups | body | list of strings | List of host groups to be scanned. |
| initiated_from | body | string | Scan origination. |
| max_duration | body | integer | Maximum time (in seconds) the scan is allowed to execute. |
| max_file_size | body | integer | Maximum file size (in bytes) to be scanned. |
| pause_duration | body | integer | Amount of time (in seconds) for scan pauses. |
| quarantine | body | boolean | Flag indicating if identified threats should be quarantined. |
| scan_exclusions | body | list of strings | List of excluded files or locations for this scan. |
| scan_inclusions | body | list of strings | List of included files or locations for this scan. |
| schedule | body | dictionary | Dictionary container the schedule for the scan. This dictionary will contain the ignored_by_channelfile (boolean), interval (integer) and start_timestamp (string) keys. |
| sensor_ml_level_detection | body | integer | Sensor ML detection level. |
| sensor_ml_level_prevention | body | integer | Sensor ML prevention level. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
schedule = { "ignored_by_channelfile": true, "interval": 0, "start_timestamp": "string"}
response = falcon.schedule_scan(cloud_ml_level_detection=integer, cloud_ml_level_prevention=integer, cpu_priority=integer, description="string", endpoint_notification=boolean, file_paths=["string"], host_groups=["string"], ignored_by_channelfile=boolean, initiated_from="string", interval=integer, max_duration=integer, max_file_size=integer, pause_duration=integer, quarantine=boolean, scan_exclusions=["string"], scan_inclusions=["string"], schedule=schedule, start_timestamp="string", sensor_ml_level_detection=integer, sensor_ml_level_prevention=integer)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
schedule = { "ignored_by_channelfile": true, "interval": 0, "start_timestamp": "string"}
response = falcon.schedule_scan(cloud_ml_level_detection=integer, cloud_ml_level_prevention=integer, cpu_priority=integer, description="string", endpoint_notification=boolean, file_paths=["string"], host_groups=["string"], ignored_by_channelfile=boolean, initiated_from="string", interval=integer, max_duration=integer, max_file_size=integer, pause_duration=integer, quarantine=boolean, scan_exclusions=["string"], scan_inclusions=["string"], schedule=schedule, start_timestamp="string", sensor_ml_level_detection=integer, sensor_ml_level_prevention=integer)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "cloud_ml_level_detection": integer, "cloud_ml_level_prevention": integer, "cloud_pup_adware_level_detection": integer, "cloud_pup_adware_level_prevention": integer, "cpu_priority": integer, "description": "string", "endpoint_notification": boolean, "file_paths": ["string"], "host_groups": ["string"], "initiated_from": "string", "mac_cloud_ml_level_detection": integer, "mac_cloud_ml_level_prevention": integer, "mac_cloud_pup_adware_level_detection": integer, "mac_cloud_pup_adware_level_prevention": integer, "mac_scan_exclusions": ["string"], "mac_scan_inclusions": ["string"], "mac_sensor_ml_level_detection": integer, "mac_sensor_ml_level_prevention": integer, "mac_sensor_pup_adware_level_detection": integer, "mac_sensor_pup_adware_level_prevention": integer, "max_duration": integer, "max_file_size": integer, "pause_duration": integer, "quarantine": boolean, "scan_exclusions": ["string"], "scan_inclusions": ["string"], "schedule": { "ignored_by_channelfile": boolean, "interval": integer, "start_timestamp": "string" }, "sensor_ml_level_detection": integer, "sensor_ml_level_prevention": integer}
response = falcon.command("schedule_scan", body=body_payload)print(response)New-FalconScheduledScan -StartTime "string" ` -Repeat "string" ` -FilePath @("ID1", "ID2") ` -SensorDetection "string" ` -SensorPrevention "string" ` -CloudDetection "string" ` -CloudPrevention "string" ` -CloudPupDetection "string" ` -CloudPupPrevention "string" ` -CpuPriority "string" ` -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods" "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) }
cloud_ml_level_detection := integer cloud_ml_level_prevention := integer cloud_pup_adware_level_detection := integer cloud_pup_adware_level_prevention := integer cpu_priority := integer description := "string" endpoint_notification := boolean initiated_from := "string" mac_cloud_ml_level_detection := integer mac_cloud_ml_level_prevention := integer mac_cloud_pup_adware_level_detection := integer mac_cloud_pup_adware_level_prevention := integer mac_sensor_ml_level_detection := integer mac_sensor_ml_level_prevention := integer mac_sensor_pup_adware_level_detection := integer mac_sensor_pup_adware_level_prevention := integer max_duration := integer max_file_size := integer pause_duration := integer quarantine := boolean sensor_ml_level_detection := integer sensor_ml_level_prevention := integer
response, err := client.Ods.ScheduleScan( &ods.ScheduleScanParams{ Body: &models.EntitiesODSScheduleScanRequest{ CloudMlLevelDetection: &cloud_ml_level_detection, CloudMlLevelPrevention: &cloud_ml_level_prevention, CloudPupAdwareLevelDetection: &cloud_pup_adware_level_detection, CloudPupAdwareLevelPrevention: &cloud_pup_adware_level_prevention, CpuPriority: &cpu_priority, Description: &description, EndpointNotification: &endpoint_notification, FilePaths: []string{"string"}, HostGroups: []string{"string"}, InitiatedFrom: &initiated_from, MacCloudMlLevelDetection: &mac_cloud_ml_level_detection, MacCloudMlLevelPrevention: &mac_cloud_ml_level_prevention, MacCloudPupAdwareLevelDetection: &mac_cloud_pup_adware_level_detection, MacCloudPupAdwareLevelPrevention: &mac_cloud_pup_adware_level_prevention, MacScanExclusions: []string{"string"}, MacScanInclusions: []string{"string"}, MacSensorMlLevelDetection: &mac_sensor_ml_level_detection, MacSensorMlLevelPrevention: &mac_sensor_ml_level_prevention, MacSensorPupAdwareLevelDetection: &mac_sensor_pup_adware_level_detection, MacSensorPupAdwareLevelPrevention: &mac_sensor_pup_adware_level_prevention, MaxDuration: &max_duration, MaxFileSize: &max_file_size, PauseDuration: &pause_duration, Quarantine: &quarantine, ScanExclusions: []string{"string"}, ScanInclusions: []string{"string"}, Schedule: &struct{}{}, SensorMlLevelDetection: &sensor_ml_level_detection, SensorMlLevelPrevention: &sensor_ml_level_prevention, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.scheduleScan( { cloudMlLevelDetection: integer, cloudMlLevelPrevention: integer, cloudPupAdwareLevelDetection: integer, cloudPupAdwareLevelPrevention: integer, cpuPriority: integer, description: "string", endpointNotification: boolean, filePaths: [], hostGroups: [], initiatedFrom: "string", macCloudMlLevelDetection: integer, macCloudMlLevelPrevention: integer, macCloudPupAdwareLevelDetection: integer, macCloudPupAdwareLevelPrevention: integer, macScanExclusions: [], macScanInclusions: [], macSensorMlLevelDetection: integer, macSensorMlLevelPrevention: integer, macSensorPupAdwareLevelDetection: integer, macSensorPupAdwareLevelPrevention: integer, maxDuration: integer, maxFileSize: integer, pauseDuration: integer, quarantine: boolean, scanExclusions: [], scanInclusions: [], schedule: { ignoredByChannelfile: boolean, interval: integer, startTimestamp: "string" }, sensorMlLevelDetection: integer, sensorMlLevelPrevention: integer} // body);
console.log(response);use rusty_falcon::apis::ods_api::schedule_scan;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::EntitiesOdsScheduleScanRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = EntitiesOdsScheduleScanRequest { cloud_ml_level_detection: Some(integer), cloud_ml_level_prevention: Some(integer), cloud_pup_adware_level_detection: Some(integer), cloud_pup_adware_level_prevention: Some(integer), cpu_priority: Some(integer), description: Some("string".to_string()), endpoint_notification: Some(boolean), file_paths: vec!["string".to_string()], host_groups: vec!["string".to_string()], initiated_from: Some("string".to_string()), mac_cloud_ml_level_detection: Some(integer), mac_cloud_ml_level_prevention: Some(integer), mac_cloud_pup_adware_level_detection: Some(integer), mac_cloud_pup_adware_level_prevention: Some(integer), mac_scan_exclusions: vec!["string".to_string()], mac_scan_inclusions: vec!["string".to_string()], mac_sensor_ml_level_detection: Some(integer), mac_sensor_ml_level_prevention: Some(integer), mac_sensor_pup_adware_level_detection: Some(integer), mac_sensor_pup_adware_level_prevention: Some(integer), max_duration: Some(integer), max_file_size: Some(integer), pause_duration: Some(integer), quarantine: Some(boolean), scan_exclusions: vec!["string".to_string()], scan_inclusions: vec!["string".to_string()], schedule: Default::default(), sensor_ml_level_detection: Some(integer), sensor_ml_level_prevention: Some(integer), ..Default::default() };
let response = schedule_scan( &falcon.cfg, // configuration body, // body ).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::Ods.new
body = Falcon::EntitiesODSScheduleScanRequest.new( cloud_ml_level_detection: integer, cloud_ml_level_prevention: integer, cloud_pup_adware_level_detection: integer, cloud_pup_adware_level_prevention: integer, cpu_priority: integer, description: 'string', endpoint_notification: boolean, file_paths: [], host_groups: [], initiated_from: 'string', mac_cloud_ml_level_detection: integer, mac_cloud_ml_level_prevention: integer, mac_cloud_pup_adware_level_detection: integer, mac_cloud_pup_adware_level_prevention: integer, mac_scan_exclusions: [], mac_scan_inclusions: [], mac_sensor_ml_level_detection: integer, mac_sensor_ml_level_prevention: integer, mac_sensor_pup_adware_level_detection: integer, mac_sensor_pup_adware_level_prevention: integer, max_duration: integer, max_file_size: integer, pause_duration: integer, quarantine: boolean, scan_exclusions: [], scan_inclusions: [], schedule: { ignored_by_channelfile: boolean, interval: integer, start_timestamp: 'string' }, sensor_ml_level_detection: integer, sensor_ml_level_prevention: integer)
response = api.schedule_scan(body)
puts responsedelete_scheduled_scans
Section titled “delete_scheduled_scans”Delete ODS scheduled-scans for the given scheduled-scan ids.
delete_scheduled_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string or list of strings | FQL compatible filter to use for selecting scan IDs. |
| ids | query | string or list of strings | Scan IDs to delete. |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_scheduled_scans(filter="string", ids=id_list)print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_scheduled_scans(filter="string", ids=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("delete_scheduled_scans", ids=id_list, filter="string")print(response)Remove-FalconScheduledScan -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
filter := "string"
response, err := client.Ods.DeleteScheduledScans( &ods.DeleteScheduledScansParams{ Ids: []string{"ID1", "ID2", "ID3"}, Filter: &filter, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.deleteScheduledScans( ["ID1", "ID2", "ID3"], // ids "string" // filter);
console.log(response);use rusty_falcon::apis::ods_api::delete_scheduled_scans;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = delete_scheduled_scans( &falcon.cfg, // configuration vec!["string".to_string()], // ids Some("string"), // filter ).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::Ods.new
response = api.delete_scheduled_scans(['ID1', 'ID2', 'ID3'])
puts responsequery_malicious_files
Section titled “query_malicious_files”Query malicious files.
query_malicious_filesParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | FQL Syntax formatted string used to limit the results. Available filters: id, cid, host_id, scan_id, host_scan_id, filepath, filename, hash, pattern_id, severity, quarantined, last_updated. |
| limit | query | integer | Maximum number of resources to return. |
| offset | query | integer | Starting index of overall result set from which to return ids. |
| sort | query | string | The property to sort by. (Ex: created_timestamp.desc) |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_malicious_files(filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_malicious_files(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("query_malicious_files", filter="string", offset=integer, limit=integer, sort="string")print(response)Get-FalconScanFile -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset integerpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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) }
offset := int64(0) limit := int64(0)
response, err := client.Ods.QueryMaliciousFiles( &ods.QueryMaliciousFilesParams{ Filter: "string", Offset: &offset, Limit: &limit, Sort: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.queryMaliciousFiles( "string", // filter integer, // offset integer, // limit "string" // sort);
console.log(response);use rusty_falcon::apis::ods_api::query_malicious_files;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_malicious_files( &falcon.cfg, // configuration Some("string"), // filter Some(integer), // offset Some(integer), // limit 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::Ods.new
response = api.query_malicious_files(filter: 'string', offset: integer, limit: integer, sort: 'string')
puts responsequery_scan_host_metadata
Section titled “query_scan_host_metadata”Query scan hosts.
query_scan_hostsParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | FQL Syntax formatted string used to limit the results. Available filters: id, cid, profile_id, host_id, scan_id, host_scan_id, filecount.scanned, filecount.malicious, filecount.quarantined, filecount.skipped, affected_hosts_count, status, severity, started_on, completed_on, last_updated. |
| limit | query | integer | Maximum number of resources to return. |
| offset | query | integer | Starting index of overall result set from which to return ids. |
| sort | query | string | The property to sort by. (Ex: created_timestamp.desc) |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scan_hosts(filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scan_host_metadata(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("query_scan_host_metadata", filter="string", offset=integer, limit=integer, sort="string")print(response)Get-FalconScanHost -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset integerpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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) }
offset := int64(0) limit := int64(0)
response, err := client.Ods.QueryScanHostMetadata( &ods.QueryScanHostMetadataParams{ Filter: "string", Offset: &offset, Limit: &limit, Sort: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.queryScanHostMetadata( "string", // filter integer, // offset integer, // limit "string" // sort);
console.log(response);use rusty_falcon::apis::ods_api::query_scan_host_metadata;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_scan_host_metadata( &falcon.cfg, // configuration Some("string"), // filter Some(integer), // offset Some(integer), // limit 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::Ods.new
response = api.query_scan_host_metadata(filter: 'string', offset: integer, limit: integer, sort: 'string')
puts responsequery_scans
Section titled “query_scans”Query Scans.
query_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | FQL Syntax formatted string used to limit the results. Available filters: id, cid, profile_id, description, description.keyword, aspm.description.keyword, initiated_from, filecount.scanned, filecount.malicious, filecount.quarantined, filecount.skipped, affected_hosts_count, status, severity, scan_started_on, scan_completed_on, created_on, created_by, last_updated. |
| limit | query | integer | Maximum number of resources to return. |
| offset | query | integer | Starting index of overall result set from which to return ids. |
| sort | query | string | The property to sort by. (Ex: created_timestamp.desc) |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scans(filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scans(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("query_scans", filter="string", offset=integer, limit=integer, sort="string")print(response)Get-FalconScan -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset integerpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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) }
offset := int64(0) limit := int64(0)
response, err := client.Ods.QueryScans( &ods.QueryScansParams{ Filter: "string", Offset: &offset, Limit: &limit, Sort: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.queryScans( "string", // filter integer, // offset integer, // limit "string" // sort);
console.log(response);use rusty_falcon::apis::ods_api::query_scans;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_scans( &falcon.cfg, // configuration Some("string"), // filter Some(integer), // offset Some(integer), // limit 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::Ods.new
response = api.query_scans(filter: 'string', offset: integer, limit: integer, sort: 'string')
puts responsequery_scheduled_scans
Section titled “query_scheduled_scans”Query ScheduledScans.
query_scheduled_scansParameters
Section titled “Parameters”| Name | Type | Data type | Description |
|---|---|---|---|
| filter | query | string | FQL Syntax formatted string used to limit the results. Available filters: id, cid, description, aspm.description.keyword, initiated_from, status, schedule.start_timestamp, schedule.Interval, created_on, created_by, last_updated, deleted. |
| limit | query | integer | Maximum number of resources to return. |
| offset | query | integer | Starting index of overall result set from which to return ids. |
| sort | query | string | The property to sort by. (Ex: created_timestamp.desc) |
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
Code Examples
Section titled “Code Examples”from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scheduled_scans(filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import ODS
falcon = ODS(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_scheduled_scans(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("query_scheduled_scans", filter="string", offset=integer, limit=integer, sort="string")print(response)Get-FalconScheduledScan -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset integerpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/ods")
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) }
offset := int64(0) limit := int64(0)
response, err := client.Ods.QueryScheduledScans( &ods.QueryScheduledScansParams{ Filter: "string", Offset: &offset, Limit: &limit, Sort: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.ods.queryScheduledScans( "string", // filter integer, // offset integer, // limit "string" // sort);
console.log(response);use rusty_falcon::apis::ods_api::query_scheduled_scans;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_scheduled_scans( &falcon.cfg, // configuration Some("string"), // filter Some(integer), // offset Some(integer), // limit 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::Ods.new
response = api.query_scheduled_scans(filter: 'string', offset: integer, limit: integer, sort: 'string')
puts response