list_investigation_records
¶
list_investigation_records(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
investigation_id: Optional[InvestigationId] = None,
record_types: Optional[RecordTypes] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListInvestigationRecordsResponse
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 the records for a specific GuardDuty investigation. Each record is one step in the reasoning that GuardDuty followed to reach the results of the investigation.
An administrator account can list the records of any investigation within the organization. Member accounts can only list the records of investigations that belong to them.
Parameters:
-
detector_id(DetectorId) –The unique ID of the GuardDuty detector associated with the investigation.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
investigation_id(Optional[InvestigationId], default:None) –The unique identifier of the investigation whose records you want to list.
-
record_types(Optional[RecordTypes], default:None) –The types of records to return. Possible values are
UPDATE,FETCH,OBSERVATION,ANALYSIS, andMETADATA. If you don't specify this parameter, GuardDuty returns records of all types. -
max_results(Optional[MaxResults], default:None) –The maximum number of records to return in a single response. Valid values are 1 to 50. The default value is 20. A response can contain fewer records than this value, or no records, and still include a
NextToken. -
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. Use the same
InvestigationIdandRecordTypesvalues that you used in the previous request.If you specify this parameter for an investigation whose status isn't
COMPLETED, the operation returns aBadRequestException. ANextTokenexpires 24 hours after it's returned.
Raises:
-
AccessDeniedException–An access denied exception object.
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
ResourceNotFoundException–The requested resource can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/guard_duty.py
4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 | |