Skip to content

Commit 81bf4ad

Browse files
committed
Deprecate Detects service collection and all related endpoints. Closes #1378.
1 parent 2a21ee5 commit 81bf4ad

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

src/falconpy/_endpoint/_detects.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"GetAggregateDetects",
4242
"POST",
4343
"/detects/aggregates/detects/GET/v1",
44-
"Get detect aggregates as specified via json in request body.",
44+
"Deprecated: This endpoint will be decommissioned on September 30, 2025. Please check the Notes section "
45+
"below for migration guidance.",
4546
"detects",
4647
[
4748
{
@@ -56,7 +57,8 @@
5657
"UpdateDetectsByIdsV2",
5758
"PATCH",
5859
"/detects/entities/detects/v2",
59-
"Modify the state, assignee, and visibility of detections",
60+
"Deprecated: This endpoint will be decommissioned on September 30, 2025. Please check the Notes section "
61+
"below for migration guidance.",
6062
"detects",
6163
[
6264
{
@@ -80,7 +82,8 @@
8082
"GetDetectSummaries",
8183
"POST",
8284
"/detects/entities/summaries/GET/v1",
83-
"View information about detections",
85+
"Deprecated: This endpoint will be decommissioned on September 30, 2025. Please check the Notes section "
86+
"below for migration guidance.",
8487
"detects",
8588
[
8689
{
@@ -99,7 +102,8 @@
99102
"QueryDetects",
100103
"GET",
101104
"/detects/queries/detects/v1",
102-
"Search for detection IDs that match a given query",
105+
"Deprecated: This endpoint will be decommissioned on September 30, 2025. Please check the Notes section "
106+
"below for migration guidance.",
103107
"detects",
104108
[
105109
{

src/falconpy/_endpoint/deprecated/_mapping.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@
5959
"DiscoverCloudAzureDownloadCertificate": "AzureDownloadCertificate",
6060
"GetDiscoverCloudAzureTenantIDs": "",
6161
"GetDiscoverCloudGCPUserScripts": "",
62-
"GetHorizonD4CScripts": ""
62+
"GetHorizonD4CScripts": "",
63+
"GetAggregateDetects": "",
64+
"UpdateDetectsByIdsV2": "",
65+
"GetDetectSummaries": "",
66+
"QueryDetects": ""
6367
}
6468

6569
_deprecated_cls_mapping = {
6670
"CloudConnectAWS": "CSPMRegistration",
6771
"D4CRegistration": "CSPMRegistration",
68-
"Iocs": "IOC"
72+
"Iocs": "IOC",
73+
"Detects": "Alerts"
6974
}

src/falconpy/detects.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
from ._result import Result
4343
from ._service_class import ServiceClass
4444
from ._endpoint._detects import _detects_endpoints as Endpoints
45+
# _____ __ __
46+
# | \.-----.-----.----.-----.----.---.-.| |_.-----.--| |
47+
# | -- | -__| _ | _| -__| __| _ || _| -__| _ |
48+
# |_____/|_____| __|__| |_____|____|___._||____|_____|_____|
49+
# |__|
50+
#
51+
# This service collection is deprecated.
52+
# Developers should leverage operations from the Alerts service collection.
4553

4654

4755
class Detects(ServiceClass):

0 commit comments

Comments
 (0)