• 沒有找到結果。

Amazon GuardDuty

N/A
N/A
Protected

Academic year: 2022

Share "Amazon GuardDuty"

Copied!
273
0
0

加載中.... (立即查看全文)

全文

(1)

Amazon GuardDuty

API Reference

API Version 2017-11-28

(2)

Amazon GuardDuty: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

AcceptInvitation ... 4

Request Syntax ... 4

URI Request Parameters ... 4

Request Body ... 4

Response Syntax ... 4

Response Elements ... 4

Errors ... 5

See Also ... 5

ArchiveFindings ... 6

Request Syntax ... 6

URI Request Parameters ... 6

Request Body ... 6

Response Syntax ... 6

Response Elements ... 6

Errors ... 7

See Also ... 7

CreateDetector ... 8

Request Syntax ... 8

URI Request Parameters ... 8

Request Body ... 8

Response Syntax ... 9

Response Elements ... 9

Errors ... 9

See Also ... 10

CreateFilter ... 11

Request Syntax ... 11

URI Request Parameters ... 11

Request Body ... 11

Response Syntax ... 14

Response Elements ... 14

Errors ... 14

See Also ... 15

CreateIPSet ... 16

Request Syntax ... 16

URI Request Parameters ... 16

Request Body ... 16

Response Syntax ... 17

Response Elements ... 17

Errors ... 18

See Also ... 18

CreateMembers ... 19

Request Syntax ... 19

URI Request Parameters ... 19

Request Body ... 19

Response Syntax ... 20

Response Elements ... 20

Errors ... 20

See Also ... 20

CreatePublishingDestination ... 22

Request Syntax ... 22

URI Request Parameters ... 22

Request Body ... 22

(4)

Response Syntax ... 23

Response Elements ... 23

Errors ... 23

See Also ... 23

CreateSampleFindings ... 25

Request Syntax ... 25

URI Request Parameters ... 25

Request Body ... 25

Response Syntax ... 25

Response Elements ... 25

Errors ... 25

See Also ... 26

CreateThreatIntelSet ... 27

Request Syntax ... 27

URI Request Parameters ... 27

Request Body ... 27

Response Syntax ... 28

Response Elements ... 28

Errors ... 29

See Also ... 29

DeclineInvitations ... 30

Request Syntax ... 30

URI Request Parameters ... 30

Request Body ... 30

Response Syntax ... 30

Response Elements ... 30

Errors ... 31

See Also ... 31

DeleteDetector ... 32

Request Syntax ... 32

URI Request Parameters ... 32

Request Body ... 32

Response Syntax ... 32

Response Elements ... 32

Errors ... 32

See Also ... 32

DeleteFilter ... 34

Request Syntax ... 34

URI Request Parameters ... 34

Request Body ... 34

Response Syntax ... 34

Response Elements ... 34

Errors ... 34

See Also ... 35

DeleteInvitations ... 36

Request Syntax ... 36

URI Request Parameters ... 36

Request Body ... 36

Response Syntax ... 36

Response Elements ... 36

Errors ... 37

See Also ... 37

DeleteIPSet ... 38

Request Syntax ... 38

URI Request Parameters ... 38

Request Body ... 38

Response Syntax ... 38

API Version 2017-11-28 iv

(5)

Response Elements ... 38

Errors ... 38

See Also ... 39

DeleteMembers ... 40

Request Syntax ... 40

URI Request Parameters ... 40

Request Body ... 40

Response Syntax ... 40

Response Elements ... 41

Errors ... 41

See Also ... 41

DeletePublishingDestination ... 42

Request Syntax ... 42

URI Request Parameters ... 42

Request Body ... 42

Response Syntax ... 42

Response Elements ... 42

Errors ... 42

See Also ... 43

DeleteThreatIntelSet ... 44

Request Syntax ... 44

URI Request Parameters ... 44

Request Body ... 44

Response Syntax ... 44

Response Elements ... 44

Errors ... 44

See Also ... 45

DescribeOrganizationConfiguration ... 46

Request Syntax ... 46

URI Request Parameters ... 46

Request Body ... 46

Response Syntax ... 46

Response Elements ... 46

Errors ... 47

See Also ... 47

DescribePublishingDestination ... 48

Request Syntax ... 48

URI Request Parameters ... 48

Request Body ... 48

Response Syntax ... 48

Response Elements ... 48

Errors ... 49

See Also ... 49

DisableOrganizationAdminAccount ... 51

Request Syntax ... 51

URI Request Parameters ... 51

Request Body ... 51

Response Syntax ... 51

Response Elements ... 51

Errors ... 51

See Also ... 52

DisassociateFromMasterAccount ... 53

Request Syntax ... 53

URI Request Parameters ... 53

Request Body ... 53

Response Syntax ... 53

Response Elements ... 53

(6)

Errors ... 53

See Also ... 53

DisassociateMembers ... 55

Request Syntax ... 55

URI Request Parameters ... 55

Request Body ... 55

Response Syntax ... 55

Response Elements ... 56

Errors ... 56

See Also ... 56

EnableOrganizationAdminAccount ... 57

Request Syntax ... 57

URI Request Parameters ... 57

Request Body ... 57

Response Syntax ... 57

Response Elements ... 57

Errors ... 57

See Also ... 58

GetDetector ... 59

Request Syntax ... 59

URI Request Parameters ... 59

Request Body ... 59

Response Syntax ... 59

Response Elements ... 60

Errors ... 61

See Also ... 61

GetFilter ... 62

Request Syntax ... 62

URI Request Parameters ... 62

Request Body ... 62

Response Syntax ... 62

Response Elements ... 63

Errors ... 64

See Also ... 64

GetFindings ... 65

Request Syntax ... 65

URI Request Parameters ... 65

Request Body ... 65

Response Syntax ... 65

Response Elements ... 71

Errors ... 71

See Also ... 71

GetFindingsStatistics ... 72

Request Syntax ... 72

URI Request Parameters ... 72

Request Body ... 72

Response Syntax ... 73

Response Elements ... 73

Errors ... 73

See Also ... 73

GetInvitationsCount ... 75

Request Syntax ... 75

URI Request Parameters ... 75

Request Body ... 75

Response Syntax ... 75

Response Elements ... 75

Errors ... 75

API Version 2017-11-28 vi

(7)

See Also ... 76

GetIPSet ... 77

Request Syntax ... 77

URI Request Parameters ... 77

Request Body ... 77

Response Syntax ... 77

Response Elements ... 77

Errors ... 78

See Also ... 79

GetMasterAccount ... 80

Request Syntax ... 80

URI Request Parameters ... 80

Request Body ... 80

Response Syntax ... 80

Response Elements ... 80

Errors ... 80

See Also ... 81

GetMemberDetectors ... 82

Request Syntax ... 82

URI Request Parameters ... 82

Request Body ... 82

Response Syntax ... 82

Response Elements ... 83

Errors ... 83

See Also ... 84

GetMembers ... 85

Request Syntax ... 85

URI Request Parameters ... 85

Request Body ... 85

Response Syntax ... 85

Response Elements ... 86

Errors ... 86

See Also ... 86

GetThreatIntelSet ... 88

Request Syntax ... 88

URI Request Parameters ... 88

Request Body ... 88

Response Syntax ... 88

Response Elements ... 88

Errors ... 89

See Also ... 90

GetUsageStatistics ... 91

Request Syntax ... 91

URI Request Parameters ... 91

Request Body ... 91

Response Syntax ... 92

Response Elements ... 93

Errors ... 93

See Also ... 93

InviteMembers ... 95

Request Syntax ... 95

URI Request Parameters ... 95

Request Body ... 95

Response Syntax ... 96

Response Elements ... 96

Errors ... 96

See Also ... 96

(8)

ListDetectors ... 98

Request Syntax ... 98

URI Request Parameters ... 98

Request Body ... 98

Response Syntax ... 98

Response Elements ... 98

Errors ... 99

See Also ... 99

ListFilters ... 100

Request Syntax ... 100

URI Request Parameters ... 100

Request Body ... 100

Response Syntax ... 100

Response Elements ... 100

Errors ... 101

See Also ... 101

ListFindings ... 102

Request Syntax ... 102

URI Request Parameters ... 102

Request Body ... 102

Response Syntax ... 104

Response Elements ... 104

Errors ... 105

See Also ... 105

ListInvitations ... 106

Request Syntax ... 106

URI Request Parameters ... 106

Request Body ... 106

Response Syntax ... 106

Response Elements ... 106

Errors ... 107

See Also ... 107

ListIPSets ... 108

Request Syntax ... 108

URI Request Parameters ... 108

Request Body ... 108

Response Syntax ... 108

Response Elements ... 108

Errors ... 109

See Also ... 109

ListMembers ... 110

Request Syntax ... 110

URI Request Parameters ... 110

Request Body ... 110

Response Syntax ... 110

Response Elements ... 111

Errors ... 111

See Also ... 111

ListOrganizationAdminAccounts ... 113

Request Syntax ... 113

URI Request Parameters ... 113

Request Body ... 113

Response Syntax ... 113

Response Elements ... 113

Errors ... 114

See Also ... 114

ListPublishingDestinations ... 115

API Version 2017-11-28 viii

(9)

Request Syntax ... 115

URI Request Parameters ... 115

Request Body ... 115

Response Syntax ... 115

Response Elements ... 115

Errors ... 116

See Also ... 116

ListTagsForResource ... 117

Request Syntax ... 117

URI Request Parameters ... 117

