aws guardduty87 CLI commands available for Amazon GuardDuty.
| Command | API Operation | Sample |
|---|---|---|
accept-administrator-invitationAccepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation. | AcceptAdministratorInvitation | |
accept-invitationAccepts the invitation to be monitored by a GuardDuty administrator account. | AcceptInvitation | |
archive-findingsArchives GuardDuty findings that are specified by the list of finding IDs. Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts. | ArchiveFindings | |
create-detectorCreates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector | CreateDetector | |
create-filterCreates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web Services account per Region is 100. For more information, see Quotas for GuardDuty. | CreateFilter | |
create-ip-setCreates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSet | CreateIPSet | |
create-malware-protection-planCreates a new Malware Protection plan for the protected resource. When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection. | CreateMalwareProtectionPlan | |
create-membersCreates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization. As a delegated administrator, using CreateMembers will | CreateMembers | |
create-publishing-destinationCreates a publishing destination where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist. | CreatePublishingDestination | |
create-sample-findingsGenerates sample findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates sample findings of all supported finding types. | CreateSampleFindings | |
create-threat-entity-setCreates a new threat entity set. In a threat entity set, you can provide known malicious IP addresses and domains for your Amazon Web Services environment. GuardDuty generates findings based on the entries in the threat entity sets. Only users of the administrator account can manage entity sets, whi | CreateThreatEntitySet | |
create-threat-intel-setCreates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation. | CreateThreatIntelSet | |
create-trusted-entity-setCreates a new trusted entity set. In the trusted entity set, you can provide IP addresses and domains that you believe are secure for communication in your Amazon Web Services environment. GuardDuty will not generate findings for the entries that are specified in a trusted entity set. At any given t | CreateTrustedEntitySet | |
decline-invitationsDeclines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. | DeclineInvitations | |
delete-detectorDeletes an Amazon GuardDuty detector that is specified by the detector ID. | DeleteDetector | |
delete-filterDeletes the filter specified by the filter name. | DeleteFilter | |
delete-invitationsDeletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. | DeleteInvitations | |
delete-ip-setDeletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user interface. | DeleteIPSet | |
delete-malware-protection-planDeletes the Malware Protection plan ID associated with the Malware Protection plan resource. Use this API only when you no longer want to protect the resource associated with this Malware Protection plan ID. | DeleteMalwareProtectionPlan | |
delete-membersDeletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs. With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your organization. | DeleteMembers | |
delete-publishing-destinationDeletes the publishing definition with the specified destinationId. | DeletePublishingDestination | |
delete-threat-entity-setDeletes the threat entity set that is associated with the specified threatEntitySetId. | DeleteThreatEntitySet | |
delete-threat-intel-setDeletes the ThreatIntelSet specified by the ThreatIntelSet ID. | DeleteThreatIntelSet | |
delete-trusted-entity-setDeletes the trusted entity set that is associated with the specified trustedEntitySetId. | DeleteTrustedEntitySet | |
describe-malware-scansReturns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all the member accounts. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions | DescribeMalwareScans | |
describe-organization-configurationReturns information about the account selected as the delegated administrator for GuardDuty. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpo | DescribeOrganizationConfiguration | |
describe-publishing-destinationReturns information about the publishing destination specified by the provided destinationId. | DescribePublishingDestination | |
disable-organization-admin-accountRemoves the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation. | DisableOrganizationAdminAccount | |
disassociate-from-administrator-accountDisassociates the current GuardDuty member account from its administrator account. When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so | DisassociateFromAdministratorAccount | |
disassociate-from-master-accountDisassociates the current GuardDuty member account from its administrator account. When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so | DisassociateFromMasterAccount | |
disassociate-membersDisassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs. When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, a | DisassociateMembers | |
enable-organization-admin-accountDesignates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only the organization's management account can run this API operation. | EnableOrganizationAdminAccount | |
get-administrator-accountProvides the details of the GuardDuty administrator account associated with the current GuardDuty member account. Based on the type of account that runs this API, the following list shows how the API behavior varies: When the GuardDuty administrator account runs this API, it will return success (H | GetAdministratorAccount | |
get-coverage-statisticsRetrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their res | GetCoverageStatistics | |
get-detectorRetrieves a GuardDuty detector specified by the detectorId. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. | GetDetector | |
get-filterReturns the details of the filter specified by the filter name. | GetFilter | |
get-findingsDescribes Amazon GuardDuty findings specified by finding IDs. | GetFindings | |
get-findings-statisticsLists GuardDuty findings statistics for the specified detector ID. You must provide either findingStatisticTypes or groupBy parameter, and not both. You can use the maxResults and orderBy parameters only when using groupBy. There might be regional differences because some flags might not be availabl | GetFindingsStatistics | |
get-invitations-countReturns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation. | GetInvitationsCount | |
get-ip-setRetrieves the IPSet specified by the ipSetId. | GetIPSet | |
get-malware-protection-planRetrieves the Malware Protection plan details associated with a Malware Protection plan ID. | GetMalwareProtectionPlan | |
get-malware-scanRetrieves the detailed information for a specific malware scan. Each member account can view the malware scan details for their own account. An administrator can view malware scan details for all accounts in the organization. There might be regional differences because some data sources might not be | GetMalwareScan | |
get-malware-scan-settingsReturns the details of the malware scan settings. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. | GetMalwareScanSettings | |
get-master-accountProvides the details for the GuardDuty administrator account associated with the current GuardDuty member account. | GetMasterAccount | |
get-member-detectorsDescribes which data sources are enabled for the member account's detector. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. | GetMemberDetectors | |
get-membersRetrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs. | GetMembers | |
get-organization-statisticsRetrieves how many active member accounts have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API. When you create a new organization, it might take up to 24 hours to generate the statistics for the entire organization. | GetOrganizationStatistics | |
get-remaining-free-trial-daysProvides the number of days left for each data source used in the free trial period. | GetRemainingFreeTrialDays | |
get-threat-entity-setRetrieves the threat entity set associated with the specified threatEntitySetId. | GetThreatEntitySet | |
get-threat-intel-setRetrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. | GetThreatIntelSet | |
get-trusted-entity-setRetrieves the trusted entity set associated with the specified trustedEntitySetId. | GetTrustedEntitySet | |
get-usage-statisticsLists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to prov | GetUsageStatistics | |
invite-membersInvites Amazon Web Services accounts to become members of an organization administered by the Amazon Web Services account that invokes this API. If you are using Amazon Web Services Organizations to manage your GuardDuty environment, this step is not needed. For more information, see Managing accoun | InviteMembers | |
list-coverageLists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization. Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources. | ListCoverage | |
list-detectorsLists detectorIds of all the existing Amazon GuardDuty detector resources. | ListDetectors | |
list-filtersReturns a paginated list of the current filters. | ListFilters | |
list-findingsLists GuardDuty findings for the specified detector ID. There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints. | ListFindings | |
list-invitationsLists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. | ListInvitations | |
list-ip-setsLists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the IPSets returned are the IPSets from the associated administrator account. | ListIPSets | |
list-malware-protection-plansLists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account. | ListMalwareProtectionPlans | |
list-malware-scansReturns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all of its members' accounts. | ListMalwareScans | |
list-membersLists details about all member accounts for the current GuardDuty administrator account. | ListMembers | |
list-organization-admin-accountsLists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation. | ListOrganizationAdminAccounts | |
list-publishing-destinationsReturns a list of publishing destinations associated with the specified detectorId. | ListPublishingDestinations | |
list-tags-for-resourceLists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given resource. | ListTagsForResource | |
list-threat-entity-setsLists the threat entity sets associated with the specified GuardDuty detector ID. If you use this operation from a member account, the threat entity sets that are returned as a response, belong to the administrator account. | ListThreatEntitySets | |
list-threat-intel-setsLists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned. | ListThreatIntelSets | |
list-trusted-entity-setsLists the trusted entity sets associated with the specified GuardDuty detector ID. If you use this operation from a member account, the trusted entity sets that are returned as a response, belong to the administrator account. | ListTrustedEntitySets | |
send-object-malware-scanInitiates a malware scan for a specific S3 object. This API allows you to perform on-demand malware scanning of individual objects in S3 buckets that have Malware Protection for S3 enabled. When you use this API, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more | SendObjectMalwareScan | |
start-malware-scanInitiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account if the resourceArn belongs to an EC2 instance. When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more information, see List | StartMalwareScan | |
start-monitoring-membersTurns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers operation. | StartMonitoringMembers | |
stop-monitoring-membersStops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers operation to restart monitoring for those accounts. With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to stop monitoring the member acc | StopMonitoringMembers | |
tag-resourceAdds tags to a resource. | TagResource | |
unarchive-findingsUnarchives GuardDuty findings specified by the findingIds. | UnarchiveFindings | |
untag-resourceRemoves tags from a resource. | UntagResource | |
update-detectorUpdates the GuardDuty detector specified by the detector ID. Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring (RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection fo | UpdateDetector | |
update-filterUpdates the filter specified by the filter name. | UpdateFilter | |
update-findings-feedbackMarks the specified GuardDuty findings as useful or not useful. | UpdateFindingsFeedback | |
update-ip-setUpdates the IPSet specified by the IPSet ID. | UpdateIPSet | |
update-malware-protection-planUpdates an existing Malware Protection plan resource. | UpdateMalwareProtectionPlan | |
update-malware-scan-settingsUpdates the malware scan settings. There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. | UpdateMalwareScanSettings | |
update-member-detectorsContains information on member accounts to be updated. Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring (RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amaz | UpdateMemberDetectors | |
update-organization-configurationConfigures the delegated administrator account with the provided values. You must provide a value for either autoEnableOrganizationMembers or autoEnable, but not both. Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring (RUNTIME_MONITORING) will cause an error. Yo | UpdateOrganizationConfiguration | |
update-publishing-destinationUpdates information about the publishing destination specified by the destinationId. | UpdatePublishingDestination | |
update-threat-entity-setUpdates the threat entity set associated with the specified threatEntitySetId. | UpdateThreatEntitySet | |
update-threat-intel-setUpdates the ThreatIntelSet specified by the ThreatIntelSet ID. | UpdateThreatIntelSet | |
update-trusted-entity-setUpdates the trusted entity set associated with the specified trustedEntitySetId. | UpdateTrustedEntitySet |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterGuardDuty