You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chronicle also provides comprehensive case management capabilities for tracking and managing security investigations. The CLI supports listing, retrieving, updating, and performing bulk operations on cases.
>**Note**: The case management uses a batch API that can retrieve multiple cases in a single request. You can provide up to 1000 case IDs separated by commas.
1063
+
>**Note**: You can provide up to 1000 case IDs separated by commas.
1064
+
1065
+
#### List cases
1066
+
1067
+
```bash
1068
+
# List all cases with default pagination
1069
+
secops case list --page-size 50
1070
+
1071
+
# List with filtering
1072
+
secops case list --page-size 100 --filter 'status = "OPENED"' --order-by "createTime desc"
1073
+
1074
+
# Get cases as a flat list instead of paginated dict
1075
+
secops case list --page-size 50 --as-list
1076
+
```
1077
+
1078
+
#### Get case details
1079
+
1080
+
```bash
1081
+
# Get a specific case by ID
1082
+
secops case get --id "12345"
1083
+
1084
+
# Get case with expanded fields
1085
+
secops case get --id "12345" --expand "tags,products"
1086
+
1087
+
# Legacy: Get multiple cases by IDs (batch API)
1088
+
secops case --ids "case-123,case-456"
1089
+
```
1090
+
1091
+
>**Note**: The legacy batch API can retrieve up to 1000 case IDs in a single request.
1092
+
1093
+
#### Update a case
1094
+
1095
+
```bash
1096
+
# Update case priority
1097
+
secops case update --id "12345" --data '{"priority": "PRIORITY_HIGH"}' --update-mask "priority"
Copy file name to clipboardExpand all lines: README.md
+128Lines changed: 128 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1424,6 +1424,134 @@ case = cases.get_case("case-id-1")
1424
1424
1425
1425
> **Note**: The case management API uses the `legacy:legacyBatchGetCases` endpoint to retrieve multiple cases in a single request. You can retrieve up to 1000 cases in a single batch.
1426
1426
1427
+
### Case Management
1428
+
1429
+
Chronicle provides comprehensive case management capabilities for tracking and managing security investigations. The SDK supports listing, retrieving, updating, and performing bulk operations on cases.
1430
+
1431
+
#### List cases
1432
+
1433
+
Retrieve cases with optional filtering and pagination:
print(f"Cases merged into case {result['newCaseId']}")
1507
+
else:
1508
+
print(f"Merge failed: {result.get('errors')}")
1509
+
```
1510
+
1511
+
#### Bulk operations
1512
+
1513
+
Perform operations on multiple cases simultaneously:
1514
+
1515
+
```python
1516
+
# Bulk add tags
1517
+
chronicle.execute_bulk_add_tag(
1518
+
case_ids=[12345, 67890],
1519
+
tags=["phishing", "high-priority"]
1520
+
)
1521
+
1522
+
# Bulk assign cases
1523
+
chronicle.execute_bulk_assign(
1524
+
case_ids=[12345, 67890],
1525
+
username="@SecurityTeam"
1526
+
)
1527
+
1528
+
# Bulk change priority
1529
+
chronicle.execute_bulk_change_priority(
1530
+
case_ids=[12345, 67890],
1531
+
priority="PRIORITY_HIGH"
1532
+
)
1533
+
1534
+
# Bulk change stage
1535
+
chronicle.execute_bulk_change_stage(
1536
+
case_ids=[12345, 67890],
1537
+
stage="Remediation"
1538
+
)
1539
+
1540
+
# Bulk close cases
1541
+
chronicle.execute_bulk_close(
1542
+
case_ids=[12345, 67890],
1543
+
close_reason="NOT_MALICIOUS",
1544
+
root_cause="False positive - benign activity",
1545
+
close_comment="Verified with asset owner"
1546
+
)
1547
+
1548
+
# Bulk reopen cases
1549
+
chronicle.execute_bulk_reopen(
1550
+
case_ids=[12345, 67890],
1551
+
reopen_comment="New evidence discovered"
1552
+
)
1553
+
```
1554
+
1427
1555
### Investigation Management
1428
1556
1429
1557
Chronicle investigations provide automated analysis and recommendations for alerts and cases. The SDK provides methods to list, retrieve, trigger, and fetch associated investigations.
0 commit comments