Request Body ... 117

Response Syntax ... 117

Response Elements ... 117

Errors ... 118

See Also ... 118

ListThreatIntelSets ... 119

Request Syntax ... 119

URI Request Parameters ... 119

Request Body ... 119

Response Syntax ... 119

Response Elements ... 119

Errors ... 120

See Also ... 120

StartMonitoringMembers ... 121

Request Syntax ... 121

URI Request Parameters ... 121

Request Body ... 121

Response Syntax ... 121

Response Elements ... 122

Errors ... 122

See Also ... 122

StopMonitoringMembers ... 123

Request Syntax ... 123

URI Request Parameters ... 123

Request Body ... 123

Response Syntax ... 123

Response Elements ... 124

Errors ... 124

See Also ... 124

TagResource ... 125

Request Syntax ... 125

URI Request Parameters ... 125

Request Body ... 125

Response Syntax ... 125

Response Elements ... 126

Errors ... 126

See Also ... 126

UnarchiveFindings ... 127

Request Syntax ... 127

URI Request Parameters ... 127

Request Body ... 127

Response Syntax ... 127

Response Elements ... 127

Errors ... 127

See Also ... 128

UntagResource ... 129

Request Syntax ... 129

(10)

URI Request Parameters ... 129

Request Body ... 129

Response Syntax ... 129

Response Elements ... 129

Errors ... 129

See Also ... 130

UpdateDetector ... 131

Request Syntax ... 131

URI Request Parameters ... 131

Request Body ... 131

Response Syntax ... 132

Response Elements ... 132

Errors ... 132

See Also ... 132

UpdateFilter ... 133

Request Syntax ... 133

URI Request Parameters ... 133

Request Body ... 133

Response Syntax ... 134

Response Elements ... 134

Errors ... 135

See Also ... 135

UpdateFindingsFeedback ... 136

Request Syntax ... 136

URI Request Parameters ... 136

Request Body ... 136

Response Syntax ... 137

Response Elements ... 137

Errors ... 137

See Also ... 137

UpdateIPSet ... 138

Request Syntax ... 138

URI Request Parameters ... 138

Request Body ... 138

Response Syntax ... 139

Response Elements ... 139

Errors ... 139

See Also ... 139

UpdateMemberDetectors ... 140

Request Syntax ... 140

URI Request Parameters ... 140

Request Body ... 140

Response Syntax ... 141

Response Elements ... 141

Errors ... 141

See Also ... 141

UpdateOrganizationConfiguration ... 143

Request Syntax ... 143

URI Request Parameters ... 143

Request Body ... 143

Response Syntax ... 144

Response Elements ... 144

Errors ... 144

See Also ... 144

UpdatePublishingDestination ... 145

Request Syntax ... 145

URI Request Parameters ... 145

API Version 2017-11-28 x

(11)

Request Body ... 145

Response Syntax ... 145

Response Elements ... 145

Errors ... 146

See Also ... 146

UpdateThreatIntelSet ... 147

Request Syntax ... 147

URI Request Parameters ... 147

Request Body ... 147

Response Syntax ... 148

Response Elements ... 148

Errors ... 148

See Also ... 148

Data Types ... 149

AccessControlList ... 152

Contents ... 152

See Also ... 152

AccessKeyDetails ... 153

Contents ... 153

See Also ... 153

AccountDetail ... 154

Contents ... 154

See Also ... 154

AccountLevelPermissions ... 155

Contents ... 155

See Also ... 155

Action ... 156

Contents ... 156

See Also ... 156

AdminAccount ... 158

Contents ... 158

See Also ... 158

AwsApiCallAction ... 159

Contents ... 159

See Also ... 160

BlockPublicAccess ... 161

Contents ... 161

See Also ... 161

BucketLevelPermissions ... 162

Contents ... 162

See Also ... 162

BucketPolicy ... 163

Contents ... 163

See Also ... 163

City ... 164

Contents ... 164

See Also ... 164

CloudTrailConfigurationResult ... 165

Contents ... 165

See Also ... 165

Condition ... 166

Contents ... 166

See Also ... 167

Container ... 168

Contents ... 168

See Also ... 169

Country ... 170

(12)

Contents ... 170

See Also ... 170

DataSourceConfigurations ... 171

Contents ... 171

See Also ... 171

DataSourceConfigurationsResult ... 172

Contents ... 172

See Also ... 172

DefaultServerSideEncryption ... 173

Contents ... 173

See Also ... 173

Destination ... 174

Contents ... 174

See Also ... 174

DestinationProperties ... 175

Contents ... 175

See Also ... 175

DNSLogsConfigurationResult ... 176

Contents ... 176

See Also ... 176

DnsRequestAction ... 177

Contents ... 177

See Also ... 177

DomainDetails ... 178

Contents ... 178

See Also ... 178

