Amazon GuardDuty Detectoy list

0

How can I go about getting ALL of the detectors that are enabled in my environment?

dfos23
已提問 10 個月前檢視次數 319 次
2 個答案
2

Hello ,

Thank you for posting your question on the AWS Repost, my name is Rochak and it will be a pleasure assisting you with this today.

I understand you would like to know how you can get all of the detectors that are enabled in your environment. Please, let me know if my understanding is incorrect.

“ Get Detector” API call retrieves an Amazon GuardDuty detector specified by the detectorId. Please note that there might be regional differences because some data sources might not be available in all the AWS Regions where GuardDuty is presently supported. [1][2]

If you don’t know the detector id, please use “list-detectors” for this. This will lists detectorIds of all the existing Amazon GuardDuty detector resources. list-detectors is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate argument. When using --output text and the --query argument on a paginated response, the --query argument must extract data from the results of the following query expressions: DetectorIds [3]

The AWS::GuardDuty::Detector resource specifies a new GuardDuty detector. A detector is an object that represents the GuardDuty service. A detector is required for GuardDuty to become operational. Make sure you use either DataSources or Features in a one request, and not both.[4]

I hope this helps. If you need further info, let me know in the comments; otherwise I'd appreciate if you mark my answer as "accepted".

Kind regards, Rochak from AWS

References:

[1] Get Detector https://docs.aws.amazon.com/guardduty/latest/APIReference/API_GetDetector.html

[2] GuardDuty regions and endpoints https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html

[3] list-detectors GuardDuty https://docs.aws.amazon.com/cli/latest/reference/guardduty/list-detectors.html

[4] AWS GuardDuty Detector https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-detector.html

AWS
已回答 10 個月前
0

aws guardduty list-detectors lists the available detectors in your current AWS region. You can loop this through list of regions on shell or in python.

AWS
raj_b
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南