-
Notifications
You must be signed in to change notification settings - Fork 122
Installation Tokens
Joshua Hiller edited this page Apr 17, 2021
·
18 revisions
API Function | Description |
---|---|
audit_events_read | Gets the details of one or more audit events by id. |
customer_settings_read | Check current installation token settings. |
tokens_read | Gets the details of one or more tokens by id. |
tokens_create | Creates a token. |
tokens_delete | Deletes a token immediately. To revoke a token, use PATCH /installation-tokens/entities/tokens/v1 instead. |
tokens_update | Updates one or more tokens. Use this endpoint to edit labels, change expiration, revoke, or restore. |
audit_events_query | Search for audit events by providing an FQL filter and paging details. |
tokens_query | Search for tokens by providing an FQL filter and paging details. |
Gets the details of one or more audit events by id.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
ids | query | array (string) | IDs of audit events to retrieve details for |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
IDS = 'ID1,ID2,ID3'
response = falcon.command('audit-events-read', ids=IDS)
print(response)
falcon.deauthenticate()
Check current installation token settings.
- Consumes: application/json
- Produces: application/json
No parameters
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
response = falcon.command('customer-settings-read')
print(response)
falcon.deauthenticate()
Gets the details of one or more tokens by id.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
ids | query | array (string) | IDs of tokens to retrieve details for |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
IDS = 'ID1,ID2,ID3'
response = falcon.command('tokens-read', ids=IDS)
print(response)
falcon.deauthenticate()
Creates a token.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
✅ | body | body | string |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
BODY = {
'Body Payload': 'See body description above'
}
response = falcon.command('tokens-create', body=BODY)
print(response)
falcon.deauthenticate()
Deletes a token immediately. To revoke a token, use PATCH /installation-tokens/entities/tokens/v1 instead.
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
✅ | ids | query | array (string) | The token ids to delete. |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
IDS = 'ID1,ID2,ID3'
response = falcon.command('tokens-delete', ids=IDS)
print(response)
falcon.deauthenticate()
Updates one or more tokens. Use this endpoint to edit labels, change expiration, revoke, or restore.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
✅ | ids | query | array (string) | The token ids to update. |
✅ | body | body | string |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
BODY = {
'Body Payload': 'See body description above'
}
IDS = 'ID1,ID2,ID3'
response = falcon.command('tokens-update', body=BODY, ids=IDS)
print(response)
falcon.deauthenticate()
Search for audit events by providing an FQL filter and paging details.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
offset | query | integer | The offset to start retrieving records from. | |
limit | query | integer | The maximum records to return. [1-1000]. Defaults to 50. | |
sort | query | string | The property to sort by (e.g. timestamp.desc). | |
filter | query | string | The filter expression that should be used to limit the results (e.g., action:'token_create' ). |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
PARAMS = {
'offset': integer,
'limit': integer,
'sort': 'string',
'filter': 'string'
}
response = falcon.command('audit-events-query', parameters=PARAMS)
print(response)
falcon.deauthenticate()
Search for tokens by providing an FQL filter and paging details.
- Consumes: application/json
- Produces: application/json
Required | Name | Type | Datatype | Description |
---|---|---|---|---|
offset | query | integer | The offset to start retrieving records from. | |
limit | query | integer | The maximum records to return. [1-1000]. Defaults to 50. | |
sort | query | string | The property to sort by (e.g. created_timestamp.desc). | |
filter | query | string | The filter expression that should be used to limit the results (e.g., status:'valid' ). |
from falconpy import api_complete as FalconSDK
falcon = FalconSDK.APIHarness(creds={
'client_id': falcon_client_id,
'client_secret': falcon_client_secret
}
)
PARAMS = {
'offset': integer,
'limit': integer,
'sort': 'string',
'filter': 'string'
}
response = falcon.command('tokens-query', parameters=PARAMS)
print(response)
falcon.deauthenticate()
- 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