EksClusterDetails ... 179

Contents ... 179

See Also ... 179

Evidence ... 181

Contents ... 181

See Also ... 181

Finding ... 182

Contents ... 182

See Also ... 184

FindingCriteria ... 185

Contents ... 185

See Also ... 185

FindingStatistics ... 186

Contents ... 186

See Also ... 186

FlowLogsConfigurationResult ... 187

Contents ... 187

See Also ... 187

GeoLocation ... 188

Contents ... 188

See Also ... 188

HostPath ... 189

Contents ... 189

See Also ... 189

IamInstanceProfile ... 190

Contents ... 190

See Also ... 190

InstanceDetails ... 191

Contents ... 191

See Also ... 192

Invitation ... 193

API Version 2017-11-28 xii

(13)

Contents ... 193

See Also ... 193

KubernetesApiCallAction ... 194

Contents ... 194

See Also ... 195

KubernetesAuditLogsConfiguration ... 196

Contents ... 196

See Also ... 196

KubernetesAuditLogsConfigurationResult ... 197

Contents ... 197

See Also ... 197

KubernetesConfiguration ... 198

Contents ... 198

See Also ... 198

KubernetesConfigurationResult ... 199

Contents ... 199

See Also ... 199

KubernetesDetails ... 200

Contents ... 200

See Also ... 200

KubernetesUserDetails ... 201

Contents ... 201

See Also ... 201

KubernetesWorkloadDetails ... 202

Contents ... 202

See Also ... 203

LocalIpDetails ... 204

Contents ... 204

See Also ... 204

LocalPortDetails ... 205

Contents ... 205

See Also ... 205

Master ... 206

Contents ... 206

See Also ... 206

Member ... 207

Contents ... 207

See Also ... 208

MemberDataSourceConfiguration ... 209

Contents ... 209

See Also ... 209

NetworkConnectionAction ... 210

Contents ... 210

See Also ... 211

NetworkInterface ... 212

Contents ... 212

See Also ... 213

Organization ... 214

Contents ... 214

See Also ... 214

OrganizationDataSourceConfigurations ... 215

Contents ... 215

See Also ... 215

OrganizationDataSourceConfigurationsResult ... 216

Contents ... 216

See Also ... 216

OrganizationKubernetesAuditLogsConfiguration ... 217

(14)

Contents ... 217

See Also ... 217

OrganizationKubernetesAuditLogsConfigurationResult ... 218

Contents ... 218

See Also ... 218

OrganizationKubernetesConfiguration ... 219

Contents ... 219

See Also ... 219

OrganizationKubernetesConfigurationResult ... 220

Contents ... 220

See Also ... 220

OrganizationS3LogsConfiguration ... 221

Contents ... 221

See Also ... 221

OrganizationS3LogsConfigurationResult ... 222

Contents ... 222

See Also ... 222

Owner ... 223

Contents ... 223

See Also ... 223

PermissionConfiguration ... 224

Contents ... 224

See Also ... 224

PortProbeAction ... 225

Contents ... 225

See Also ... 225

PortProbeDetail ... 226

Contents ... 226

See Also ... 226

PrivateIpAddressDetails ... 227

Contents ... 227

See Also ... 227

ProductCode ... 228

Contents ... 228

See Also ... 228

PublicAccess ... 229

Contents ... 229

See Also ... 229

RemoteAccountDetails ... 230

Contents ... 230

See Also ... 230

RemoteIpDetails ... 231

Contents ... 231

See Also ... 231

RemotePortDetails ... 232

Contents ... 232

See Also ... 232

Resource ... 233

Contents ... 233

See Also ... 233

S3BucketDetail ... 235

Contents ... 235

See Also ... 236

S3LogsConfiguration ... 237

Contents ... 237

See Also ... 237

S3LogsConfigurationResult ... 238

API Version 2017-11-28 xiv

(15)

Contents ... 238

See Also ... 238

SecurityContext ... 239

Contents ... 239

See Also ... 239

SecurityGroup ... 240

Contents ... 240

See Also ... 240

Service ... 241

Contents ... 241

See Also ... 242

SortCriteria ... 243

Contents ... 243

See Also ... 243

Tag ... 244

Contents ... 244

See Also ... 244

ThreatIntelligenceDetail ... 245

Contents ... 245

See Also ... 245

Total ... 246

Contents ... 246

See Also ... 246

UnprocessedAccount ... 247

Contents ... 247

See Also ... 247

UsageAccountResult ... 248

Contents ... 248

See Also ... 248

UsageCriteria ... 249

Contents ... 249

See Also ... 249

UsageDataSourceResult ... 250

Contents ... 250

See Also ... 250

UsageResourceResult ... 251

Contents ... 251

See Also ... 251

UsageStatistics ... 252

Contents ... 252

See Also ... 252

Volume ... 253

