Message Center
The Message Center service collection provides operations for managing support cases and their associated activities and attachments. Retrieve aggregate case analytics, query and manage case activities, upload and download attachments, create new cases, and search for cases by filter criteria.
| Language | Last Update |
|---|---|
| Python | v1.6.6 |
| PowerShell | v2.2.9 |
| Go | v0.22.0 |
| TypeScript | v0.7.0 |
| Rust | v0.7.1 |
| Ruby | v1.4.0 |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
AggregateCasesaggregate_cases | Retrieve aggregate case values based on the matched filter |
CaseAddActivityadd_case_activity | Add an activity to case. |
CaseAddAttachmentadd_case_attachment | Upload an attachment for the case. |
CaseDownloadAttachmentdownload_case_attachment | retrieves an attachment for the case, given the attachment id |
CreateCaseV2create_case_v2 | create a new case |
GetCaseActivityByIdsget_case_activity | Retrieve activities for given id’s |
GetCaseEntitiesByIDsget_cases | Retrieve message center cases |
QueryActivityByCaseIDquery_activities | Retrieve activities id’s for a case |
QueryCasesIdsByFilterquery_cases | Retrieve case id’s that match the provided filter criteria |
AggregateCases
Section titled “AggregateCases”Retrieve aggregate case values based on the matched filter
Method POST
Route /message-center/aggregates/cases/GET/v1
Scope Message Center: READ
PEP 8
aggregate_casesParameters
Section titled “Parameters”body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
exclude body · string
extended_bounds body · object
field body · string
filter body · string
FQL syntax.
filters_spec body · object
from body · integer
include body · string
interval body · string
Available values (6)
year | month | week |
day | hour | minute |
max_doc_count body · integer
min_doc_count body · integer
Minimum number of documents required to match.
missing body · string
name body · string
Scan name.
percents body · array
q body · string
FQL syntax.
ranges body · array
size body · integer
sort body · string
FQL syntax.
Available values (2)
_countsort by document count
_termsort by the string value alphabetically
sub_aggregates body · array
time_zone body · string
type body · string
String. This method does not support body payload validation.
Available values (10)
date_histogramAggregates counts on a specified time interval. Requires use of “interval” field.
date_rangeAggregates counts on custom defined date range buckets. Can include multiple ranges. (Similar to time series, but the bucket sizes are variable). Date formats to follow ISO 8601.
termsBuckets detections by the value of a specified field. For example, if field used is scenario, then detections will be bucketed by the various detection scenario names.
rangeBuckets detections by specified (numeric) ranges of a specified field. For example, if doing a range aggregation on the max_severity field, the detects will be counted by the specified ranges of severity.
cardinalityReturns the count of distinct values in a specified field.
maxReturns the maximum value of a specified field.
minReturns the minimum value of a specified field.
avgReturns the average value of the specified field.
sumReturns the total sum of all values for the specified field.
percentilesReturns the following percentiles for the specified field: 1, 5, 25, 50, 75, 95, 99.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
date_ranges = [ { "from": "string", "to": "string" }]
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_cases(date_ranges=date_ranges, field="string", filter="string", interval="string", 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 MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
date_ranges = [ { "from": "string", "to": "string" }]
ranges = [ { "From": 0, "To": 0 }]
response = falcon.AggregateCases(date_ranges=date_ranges, field="string", filter="string", interval="string", 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("AggregateCases", 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/message_center" "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" max := "string" min := "string" field := "string" filter := "string" otherBucket := boolean otherBucketKey := "string" from2 := int32(0) include := "string" interval := "string" missing := "string" name := "string" q := "string" from3 := float64(0) to2 := float64(0) size := int32(0) sort := "string" exclude2 := "string" field2 := "string" filter2 := "string" from4 := int32(0) include2 := "string" interval2 := "string" missing2 := "string" name2 := "string" q2 := "string" size2 := int32(0) sort2 := "string" timeZone := "string" typeVar := "string" timeZone2 := "string" typeVar2 := "string"
response, err := client.MessageCenter.AggregateCases( &message_center.AggregateCasesParams{ Body: []*models.MsaAggregateQueryRequest{ { DateRanges: []*models.MsaDateRangeSpec{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &models.MsaExtendedBoundsSpec{ Max: &max, Min: &min, }, Field: &field, Filter: &filter, FiltersSpec: &models.MsaAPIFiltersSpec{ Filters: map[string]string{}, OtherBucket: &otherBucket, OtherBucketKey: &otherBucketKey, }, From: &from2, Include: &include, Interval: &interval, MaxDocCount: integer, MinDocCount: integer, Missing: &missing, Name: &name, Percents: []float64{integer}, Q: &q, Ranges: []*models.MsaRangeSpec{ { From: &from3, To: &to2, }, }, Size: &size, Sort: &sort, SubAggregates: []*models.MsaAggregateQueryRequest{ { DateRanges: []*models.MsaDateRangeSpec{}, Exclude: &exclude2, ExtendedBounds: &models.MsaExtendedBoundsSpec{}, Field: &field2, Filter: &filter2, FiltersSpec: &models.MsaAPIFiltersSpec{}, From: &from4, Include: &include2, Interval: &interval2, MaxDocCount: integer, MinDocCount: integer, Missing: &missing2, Name: &name2, Percents: []float64{integer}, Q: &q2, Ranges: []*models.MsaRangeSpec{}, Size: &size2, Sort: &sort2, SubAggregates: []*models.MsaAggregateQueryRequest{}, TimeZone: &timeZone, Type: &typeVar, }, }, TimeZone: &timeZone2, Type: &typeVar2, }, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.aggregateCases( [{ 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", 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: [], 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::message_center_api::aggregate_cases;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![rusty_falcon::models::MsaDateRangeSpec { from: "string".to_string(), to: "string".to_string(), ..Default::default() }], exclude: "string".to_string(), field: "string".to_string(), filter: "string".to_string(), from: integer, include: "string".to_string(), interval: "string".to_string(), missing: "string".to_string(), name: "string".to_string(), q: "string".to_string(), ranges: vec![rusty_falcon::models::MsaRangeSpec { from: number, to: number, ..Default::default() }], size: integer, sort: "string".to_string(), sub_aggregates: vec![rusty_falcon::models::MsaAggregateQueryRequest { date_ranges: vec![rusty_falcon::models::MsaDateRangeSpec { from: "string".to_string(), to: "string".to_string(), ..Default::default() }], exclude: "string".to_string(), field: "string".to_string(), filter: "string".to_string(), from: integer, include: "string".to_string(), interval: "string".to_string(), missing: "string".to_string(), name: "string".to_string(), q: "string".to_string(), ranges: vec![rusty_falcon::models::MsaRangeSpec { from: number, to: number, ..Default::default() }], size: integer, sort: "string".to_string(), sub_aggregates: vec![rusty_falcon::models::MsaAggregateQueryRequest { date_ranges: vec![], exclude: "string".to_string(), field: "string".to_string(), filter: "string".to_string(), from: integer, include: "string".to_string(), interval: "string".to_string(), missing: "string".to_string(), name: "string".to_string(), q: "string".to_string(), ranges: vec![], size: integer, sort: "string".to_string(), sub_aggregates: vec![], time_zone: "string".to_string(), r#type: "string".to_string(), ..Default::default() }], time_zone: "string".to_string(), r#type: "string".to_string(), ..Default::default() }], time_zone: "string".to_string(), r#type: "string".to_string(), ..Default::default() }];
let response = aggregate_cases( &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::MessageCenter.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_cases(body)
puts responseResponses
[ { "buckets": [], "doc_count_error_upper_bound": 0, "hits": {}, "name": "string", "sum_other_doc_count": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CaseAddActivity
Section titled “CaseAddActivity”Add an activity to case.
Method POST
Route /message-center/entities/case-activity/v1
Scope Message Center: WRITE
PEP 8
add_case_activityParameters
Section titled “Parameters”body body · dictionary
Full body payload as JSON formatted dictionary.
body body · string
case_id body · string
Case ID.
type body · string
Activity type. Only activities of type comment can be added via the API. The keyword
activity_type can also be used to specify this value.user_uuid body · string
UUID of the user related to the activity.
content body · string
Comment content. Used for the
body field within the body payload.Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.add_case_activity(content="string", case_id="string", type="string", user_uuid="string")print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.CaseAddActivity(content="string", case_id="string", type="string", user_uuid="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "body": "string", "case_id": "string", "type": "string", "user_uuid": "string"}
response = falcon.command("CaseAddActivity", body=body_payload)print(response)Add-FalconCompleteActivity -Type "string" ` -Content "string" ` -UserId "string" ` -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center" "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) }
body := "string" caseID := "string" typeVar := "string" userUUID := "string"
response, err := client.MessageCenter.CaseAddActivity( &message_center.CaseAddActivityParams{ Body: &models.MessagecenterActivityCreationRequest{ Body: &body, CaseID: &caseID, Type: &typeVar, UserUUID: &userUUID, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.caseAddActivity( { body: "string", caseId: "string", type: "string", userUuid: "string"} // body);
console.log(response);use rusty_falcon::apis::message_center_api::case_add_activity;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MessagecenterActivityCreationRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MessagecenterActivityCreationRequest { body: "string".to_string(), case_id: "string".to_string(), r#type: "string".to_string(), user_uuid: "string".to_string(), ..Default::default() };
let response = case_add_activity( &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::MessageCenter.new
body = Falcon::MessagecenterActivityCreationRequest.new( body: 'string', case_id: 'string', type: 'string', user_uuid: 'string')
response = api.case_add_activity(body)
puts responseResponses
{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CaseAddAttachment
Section titled “CaseAddAttachment”Upload an attachment for the case.
Method POST
Route /message-center/entities/case-attachment/v1
Scope Message Center: WRITE
PEP 8
add_case_attachmentParameters
Section titled “Parameters”case_id body · string
Case ID
user_uuid body · string
User UUID
file body · file
File Body
file_data body · string
Content of the attachment in binary format. Max file size is 15 MB. ‘sample’ and ‘upfile’ are also accepted as this parameter. Filename must start with [a-zA-Z0-9_-] and has a maximum of 255 characters. Allowed characters in file name are [a-zA-Z0-9-_.]. Accepted attachment formats: Images: .png, .bmp, .jpg, .jpeg, .gif Adobe PDF: .pdf Office documents: .doc, .docx, .xls, .xlsx, .pptx Text: .txt, .csv
file_name body · string
File name for the attached file.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.add_case_attachment(case_id="string", file_data="string", file_name="string", user_uuid="string")print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.CaseAddAttachment(case_id="string", file_data="string", file_name="string", user_uuid="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("CaseAddAttachment", case_id="string", user_uuid="string", file_data=open("filename", "rb").read())print(response)Send-FalconCompleteAttachment -Path "string" ` -UserId "string" ` -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center")
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.MessageCenter.CaseAddAttachment( &message_center.CaseAddAttachmentParams{ CaseID: "string", UserUUID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.caseAddAttachment( "string", // caseId "string", // userUuid new Blob([]) // file);
console.log(response);use rusty_falcon::apis::message_center_api::case_add_attachment;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = case_add_attachment( &falcon.cfg, // configuration "string", // case_id "string", // user_uuid std::path::PathBuf::default(), // file ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::MessageCenter.new
response = api.case_add_attachment('string', 'string', File.open('path/to/file', 'rb'))
puts responseResponses
[ { "created_by": "string", "created_time": "string", "id": "string", "mime_type": "string", "name": "string", "size": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CaseDownloadAttachment
Section titled “CaseDownloadAttachment”retrieves an attachment for the case, given the attachment id
Method GET
Route /message-center/entities/case-attachment/v1
Scope Message Center: READ
PEP 8
download_case_attachmentParameters
Section titled “Parameters”id query · string
attachment ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
ids body · string
Attachment ID to retrieve.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.download_case_attachment(ids=id_list)print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.CaseDownloadAttachment(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("CaseDownloadAttachment", id="string")print(response)Receive-FalconCompleteAttachment -Path "string" -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center")
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.MessageCenter.CaseDownloadAttachment( &message_center.CaseDownloadAttachmentParams{ ID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.caseDownloadAttachment("string"); // id
console.log(response);use rusty_falcon::apis::message_center_api::case_download_attachment;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = case_download_attachment( &falcon.cfg, // configuration "string", // id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::MessageCenter.new
response = api.case_download_attachment('string')
puts responseResponses
{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}CreateCaseV2
Section titled “CreateCaseV2”create a new case
Method POST
Route /message-center/entities/case/v2
Scope Message Center: WRITE
PEP 8
create_case_v2Parameters
Section titled “Parameters”body body · dictionary
Full body payload as JSON formatted dictionary.
body body · string
detections body · array
List of detections to attach to the case.
incidents body · array
List of incidents to attach to the case.
malware_submission_id body · string
recon_rule_type body · string
title body · string
Case title.
type body · string
Case type. The keyword
case_type can also be used to specify this value.user_uuid body · string
UUID of the user related to the case.
content body · string
Case content. Used for the
body field within the body payload.Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
detections = [ { "id": "string", "product": "string", "url": "string" }]
incidents = [ { "id": "string", "url": "string" }]
response = falcon.create_case_v2(content="string", detections=detections, incidents=incidents, title="string", type="string", user_uuid="string")print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
detections = [ { "id": "string", "product": "string", "url": "string" }]
incidents = [ { "id": "string", "url": "string" }]
response = falcon.CreateCaseV2(content="string", detections=detections, incidents=incidents, title="string", type="string", user_uuid="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "body": "string", "detections": [ { "id": "string", "product": "string", "url": "string" } ], "incidents": [ { "id": "string", "url": "string" } ], "malware_submission_id": "string", "recon_rule_type": "string", "title": "string", "type": "string", "user_uuid": "string"}
response = falcon.command("CreateCaseV2", body=body_payload)print(response)New-FalconCompleteCase -Type "string" ` -Title "string" ` -Content "string" ` -UserId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center" "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) }
body := "string" id := "string" product := "string" url := "string" id2 := "string" url2 := "string" malwareSubmissionID := "string" reconRuleType := "string" title := "string" typeVar := "string"
response, err := client.MessageCenter.CreateCaseV2( &message_center.CreateCaseV2Params{ Body: &models.MessagecenterCaseCreationRequestV2{ Body: &body, Detections: []*models.MessagesAlert{ { ID: &id, Product: &product, URL: &url, }, }, Incidents: []*models.MessagesIncident{ { ID: &id2, URL: &url2, }, }, MalwareSubmissionID: &malwareSubmissionID, ReconRuleType: &reconRuleType, Title: &title, Type: &typeVar, UserUUID: "string", }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.createCaseV2( { body: "string", detections: [{ id: "string", product: "string", url: "string" }], incidents: [{ id: "string", url: "string" }], malwareSubmissionId: "string", reconRuleType: "string", title: "string", type: "string", userUuid: "string"} // body);
console.log(response);use rusty_falcon::apis::message_center_api::create_case_v2;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MessagecenterCaseCreationRequestV2;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MessagecenterCaseCreationRequestV2 { body: "string".to_string(), detections: vec![rusty_falcon::models::MessagesAlert { id: "string".to_string(), product: "string".to_string(), url: "string".to_string(), ..Default::default() }], incidents: vec![rusty_falcon::models::MessagesIncident { id: "string".to_string(), url: "string".to_string(), ..Default::default() }], malware_submission_id: "string".to_string(), recon_rule_type: "string".to_string(), title: "string".to_string(), r#type: "string".to_string(), ..Default::default() };
let response = create_case_v2( &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::MessageCenter.new
body = Falcon::MessagecenterCaseCreationRequestV2.new( body: 'string', detections: [{ id: 'string', product: 'string', url: 'string' }], incidents: [{ id: 'string', url: 'string' }], malware_submission_id: 'string', recon_rule_type: 'string', title: 'string', type: 'string', user_uuid: 'string')
response = api.create_case_v2(body)
puts responseResponses
[ { "id": "string", "path": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetCaseActivityByIds
Section titled “GetCaseActivityByIds”Retrieve activities for given id’s
Method POST
Route /message-center/entities/case-activities/GET/v1
Scope Message Center: READ
PEP 8
get_case_activityParameters
Section titled “Parameters”body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
One or more case IDs.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(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_case_activity(ids=id_list)print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetCaseActivityByIds(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "ids": ["string"]}
response = falcon.command("GetCaseActivityByIds", body=body_payload)print(response)Get-FalconCompleteActivity -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center" "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.MessageCenter.GetCaseActivityByIds( &message_center.GetCaseActivityByIdsParams{ Body: &models.MsaIdsRequest{ 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.getCaseActivityByIds( { ids: []} // body);
console.log(response);use rusty_falcon::apis::message_center_api::get_case_activity_by_ids;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaIdsRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MsaIdsRequest { ids: vec!["string".to_string()], ..Default::default() };
let response = get_case_activity_by_ids( &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::MessageCenter.new
body = Falcon::MsaIdsRequest.new( ids: [])
response = api.get_case_activity_by_ids(body)
puts responseResponses
[ { "body": "string", "case_id": "string", "cid": "string", "created_by": {}, "created_time": "string", "id": "string", "last_modified_time": "string", "modified_by": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}GetCaseEntitiesByIDs
Section titled “GetCaseEntitiesByIDs”Retrieve message center cases
Method POST
Route /message-center/entities/cases/GET/v1
Scope Message Center: READ
PEP 8
get_casesParameters
Section titled “Parameters”body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
One or more case IDs.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(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_cases(ids=id_list)print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetCaseEntitiesByIDs(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "ids": ["string"]}
response = falcon.command("GetCaseEntitiesByIDs", body=body_payload)print(response)Get-FalconCompleteCase -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center" "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.MessageCenter.GetCaseEntitiesByIDs( &message_center.GetCaseEntitiesByIDsParams{ Body: &models.MsaIdsRequest{ 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: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.getCaseEntitiesByIDs( { ids: []} // body);
console.log(response);use rusty_falcon::apis::message_center_api::get_case_entities_by_ids;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaIdsRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MsaIdsRequest { ids: vec!["string".to_string()], ..Default::default() };
let response = get_case_entities_by_ids( &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::MessageCenter.new
body = Falcon::MsaIdsRequest.new( ids: [])
response = api.get_case_entities_by_ids(body)
puts responseResponses
[ { "aids": [], "assigner": {}, "attachments": [], "body": "string", "case_type": "string", "cid": "string", "created_time": "string", "detections": [], "hosts": [], "id": "string", "incidents": [], "ip_addresses": [], "key": "string", "last_modified_time": "string", "malware_submission_id": "string", "malware_submission_url": "string", "recon_rule_type": "string", "rfi_id": "string", "status": "string", "title": "string", "type": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}QueryActivityByCaseID
Section titled “QueryActivityByCaseID”Retrieve activities id’s for a case
Method GET
Route /message-center/queries/case-activities/v1
Scope Message Center: READ
PEP 8
query_activitiesParameters
Section titled “Parameters”limit query · integer
The maximum records to return. [1-500]
sort query · string
The property to sort by. (Ex: case.created_time.desc) Available sort fields
Available values (4)
activity.type.asc | activity.type.desc | activity.created_time.asc |
activity.created_time.desc |
filter query · string
The filter expression that should be used to limit the results. FQL Syntax.
offset query · integer
Starting index of overall result set from which to return ids.
case_id query · string
Case ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_activities(case_id="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.QueryActivityByCaseID(case_id="string", filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("QueryActivityByCaseID", limit=integer, sort="string", filter="string", offset=integer, case_id="string")print(response)Get-FalconCompleteActivity -CaseId "string" ` -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center")
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) }
limit := int64(0) sort := "string" filter := "string" offset := int64(0)
response, err := client.MessageCenter.QueryActivityByCaseID( &message_center.QueryActivityByCaseIDParams{ Limit: &limit, Sort: &sort, Filter: &filter, Offset: &offset, CaseID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.queryActivityByCaseID( "string", // caseId integer, // limit "activity.type.asc", // sort "string", // filter integer // offset);
console.log(response);use rusty_falcon::apis::message_center_api::query_activity_by_case_id;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_activity_by_case_id( &falcon.cfg, // configuration "string", // case_id Some(integer), // limit Some("string"), // sort Some("string"), // filter Some("string"), // offset ).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::MessageCenter.new
response = api.query_activity_by_case_id('string')
puts responseResponses
[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}QueryCasesIdsByFilter
Section titled “QueryCasesIdsByFilter”Retrieve case id’s that match the provided filter criteria
Method GET
Route /message-center/queries/cases/v1
Scope Message Center: READ
PEP 8
query_casesParameters
Section titled “Parameters”limit query · integer
The maximum records to return. [1-500]
sort query · string
The property to sort by. (Ex: case.created_time.desc) Available sort fields
Available values (10)
case.created_time.asc | case.created_time.desc | case.last_modified_time.asc |
case.last_modified_time.desc | case.status.asc | case.status.desc |
case.type.asc | case.type.desc | case.id.asc |
case.id.desc |
filter query · string
The filter expression that should be used to limit the results. FQL Syntax.
offset query · integer
Starting index of overall result set from which to return ids.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
Code Examples
from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_cases(filter="string", limit=integer, offset=integer, sort="string")print(response)from falconpy import MessageCenter
falcon = MessageCenter(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.QueryCasesIdsByFilter(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("QueryCasesIdsByFilter", limit=integer, sort="string", filter="string", offset=integer)print(response)Get-FalconCompleteCase -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/message_center")
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) }
limit := int64(0) sort := "string" filter := "string" offset := int64(0)
response, err := client.MessageCenter.QueryCasesIdsByFilter( &message_center.QueryCasesIdsByFilterParams{ Limit: &limit, Sort: &sort, Filter: &filter, Offset: &offset, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: "us-1", clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.messageCenter.queryCasesIdsByFilter( integer, // limit "case.created_time.asc", // sort "string", // filter integer // offset);
console.log(response);use rusty_falcon::apis::message_center_api::query_cases_ids_by_filter;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = query_cases_ids_by_filter( &falcon.cfg, // configuration Some(integer), // limit Some("string"), // sort Some("string"), // filter Some("string"), // offset ).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::MessageCenter.new
response = api.query_cases_ids_by_filter(limit: integer, sort: 'string', filter: 'string', offset: integer)
puts responseResponses
[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}