Correlation Rules Admin - CrowdStrike/falconpy GitHub Wiki
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
Change the owner of an existing Correlation Rule | ||||
WARNING
client_idandclient_secretare 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.
Change the owner of an existing Correlation Rule
change_correlation_rule_owner
| Method | Route |
|---|---|
/correlation-rules/entities/rules/ownership/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload in JSON format. Not required if using other keywords. | ||
| api_client_id | body | string | The API client ID. | ||
| id | body | string | The rule ID. | ||
| user_id | body | string | The user ID. | ||
| user_uuid | body | string | The user UUID. |
from falconpy import CorrelationRulesAdmin
# Do not hardcode API credentials!
falcon = CorrelationRulesAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.change_correlation_rule_owner(api_client_id="string",
id="string",
user_id="string",
user_uuid="string"
)
print(response)from falconpy import CorrelationRulesAdmin
# Do not hardcode API credentials!
falcon = CorrelationRulesAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.entities_rules_ownership_put_v1(api_client_id="string",
id="string",
user_id="string",
user_uuid="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"api_client_id": "string",
"id": "string",
"user_id": "string",
"user_uuid": "string"
}
response = falcon.command("entities_rules_ownership_put_v1", body=body_payload)
print(response)Back to Table of Contents