Contents ... 253

See Also ... 253

VolumeMount ... 254

Contents ... 254

See Also ... 254

Common Parameters ... 255

Common Errors ... 257

(16)

Welcome

Amazon GuardDuty is a continuous security monitoring service that analyzes and processes the following data sources: VPC Flow Logs, AWS CloudTrail event logs, and DNS logs. It uses threat intelligence

feeds (such as lists of malicious IPs and domains) and machine learning to identify unexpected, potentially unauthorized, and malicious activity within your AWS environment. This can include issues like escalations of privileges, uses of exposed credentials, or communication with malicious IPs, URLs, or domains. For example, GuardDuty can detect compromised EC2 instances that serve malware or mine bitcoin.

GuardDuty also monitors AWS account access behavior for signs of compromise. Some examples of this are unauthorized infrastructure deployments such as EC2 instances deployed in a Region that has never been used, or unusual API calls like a password policy change to reduce password strength.

GuardDuty informs you of the status of your AWS environment by producing security findings that you can view in the GuardDuty console or through Amazon CloudWatch events. For more information, see the Amazon GuardDuty User Guide .

This document was last published on March 6, 2022.

API Version 2017-11-28 1

(17)

Actions

The following actions are supported:

• AcceptInvitation (p. 4)

• ArchiveFindings (p. 6)

• CreateDetector (p. 8)

• CreateFilter (p. 11)

• CreateIPSet (p. 16)

• CreateMembers (p. 19)

• CreatePublishingDestination (p. 22)

• CreateSampleFindings (p. 25)

• CreateThreatIntelSet (p. 27)

• DeclineInvitations (p. 30)

• DeleteDetector (p. 32)

• DeleteFilter (p. 34)

• DeleteInvitations (p. 36)

• DeleteIPSet (p. 38)

• DeleteMembers (p. 40)

• DeletePublishingDestination (p. 42)

• DeleteThreatIntelSet (p. 44)

• DescribeOrganizationConfiguration (p. 46)

• DescribePublishingDestination (p. 48)

• DisableOrganizationAdminAccount (p. 51)

• DisassociateFromMasterAccount (p. 53)

• DisassociateMembers (p. 55)

• EnableOrganizationAdminAccount (p. 57)

• GetDetector (p. 59)

• GetFilter (p. 62)

• GetFindings (p. 65)

• GetFindingsStatistics (p. 72)

• GetInvitationsCount (p. 75)

• GetIPSet (p. 77)

• GetMasterAccount (p. 80)

• GetMemberDetectors (p. 82)

• GetMembers (p. 85)

• GetThreatIntelSet (p. 88)

• GetUsageStatistics (p. 91)

• InviteMembers (p. 95)

• ListDetectors (p. 98)

• ListFilters (p. 100)

• ListFindings (p. 102)

• ListInvitations (p. 106)

• ListIPSets (p. 108)

(18)

• ListMembers (p. 110)

• ListOrganizationAdminAccounts (p. 113)

• ListPublishingDestinations (p. 115)

• ListTagsForResource (p. 117)

• ListThreatIntelSets (p. 119)

• StartMonitoringMembers (p. 121)

• StopMonitoringMembers (p. 123)

• TagResource (p. 125)

• UnarchiveFindings (p. 127)

• UntagResource (p. 129)

• UpdateDetector (p. 131)

• UpdateFilter (p. 133)

• UpdateFindingsFeedback (p. 136)

• UpdateIPSet (p. 138)

• UpdateMemberDetectors (p. 140)

• UpdateOrganizationConfiguration (p. 143)

• UpdatePublishingDestination (p. 145)

• UpdateThreatIntelSet (p. 147)

API Version 2017-11-28 3

(19)

AcceptInvitation

AcceptInvitation

Accepts the invitation to be monitored by a GuardDuty administrator account.

Request Syntax

POST /detector/detectorId/master HTTP/1.1 Content-type: application/json

{

"invitationId": "string", "masterId": "string"

}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 4)

The unique ID of the detector of the GuardDuty member account.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

invitationId (p. 4)

The value that is used to validate the administrator account to the member account.

Type: String Required: Yes masterId (p. 4)

The account ID of the GuardDuty administrator account whose invitation you're accepting.

Type: String Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

(20)

Errors

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 5

(21)

ArchiveFindings

ArchiveFindings

Archives GuardDuty findings that are specified by the list of finding IDs.

NoteOnly the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.

Request Syntax

POST /detector/detectorId/findings/archive HTTP/1.1 Content-type: application/json

{ "findingIds": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 6)

The ID of the detector that specifies the GuardDuty service whose findings you want to archive.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

findingIds (p. 6)

The IDs of the findings that you want to archive.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

(22)

Errors

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 7

(23)

CreateDetector

CreateDetector

Creates a single Amazon 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 by default.

Request Syntax

POST /detector HTTP/1.1

Content-type: application/json {

"clientToken": "string", "dataSources": { "kubernetes": { "auditLogs": { "enable": boolean }

},

"s3Logs": {

"enable": boolean }

},

"enable": boolean,

"findingPublishingFrequency": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

clientToken (p. 8)

The idempotency token for the create request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No dataSources (p. 8)

Describes which data sources will be enabled for the detector.

Type: DataSourceConfigurations (p. 171) object Required: No

enable (p. 8)

A Boolean value that specifies whether the detector is to be enabled.

(24)

Response Syntax

Type: Boolean Required: Yes

findingPublishingFrequency (p. 8)

A value that specifies how frequently updated findings are exported.

Type: String

Valid Values: FIFTEEN_MINUTES | ONE_HOUR | SIX_HOURS Required: No

tags (p. 8)

The tags to be added to a new detector resource.

Type: String to string map

Map Entries: Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$

Value Length Constraints: Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"detectorId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

detectorId (p. 9)

The unique ID of the created detector.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

API Version 2017-11-28 9

(25)

See Also

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(26)

CreateFilter

CreateFilter

Creates a filter using the specified finding criteria.

Request Syntax

POST /detector/detectorId/filter HTTP/1.1 Content-type: application/json

{

"action": "string", "clientToken": "string", "description": "string", "findingCriteria": { "criterion": { "string" : {

"eq": [ "string" ], "equals": [ "string" ], "greaterThan": number,

"greaterThanOrEqual": number, "gt": number,

"gte": number, "lessThan": number, "lessThanOrEqual": number, "lt": number,

"lte": number, "neq": [ "string" ], "notEquals": [ "string" ] }

} },

"name": "string", "rank": number, "tags": {

"string" : "string"

}}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 11)

The ID of the detector belonging to the GuardDuty account that you want to create a filter for.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

action (p. 11)

Specifies the action that is to be applied to the findings that match the filter.

API Version 2017-11-28 11

(27)

Request Body

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Valid Values: NOOP | ARCHIVE Required: No

clientToken (p. 11)

The idempotency token for the create request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No description (p. 11)

The description of the filter.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 512.

Required: No findingCriteria (p. 11)

Represents the criteria to be used in the filter for querying findings.

You can only use the following attributes to query findings:

• accountId

• region

• confidence

• id

• resource.accessKeyDetails.accessKeyId

• resource.accessKeyDetails.principalId

• resource.accessKeyDetails.userName

• resource.accessKeyDetails.userType

• resource.instanceDetails.iamInstanceProfile.id

• resource.instanceDetails.imageId

• resource.instanceDetails.instanceId

• resource.instanceDetails.outpostArn

• resource.instanceDetails.networkInterfaces.ipv6Addresses

• resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

• resource.instanceDetails.networkInterfaces.publicDnsName

• resource.instanceDetails.networkInterfaces.publicIp

• resource.instanceDetails.networkInterfaces.securityGroups.groupId

• resource.instanceDetails.networkInterfaces.securityGroups.groupName

• resource.instanceDetails.networkInterfaces.subnetId

• resource.instanceDetails.networkInterfaces.vpcId

• resource.instanceDetails.tags.key

• resource.instanceDetails.tags.value

• resource.resourceType

(28)

Request Body

• service.action.actionType

• service.action.awsApiCallAction.api

• service.action.awsApiCallAction.callerType

• service.action.awsApiCallAction.errorCode

• service.action.awsApiCallAction.userAgent

• service.action.awsApiCallAction.remoteIpDetails.city.cityName

• service.action.awsApiCallAction.remoteIpDetails.country.countryName

• service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

• service.action.awsApiCallAction.remoteIpDetails.organization.asn

• service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

• service.action.awsApiCallAction.serviceName

• service.action.dnsRequestAction.domain

• service.action.networkConnectionAction.blocked

• service.action.networkConnectionAction.connectionDirection

• service.action.networkConnectionAction.localPortDetails.port

• service.action.networkConnectionAction.protocol

• service.action.networkConnectionAction.localIpDetails.ipAddressV4

• service.action.networkConnectionAction.remoteIpDetails.city.cityName

• service.action.networkConnectionAction.remoteIpDetails.country.countryName

• service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

• service.action.networkConnectionAction.remoteIpDetails.organization.asn

• service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

• service.action.networkConnectionAction.remotePortDetails.port

• service.additionalInfo.threatListName

• resource.s3BucketDetails.publicAccess.effectivePermissions

• resource.s3BucketDetails.name

• resource.s3BucketDetails.tags.key

• resource.s3BucketDetails.tags.value

• resource.s3BucketDetails.type

• service.archived

When this attribute is set to TRUE, only archived findings are listed. When it's set to FALSE, only unarchived findings are listed. When this attribute is not set, all existing findings are listed.

• service.resourceRole

• severity

• type

• updatedAt

Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on whether the value contains milliseconds.

Type: FindingCriteria (p. 185) object Required: Yes

name (p. 11)

The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.

Type: String

API Version 2017-11-28 13

(29)

Response Syntax

Length Constraints: Minimum length of 3. Maximum length of 64.

Required: Yes rank (p. 11)

Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No tags (p. 11)

The tags to be added to a new filter resource.

Type: String to string map

Map Entries: Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$

Value Length Constraints: Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"name": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

name (p. 14)

The name of the successfully created filter.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 64.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

(30)

See Also

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 15

(31)

CreateIPSet

CreateIPSet

Creates 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 AWS infrastructure and applications.

GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.

Request Syntax

POST /detector/detectorId/ipset HTTP/1.1 Content-type: application/json

{ "activate": boolean, "clientToken": "string", "format": "string", "location": "string", "name": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 16)

The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

activate (p. 16)

A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet.

Type: Boolean Required: Yes clientToken (p. 16)

The idempotency token for the create request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No

(32)

Response Syntax

format (p. 16)

The format of the file that contains the IPSet.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Valid Values: TXT | STIX | OTX_CSV | ALIEN_VAULT | PROOF_POINT | FIRE_EYE Required: Yes

location (p. 16)

The URI of the file that contains the IPSet.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes name (p. 16)

The user-friendly name to identify the IPSet.

Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes tags (p. 16)

The tags to be added to a new IP set resource.

Type: String to string map

Map Entries: Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$

Value Length Constraints: Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ipSetId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

API Version 2017-11-28 17

(33)

Errors

The following data is returned in JSON format by the service.

ipSetId (p. 17)

The ID of the IPSet resource.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(34)

CreateMembers

CreateMembers

Creates member accounts of the current AWS account by specifying a list of AWS account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

When using Create Members as an organizations delegated administrator this action will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account, which must enable GuardDuty prior to being added as a member.

If you are adding accounts by invitation use this action after GuardDuty has been enabled in potential member accounts and before using Invite Members.

Request Syntax

POST /detector/detectorId/member HTTP/1.1 Content-type: application/json

{ "accountDetails": [ {

"accountId": "string", "email": "string"

} ]}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 19)

The unique ID of the detector of the GuardDuty account that you want to associate member accounts with.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

accountDetails (p. 19)

A list of account ID and email address pairs of the accounts that you want to associate with the GuardDuty administrator account.

Type: Array of AccountDetail (p. 154) objects

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Required: Yes

API Version 2017-11-28 19

(35)

Response Syntax

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"unprocessedAccounts": [ {

"accountId": "string", "result": "string"

} ]}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

unprocessedAccounts (p. 20)

A list of objects that include the accountIds of the unprocessed accounts and a result string that explains why each was unprocessed.

Type: Array of UnprocessedAccount (p. 247) objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

(36)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 21

(37)

CreatePublishingDestination

CreatePublishingDestination

Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.

Request Syntax

POST /detector/detectorId/publishingDestination HTTP/1.1 Content-type: application/json

{ "clientToken": "string", "destinationProperties": { "destinationArn": "string", "kmsKeyArn": "string"

},

"destinationType": "string"

}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 22)

The ID of the GuardDuty detector associated with the publishing destination.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

clientToken (p. 22)

The idempotency token for the request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No

destinationProperties (p. 22)

The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.

Type: DestinationProperties (p. 175) object Required: Yes

destinationType (p. 22)

The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.

(38)

