-
Notifications
You must be signed in to change notification settings - Fork 121
API Integrations
Joshua Hiller edited this page Dec 10, 2024
·
3 revisions
Operation ID | Description | ||||
---|---|---|---|---|---|
|
Queries for config resources and returns details | ||||
|
Execute a command and proxy the response directly. | ||||
|
Execute a command. |
WARNING
client_id
andclient_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.
Queries for config resources and returns details
get_plugin_configs
Method | Route |
---|---|
/plugins/combined/configs/v1 |
- Consumes: application/json
- Produces: application/json
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
filter | query | string | Filter items using a query in Falcon Query Language (FQL). | ||
limit | query | integer | The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. | ||
offset | query | integer | The first item to return, where 0 is the latest item. Use with the limit parameter to manage pagination of results. | ||
parameters | query | dictionary | Full query string parameters payload as a dictionary. Not required when using other keywords. | ||
sort | query | string | Sort items using their properties. |
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_plugin_configs(filter="string",
limit=integer,
offset=integer,
sort="string"
)
print(response)
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.GetCombinedPluginConfigs(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("GetCombinedPluginConfigs",
filter="string",
limit=integer,
offset=integer,
sort="string"
)
print(response)
Back to Table of Contents
Execute a command and proxy the response directly.
execute_command_proxy
Method | Route |
---|---|
/plugins/entities/execute-proxy/v1 |
- Consumes: application/json
- Produces: application/json
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload as a dictionary. Not required when using other keywords. | ||
config_auth_type | body | string | Configuration authorization type for plugin to execute. Only application for security scheme plugins. If not provided, execution will use the default authorization type. | ||
config_id | body | string | Configuration ID. If omitted, the oldest configuration ID will be used. | ||
definition_id | body | string | ID of the definition containing the operation to execute. | ||
id | body | string | ID of the specific plugin to execute provided in "definition_name.operation_name" format. | ||
operation_id | body | string | The specific operation to execute. | ||
data | body | string | Command data. | ||
description | body | string | Command description. | ||
params | body | dictionary | Command parameters. Overwritten if keywords are used to provide command parameters. | ||
cookie | body | dictionary | Command parameter - cookie. | ||
header | body | dictionary | Command parameter - header. | ||
path | body | dictionary | Command parameter - path. | ||
query | body | dictionary | Command parameter - query. | ||
version | body | integer | The version of the definition to execute. |
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.execute_command_proxy(config_auth_type="string",
config_id="string",
definition_id="string",
id="string",
operation_id="string",
description="string",
data="string",
version=integer
)
print(response)
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ExecuteCommandProxy(config_auth_type="string",
config_id="string",
definition_id="string",
id="string",
operation_id="string",
description="string",
data="string",
version=integer
)
print(response)
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"resources": [
{
"config_auth_type": "string",
"config_id": "string",
"definition_id": "string",
"id": "string",
"operation_id": "string",
"request": {
"data": "string",
"description": "string",
"params": {
"cookie": {},
"header": {},
"path": {},
"query": {}
},
"x-www-form-urlencoded": {}
},
"version": integer
}
]
}
response = falcon.command("ExecuteCommandProxy", body=body_payload)
print(response)
Back to Table of Contents
Execute a command.
execute_command
Method | Route |
---|---|
/plugins/entities/execute/v1 |
- Consumes: application/json
- Produces: application/json
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload as a dictionary. Not required when using other keywords. | ||
config_auth_type | body | string | Configuration authorization type for plugin to execute. Only application for security scheme plugins. If not provided, execution will use the default authorization type. | ||
config_id | body | string | Configuration ID. If omitted, the oldest configuration ID will be used. | ||
definition_id | body | string | ID of the definition containing the operation to execute. | ||
id | body | string | ID of the specific plugin to execute provided in "definition_name.operation_name" format. | ||
operation_id | body | string | The specific operation to execute. | ||
data | body | string | Command data. | ||
description | body | string | Command description. | ||
params | body | dictionary | Command parameters. Overwritten if keywords are used to provide command parameters. | ||
cookie | body | dictionary | Command parameter - cookie. | ||
header | body | dictionary | Command parameter - header. | ||
path | body | dictionary | Command parameter - path. | ||
query | body | dictionary | Command parameter - query. | ||
version | body | integer | The version of the definition to execute. |
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.execute_command(config_auth_type="string",
config_id="string",
definition_id="string",
id="string",
operation_id="string",
description="string",
version=integer
)
print(response)
from falconpy import APIIntegrations
falcon = APIIntegrations(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ExecuteCommand(config_auth_type="string",
config_id="string",
definition_id="string",
id="string",
operation_id="string",
description="string",
version=integer
)
print(response)
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"resources": [
{
"config_auth_type": "string",
"config_id": "string",
"definition_id": "string",
"id": "string",
"operation_id": "string",
"request": {
"description": "string"
},
"version": integer
}
]
}
response = falcon.command("ExecuteCommand", body=body_payload)
print(response)
Back to Table of Contents
- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Alerts
- API Integrations
- ASPM
- Certificate Based Exclusions
- Cloud Connect AWS (deprecated)
- Cloud Snapshots
- Compliance Assessments
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Images
- Container Packages
- Container Vulnerabilities
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- DataScanner
- Delivery Settings
- Detects
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- IOA Exclusions
- IOC
- IOCs (deprecated)
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- OAuth2
- ODS (On Demand Scan)
- Overwatch Dashboard
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust