list_investigations
¶
list_investigations(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
filter_criteria: Optional[InvestigationFilterCriteria] = None,
sort_criteria: Optional[InvestigationSortCriteria] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListInvestigationsResponse
This API is currently available as a preview. This feature is available in the following Amazon Web Services Regions: US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), and Asia Pacific (Tokyo).
Returns a list of investigations associated with the specified GuardDuty detector. You can filter the investigations by status, risk level, confidence, finding ID, and investigation type, and sort them by start time, end time, status, risk level, or confidence.
An administrator account sees all investigations across the organization. Member accounts see only the investigations that belong to them.
Parameters:
-
detector_id(DetectorId) –The unique ID of the GuardDuty detector whose investigations you want to list.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
filter_criteria(Optional[InvestigationFilterCriteria], default:None) –The criteria used to filter investigations. GuardDuty returns only the investigations that match all of the specified criteria.
-
sort_criteria(Optional[InvestigationSortCriteria], default:None) –Represents the criteria used for sorting investigations.
-
max_results(Optional[MaxResults], default:None) –You can use this parameter to indicate the maximum number of items you want in the response. The default value is 50.
-
next_token(Optional[NextToken], default:None) –You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
Raises:
-
AccessDeniedException–An access denied exception object.
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/guard_duty.py
4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 | |