Configuration Assessment Evaluation Logic - CrowdStrike/falconpy GitHub Wiki

CrowdStrike Falcon CrowdStrike Subreddit

Using the Configuration Assessment Evaluation Logic service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation ID Description
getEvaluationLogicMixin0
PEP8 get_evaluation_logic
Get details on evaluation logic items by providing one or more finding IDs.

Passing credentials

WARNING

client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)

CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.

getEvaluationLogicMixin0

Get details on evaluation logic items by providing one or more finding IDs.

PEP8 method name

get_evaluation_logic

Endpoint

Method Route
GET /configuration-assessment/entities/evaluation-logic/v1

Required Scope

configuration-assessment:read

Content-Type

  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids
Service Class Support

Uber Class Support
query string or list of strings One or more evaluation logic finding IDs.
parameters Service Class Support
Uber Class Support query dictionary Full query string parameters payload in JSON format. Not required if using other keywords.

Usage

Service class example (PEP8 syntax)
from falconpy import ConfigurationAssessmentEvaluationLogic

# Do not hardcode API credentials!
falcon = ConfigurationAssessmentEvaluationLogic(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_evaluation_logic(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import ConfigurationAssessmentEvaluationLogic

# Do not hardcode API credentials!
falcon = ConfigurationAssessmentEvaluationLogic(client_id=CLIENT_ID,
                                                client_secret=CLIENT_SECRET
                                                )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.getEvaluationLogicMixin0(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
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("getEvaluationLogicMixin0", ids=id_list)

print(response)
⚠️ **GitHub.com Fallback** ⚠️