Response Syntax

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Valid Values: S3 Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json { "destinationId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

destinationId (p. 23)

The ID of the publishing destination that is created.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

API Version 2017-11-28 23

(39)

See Also

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(40)

CreateSampleFindings

CreateSampleFindings

Generates example findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates example findings of all supported finding types.

Request Syntax

POST /detector/detectorId/findings/create HTTP/1.1 Content-type: application/json

{ "findingTypes": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 25)

The ID of the detector to create sample findings for.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

findingTypes (p. 25)

The types of sample findings to generate.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Length Constraints: Minimum length of 1. Maximum length of 50.

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

API Version 2017-11-28 25

(41)

See Also

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

CreateThreatIntelSet

CreateThreatIntelSet

Creates 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.

Request Syntax

POST /detector/detectorId/threatintelset HTTP/1.1 Content-type: application/json

{

"activate": boolean, "clientToken": "string", "format": "string", "location": "string", "name": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 27)

The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

activate (p. 27)

A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.

Type: Boolean Required: Yes clientToken (p. 27)

The idempotency token for the create request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 64.

Required: No format (p. 27)

The format of the file that contains the ThreatIntelSet.

API Version 2017-11-28 27

(43)

Response Syntax

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Valid Values: TXT | STIX | OTX_CSV | ALIEN_VAULT | PROOF_POINT | FIRE_EYE Required: Yes

location (p. 27)

The URI of the file that contains the ThreatIntelSet.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes name (p. 27)

A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes tags (p. 27)

The tags to be added to a new threat list resource.

Type: String to string map

Map Entries: Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$

Value Length Constraints: Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json { "threatIntelSetId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

(44)

Errors

threatIntelSetId (p. 28)

The ID of the ThreatIntelSet resource.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 29

(45)

DeclineInvitations

DeclineInvitations

Declines invitations sent to the current member account by AWS accounts specified by their account IDs.

Request Syntax

POST /invitation/decline HTTP/1.1 Content-type: application/json {

"accountIds": [ "string" ] }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

accountIds (p. 30)

A list of account IDs of the AWS accounts that sent invitations to the current member account that you want to decline invitations from.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Length Constraints: Fixed length of 12.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json { "unprocessedAccounts": [ {

"accountId": "string", "result": "string"

} ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

(46)

Errors

unprocessedAccounts (p. 30)

A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.

Type: Array of UnprocessedAccount (p. 247) objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 31

(47)

DeleteDetector

DeleteDetector

Deletes an Amazon GuardDuty detector that is specified by the detector ID.

Request Syntax

DELETE /detector/detectorId HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 32)

The unique ID of the detector that you want to delete.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

(48)

See Also

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 33

(49)

DeleteFilter

DeleteFilter

Deletes the filter specified by the filter name.

Request Syntax

DELETE /detector/detectorId/filter/filterName HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 34)

The unique ID of the detector that the filter is associated with.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes filterName (p. 34)

The name of the filter that you want to delete.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

(50)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 35

(51)

DeleteInvitations

DeleteInvitations

Deletes invitations sent to the current member account by AWS accounts specified by their account IDs.

Request Syntax

POST /invitation/delete HTTP/1.1 Content-type: application/json {

"accountIds": [ "string" ] }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

accountIds (p. 36)

A list of account IDs of the AWS accounts that sent invitations to the current member account that you want to delete invitations from.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Length Constraints: Fixed length of 12.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json { "unprocessedAccounts": [ {

"accountId": "string", "result": "string"

} ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

(52)

Errors

unprocessedAccounts (p. 36)

A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.

Type: Array of UnprocessedAccount (p. 247) objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 37

(53)

DeleteIPSet

DeleteIPSet

Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user interface.

Request Syntax

DELETE /detector/detectorId/ipset/ipSetId HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 38)

The unique ID of the detector associated with the IPSet.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes ipSetId (p. 38)

The unique ID of the IPSet to delete.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

(54)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 39

(55)

DeleteMembers

DeleteMembers

Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.

Request Syntax

POST /detector/detectorId/member/delete HTTP/1.1 Content-type: application/json

{ "accountIds": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.

detectorId (p. 40)

The unique ID of the detector of the GuardDuty account whose members you want to delete.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request accepts the following data in JSON format.

accountIds (p. 40)

A list of account IDs of the GuardDuty member accounts that you want to delete.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Length Constraints: Fixed length of 12.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json { "unprocessedAccounts": [ {

"accountId": "string", "result": "string"

} ]

(56)

Response Elements

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

unprocessedAccounts (p. 40)

The accounts that could not be processed.

Type: Array of UnprocessedAccount (p. 247) objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 41

(57)

DeletePublishingDestination

DeletePublishingDestination

Deletes the publishing definition with the specified destinationId.

Request Syntax

DELETE /detector/detectorId/publishingDestination/destinationId HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

destinationId (p. 42)

The ID of the publishing destination to delete.

Required: Yes detectorId (p. 42)

The unique ID of the detector associated with the publishing destination to delete.

Length Constraints: Minimum length of 1. Maximum length of 300.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 257).

BadRequestException

A bad request exception object.

HTTP Status Code: 400 InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

(58)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

API Version 2017-11-28 43

參考文獻

相關文件

Walsh, Hooven and Kronick (2013) reported that a critical step in reducing youth suicide is to move beyond having a single responder in a school. When responding to students with

 Light travels between source and detector as a probability wave.

 Light travels between source and detector as a probability wave..

On a Saturday afternoon, you pull into a parking lot with unme- tered spaces near a shopping area, where people are known to shop, on average, for 2 hours. You circle around, but

If the source is very highly coherent and the detector is placed very far behind the sample, one will observe a fringe pattern as different components of the beam,

Effect (a) Detector moving; source stationary...

A high speed, large area, silicon photovoltaic detector housed in a 26.2mm diameter case. Its large active area, 1cm 2 , and peak spectral response at 900nm make the device suitable

• Use table to create a table for column-oriented or tabular data that is often stored as columns in a spreadsheet.. • Use detectImportOptions to create import options based on