• 沒有找到結果。

Amazon Inspector

N/A
N/A
Protected

Academic year: 2022

Share "Amazon Inspector"

Copied!
189
0
0

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

全文

(1)

Amazon Inspector

API Reference

API Version 2016-02-16

(2)

Amazon Inspector: 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

AddAttributesToFindings ... 3

Request Syntax ... 3

Request Parameters ... 3

Response Syntax ... 3

Response Elements ... 4

Errors ... 4

Examples ... 4

See Also ... 5

CreateAssessmentTarget ... 6

Request Syntax ... 6

Request Parameters ... 6

Response Syntax ... 6

Response Elements ... 6

Errors ... 7

Examples ... 7

See Also ... 8

CreateAssessmentTemplate ... 9

Request Syntax ... 9

Request Parameters ... 9

Response Syntax ... 10

Response Elements ... 10

Errors ... 10

Examples ... 11

See Also ... 12

CreateExclusionsPreview ... 13

Request Syntax ... 13

Request Parameters ... 13

Response Syntax ... 13

Response Elements ... 13

Errors ... 13

See Also ... 14

CreateResourceGroup ... 15

Request Syntax ... 15

Request Parameters ... 15

Response Syntax ... 15

Response Elements ... 15

Errors ... 16

Examples ... 16

See Also ... 17

DeleteAssessmentRun ... 18

Request Syntax ... 18

Request Parameters ... 18

Response Elements ... 18

Errors ... 18

Examples ... 19

See Also ... 19

DeleteAssessmentTarget ... 21

Request Syntax ... 21

Request Parameters ... 21

Response Elements ... 21

Errors ... 21

Examples ... 22

(4)

See Also ... 22

DeleteAssessmentTemplate ... 24

Request Syntax ... 24

Request Parameters ... 24

Response Elements ... 24

Errors ... 24

Examples ... 25

See Also ... 25

DescribeAssessmentRuns ... 27

Request Syntax ... 27

Request Parameters ... 27

Response Syntax ... 27

Response Elements ... 28

Errors ... 28

Examples ... 29

See Also ... 30

DescribeAssessmentTargets ... 31

Request Syntax ... 31

Request Parameters ... 31

Response Syntax ... 31

Response Elements ... 31

Errors ... 32

Examples ... 32

See Also ... 33

DescribeAssessmentTemplates ... 34

Request Syntax ... 34

Request Parameters ... 34

Response Syntax ... 34

Response Elements ... 35

Errors ... 35

Examples ... 35

See Also ... 36

DescribeCrossAccountAccessRole ... 37

Response Syntax ... 37

Response Elements ... 37

Errors ... 37

Examples ... 37

See Also ... 38

DescribeExclusions ... 39

Request Syntax ... 39

Request Parameters ... 39

Response Syntax ... 39

Response Elements ... 40

Errors ... 40

See Also ... 40

DescribeFindings ... 42

Request Syntax ... 42

Request Parameters ... 42

Response Syntax ... 42

Response Elements ... 44

Errors ... 44

Examples ... 44

See Also ... 46

DescribeResourceGroups ... 47

Request Syntax ... 47

Request Parameters ... 47

Response Syntax ... 47

(5)

Response Elements ... 47

Errors ... 48

Examples ... 48

See Also ... 49

DescribeRulesPackages ... 50

Request Syntax ... 50

Request Parameters ... 50

Response Syntax ... 50

Response Elements ... 51

Errors ... 51

Examples ... 51

See Also ... 52

GetAssessmentReport ... 54

Request Syntax ... 54

Request Parameters ... 54

Response Syntax ... 54

Response Elements ... 55

Errors ... 55

See Also ... 56

GetExclusionsPreview ... 57

Request Syntax ... 57

Request Parameters ... 57

Response Syntax ... 58

Response Elements ... 58

Errors ... 59

See Also ... 59

GetTelemetryMetadata ... 60

Request Syntax ... 60

Request Parameters ... 60

Response Syntax ... 60

Response Elements ... 60

Errors ... 61

Examples ... 61

See Also ... 64

ListAssessmentRunAgents ... 65

Request Syntax ... 65

Request Parameters ... 65

Response Syntax ... 66

Response Elements ... 66

Errors ... 66

Examples ... 67

See Also ... 70

ListAssessmentRuns ... 71

Request Syntax ... 71

Request Parameters ... 71

Response Syntax ... 72

Response Elements ... 72

Errors ... 72

Examples ... 73

See Also ... 74

ListAssessmentTargets ... 75

Request Syntax ... 75

Request Parameters ... 75

Response Syntax ... 75

Response Elements ... 76

Errors ... 76

Examples ... 76

(6)

See Also ... 77

ListAssessmentTemplates ... 78

Request Syntax ... 78

Request Parameters ... 78

Response Syntax ... 79

Response Elements ... 79

Errors ... 79

Examples ... 80

See Also ... 80

ListEventSubscriptions ... 82

Request Syntax ... 82

Request Parameters ... 82

Response Syntax ... 82

Response Elements ... 83

Errors ... 83

Examples ... 84

See Also ... 84

ListExclusions ... 86

Request Syntax ... 86

Request Parameters ... 86

Response Syntax ... 86

Response Elements ... 87

Errors ... 87

See Also ... 87

ListFindings ... 89

Request Syntax ... 89

Request Parameters ... 89

Response Syntax ... 90

Response Elements ... 90

Errors ... 91

Examples ... 91

See Also ... 92

ListRulesPackages ... 93

Request Syntax ... 93

Request Parameters ... 93

Response Syntax ... 93

Response Elements ... 93

Errors ... 94

Examples ... 94

See Also ... 95

ListTagsForResource ... 96

Request Syntax ... 96

Request Parameters ... 96

Response Syntax ... 96

Response Elements ... 96

Errors ... 96

Examples ... 97

See Also ... 98

PreviewAgents ... 99

Request Syntax ... 99

Request Parameters ... 99

Response Syntax ... 99

Response Elements ... 100

Errors ... 100

Examples ... 101

See Also ... 101

RegisterCrossAccountAccessRole ... 103

(7)

Request Syntax ... 103

Request Parameters ... 103

Response Elements ... 103

Errors ... 103

Examples ... 104

See Also ... 104

RemoveAttributesFromFindings ... 106

Request Syntax ... 106

Request Parameters ... 106

Response Syntax ... 106

Response Elements ... 106

Errors ... 107

Examples ... 107

See Also ... 108

SetTagsForResource ... 109

Request Syntax ... 109

Request Parameters ... 109

Response Elements ... 109

Errors ... 109

Examples ... 110

See Also ... 111

StartAssessmentRun ... 112

Request Syntax ... 112

Request Parameters ... 112

Response Syntax ... 112

Response Elements ... 112

Errors ... 113

Examples ... 113

See Also ... 114

StopAssessmentRun ... 115

Request Syntax ... 115

Request Parameters ... 115

Response Elements ... 115

Errors ... 115

Examples ... 116

See Also ... 116

SubscribeToEvent ... 118

Request Syntax ... 118

Request Parameters ... 118

Response Elements ... 118

Errors ... 119

Examples ... 119

See Also ... 120

UnsubscribeFromEvent ... 121

Request Syntax ... 121

Request Parameters ... 121

Response Elements ... 121

Errors ... 122

Examples ... 122

See Also ... 123

UpdateAssessmentTarget ... 124

Request Syntax ... 124

Request Parameters ... 124

Response Elements ... 124

Errors ... 125

Examples ... 125

See Also ... 126

(8)

Data Types ... 127

AgentAlreadyRunningAssessment ... 128

Contents ... 128

See Also ... 128

AgentFilter ... 129

Contents ... 129

See Also ... 129

AgentPreview ... 130

Contents ... 130

See Also ... 131

AssessmentRun ... 132

Contents ... 132

See Also ... 134

AssessmentRunAgent ... 135

Contents ... 135

See Also ... 136

AssessmentRunFilter ... 137

Contents ... 137

See Also ... 138

AssessmentRunNotification ... 139

Contents ... 139

See Also ... 140

AssessmentRunStateChange ... 141

Contents ... 141

See Also ... 141

AssessmentTarget ... 142

Contents ... 142

See Also ... 142

AssessmentTargetFilter ... 144

Contents ... 144

See Also ... 144

AssessmentTemplate ... 145

Contents ... 145

See Also ... 146

AssessmentTemplateFilter ... 147

Contents ... 147

See Also ... 147

AssetAttributes ... 148

Contents ... 148

See Also ... 149

Attribute ... 150

Contents ... 150

See Also ... 150

DurationRange ... 151

Contents ... 151

See Also ... 151

EventSubscription ... 152

Contents ... 152

See Also ... 152

Exclusion ... 153

Contents ... 153

See Also ... 154

ExclusionPreview ... 155

Contents ... 155

See Also ... 155

FailedItemDetails ... 157

Contents ... 157

(9)

See Also ... 157

Finding ... 158

Contents ... 158

See Also ... 160

FindingFilter ... 161

Contents ... 161

See Also ... 162

InspectorServiceAttributes ... 163

Contents ... 163

See Also ... 163

NetworkInterface ... 164

Contents ... 164

See Also ... 165

PrivateIp ... 166

Contents ... 166

See Also ... 166

ResourceGroup ... 167

Contents ... 167

See Also ... 167

ResourceGroupTag ... 168

Contents ... 168

See Also ... 168

RulesPackage ... 169

Contents ... 169

See Also ... 169

Scope ... 171

Contents ... 171

See Also ... 171

SecurityGroup ... 172

Contents ... 172

See Also ... 172

Subscription ... 173

Contents ... 173

See Also ... 173

Tag ... 174

Contents ... 174

See Also ... 174

TelemetryMetadata ... 175

Contents ... 175

See Also ... 175

TimestampRange ... 176

Contents ... 176

See Also ... 176

Common Parameters ... 177

Common Errors ... 179

(10)

Welcome

Amazon Inspector Classic enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector Classic User Guide.

This document was last published on March 6, 2022.

(11)

Actions

The following actions are supported:

• AddAttributesToFindings (p. 3)

• CreateAssessmentTarget (p. 6)

• CreateAssessmentTemplate (p. 9)

• CreateExclusionsPreview (p. 13)

• CreateResourceGroup (p. 15)

• DeleteAssessmentRun (p. 18)

• DeleteAssessmentTarget (p. 21)

• DeleteAssessmentTemplate (p. 24)

• DescribeAssessmentRuns (p. 27)

• DescribeAssessmentTargets (p. 31)

• DescribeAssessmentTemplates (p. 34)

• DescribeCrossAccountAccessRole (p. 37)

• DescribeExclusions (p. 39)

• DescribeFindings (p. 42)

• DescribeResourceGroups (p. 47)

• DescribeRulesPackages (p. 50)

• GetAssessmentReport (p. 54)

• GetExclusionsPreview (p. 57)

• GetTelemetryMetadata (p. 60)

• ListAssessmentRunAgents (p. 65)

• ListAssessmentRuns (p. 71)

• ListAssessmentTargets (p. 75)

• ListAssessmentTemplates (p. 78)

• ListEventSubscriptions (p. 82)

• ListExclusions (p. 86)

• ListFindings (p. 89)

• ListRulesPackages (p. 93)

• ListTagsForResource (p. 96)

• PreviewAgents (p. 99)

• RegisterCrossAccountAccessRole (p. 103)

• RemoveAttributesFromFindings (p. 106)

• SetTagsForResource (p. 109)

• StartAssessmentRun (p. 112)

• StopAssessmentRun (p. 115)

• SubscribeToEvent (p. 118)

• UnsubscribeFromEvent (p. 121)

• UpdateAssessmentTarget (p. 124)

(12)

AddAttributesToFindings

AddAttributesToFindings

Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.

Request Syntax

{ "attributes": [ {

"key": "string", "value": "string"

} ],

"findingArns": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

attributes (p. 3)

The array of attributes that you want to assign to specified findings.

Type: Array of Attribute (p. 150) objects

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

Required: Yes findingArns (p. 3)

The ARNs that specify the findings that you want to assign attributes to.

Type: Array of strings

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

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

Required: Yes

Response Syntax

{ "failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

}}

(13)

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.

failedItems (p. 3)

Attribute details that cannot be described. An error code is provided for each failed item.

Type: String to FailedItemDetails (p. 157) object map

Key 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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of AddAttributesToFindings.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 189

(14)

See Also

X-Amz-Target: InspectorService.AddAttributesToFindings X-Amz-Date: 20160329T233810Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"attributes": [ {

"key": "Example", "value": "example"

} ],

"findingArns": [

"arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/

template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"

] }

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 4c8b9c50-f607-11e5-9380-d76f0924b6d7 Content-Type: application/x-amz-json-1.1

Content-Length: 18

Date: Tue, 29 Mar 2016 23:38:11 GMT {

"failedItems": {}

}

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

(15)

CreateAssessmentTarget

CreateAssessmentTarget

Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup (p. 15). If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector Classic access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Classic Assessment Targets.

Request Syntax

{

"assessmentTargetName": "string", "resourceGroupArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTargetName (p. 6)

The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.

Type: String

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

Required: Yes resourceGroupArn (p. 6)

The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

Type: String

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

Required: No

Response Syntax

{ "assessmentTargetArn": "string"

}

Response Elements

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

(16)

Errors

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

assessmentTargetArn (p. 6)

The ARN that specifies the assessment target that is created.

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. 179).

InternalException Internal server error.

HTTP Status Code: 500

InvalidCrossAccountRoleException

Amazon Inspector Classic cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.

HTTP Status Code: 400 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 LimitExceededException

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

HTTP Status Code: 400

ServiceTemporarilyUnavailableException

The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateAssessmentTarget.

(17)

See Also

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 129

X-Amz-Target: InspectorService.CreateAssessmentTarget X-Amz-Date: 20160331T174054Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentTargetName": "ExampleAssessmentTarget", "resourceGroupArn": "arn:aws:inspector:us-

west-2:123456789012:resourcegroup/0-AB6DMKnv"

}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: b87f981e-f767-11e5-82d7-bb83264505be Content-Type: application/x-amz-json-1.1

Content-Length: 84

Date: Thu, 31 Mar 2016 17:40:55 GMT {

"assessmentTargetArn": "arn:aws:inspector:us- west-2:123456789012:target/0-nvgVhaxX"

}

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

(18)

CreateAssessmentTemplate

CreateAssessmentTemplate

Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service- linked role to grant Amazon Inspector Classic access to AWS Services needed to perform security assessments.

Request Syntax

{

"assessmentTargetArn": "string", "assessmentTemplateName": "string", "durationInSeconds": number, "rulesPackageArns": [ "string" ], "userAttributesForFindings": [ {

"key": "string", "value": "string"

} ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTargetArn (p. 9)

The ARN that specifies the assessment target for which you want to create the assessment template.

Type: String

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

Required: Yes

assessmentTemplateName (p. 9)

The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

Type: String

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

Required: Yes durationInSeconds (p. 9)

The duration of the assessment run in seconds.

Type: Integer

Valid Range: Minimum value of 180. Maximum value of 86400.

Required: Yes

(19)

Response Syntax

rulesPackageArns (p. 9)

The ARNs that specify the rules packages that you want to attach to the assessment template.

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

userAttributesForFindings (p. 9)

The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute (p. 150) object). Within an assessment template, each key must be unique.

Type: Array of Attribute (p. 150) objects

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

Required: No

Response Syntax

{ "assessmentTemplateArn": "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.

assessmentTemplateArn (p. 10)

The ARN that specifies the assessment template that is created.

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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

(20)

Examples

HTTP Status Code: 400 LimitExceededException

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateAssessmentTemplate.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 335

X-Amz-Target: InspectorService.CreateAssessmentTemplate X-Amz-Date: 20160331T175559Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentTargetArn": "arn:aws:inspector:us- west-2:123456789012:target/0-nvgVhaxX",

"assessmentTemplateName": "ExampleAssessmentTemplate", "userAttributesForFindings": [

{

"key": "Example", "value": "example"

} ],

"durationInSeconds": 180, "rulesPackageArns": [

"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp"

] }

Sample Response

(21)

See Also

HTTP/1.1 200 OK

x-amzn-RequestId: d3d3d58e-f769-11e5-9da0-9bde5220d15c Content-Type: application/x-amz-json-1.1

Content-Length: 106

Date: Thu, 31 Mar 2016 17:56:00 GMT {

"assessmentTemplateArn": "arn:aws:inspector:us- west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"

}

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

(22)

CreateExclusionsPreview

CreateExclusionsPreview

Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector Classic can detect before it runs the assessment.

Request Syntax

{ "assessmentTemplateArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTemplateArn (p. 13)

The ARN that specifies the assessment template for which you want to create an exclusions preview.

Type: String

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

Required: Yes

Response Syntax

{ "previewToken": "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.

previewToken (p. 13)

Specifies the unique identifier of the requested exclusions preview. You can use the unique identifier to retrieve the exclusions preview when running the GetExclusionsPreview API.

Type: String

Pattern: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Errors

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

(23)

See Also

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

HTTP Status Code: 400

PreviewGenerationInProgressException

The request is rejected. The specified assessment template is currently generating an exclusions preview.

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

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

(24)

CreateResourceGroup

CreateResourceGroup

Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector Classic assessment target. The created resource group is then used to create an Amazon Inspector Classic assessment target. For more information, see CreateAssessmentTarget (p. 6).

Request Syntax

{

"resourceGroupTags": [ {

"key": "string", "value": "string"

} ]}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

resourceGroupTags (p. 15)

A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]}, {"key":"Key2","values":["Value3"]}]'.

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

Type: Array of ResourceGroupTag (p. 168) objects

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

Required: Yes

Response Syntax

{

"resourceGroupArn": "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.

resourceGroupArn (p. 15)

The ARN that specifies the resource group that is created.

Type: String

(25)

Errors

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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 LimitExceededException

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateResourceGroup.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 67

X-Amz-Target: InspectorService.CreateResourceGroup X-Amz-Date: 20160331T171757Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"resourceGroupTags": [ {

"key": "Name", "value": "example"

} ] }

(26)

See Also

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 8416dfb4-f764-11e5-872a-fde3682789d5 Content-Type: application/x-amz-json-1.1

Content-Length: 88

Date: Thu, 31 Mar 2016 17:17:58 GMT {

"resourceGroupArn": "arn:aws:inspector:us- west-2:123456789012:resourcegroup/0-AB6DMKnv"

}

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

(27)

DeleteAssessmentRun

DeleteAssessmentRun

Deletes the assessment run that is specified by the ARN of the assessment run.

Request Syntax

{ "assessmentRunArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentRunArn (p. 18)

The ARN that specifies the assessment run that you want to delete.

Type: String

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

Required: Yes

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. 179).

AssessmentRunInProgressException

You cannot perform a specified action if an assessment run is currently in progress.

HTTP Status Code: 400 InternalException

Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

(28)

Examples

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteAssessmentRun.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 117

X-Amz-Target: InspectorService.DeleteAssessmentRun X-Amz-Date: 20160331T183810Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0- nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe"

}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: b8494bff-f76f-11e5-9d49-6dd670a2a95d Content-Type: application/x-amz-json-1.1

Content-Length: 0

Date: Thu, 31 Mar 2016 18:38:11 GMT

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

(29)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(30)

DeleteAssessmentTarget

DeleteAssessmentTarget

Deletes the assessment target that is specified by the ARN of the assessment target.

Request Syntax

{ "assessmentTargetArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTargetArn (p. 21)

The ARN that specifies the assessment target that you want to delete.

Type: String

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

Required: Yes

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. 179).

AssessmentRunInProgressException

You cannot perform a specified action if an assessment run is currently in progress.

HTTP Status Code: 400 InternalException

Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

(31)

Examples

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteAssessmentTarget.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 85

X-Amz-Target: InspectorService.DeleteAssessmentTarget X-Amz-Date: 20160331T184144Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentTargetArn": "arn:aws:inspector:us- west-2:123456789012:target/0-0kFIPusq"

}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 37dee3da-f770-11e5-b61e-e163adb0c30c Content-Type: application/x-amz-json-1.1

Content-Length: 0

Date: Thu, 31 Mar 2016 18:41:45 GMT

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

(32)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(33)

DeleteAssessmentTemplate

DeleteAssessmentTemplate

Deletes the assessment template that is specified by the ARN of the assessment template.

Request Syntax

{ "assessmentTemplateArn": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTemplateArn (p. 24)

The ARN that specifies the assessment template that you want to delete.

Type: String

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

Required: Yes

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. 179).

AssessmentRunInProgressException

You cannot perform a specified action if an assessment run is currently in progress.

HTTP Status Code: 400 InternalException

Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400 NoSuchEntityException

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

(34)

Examples

HTTP Status Code: 400

ServiceTemporarilyUnavailableException The serice is temporary unavailable.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteAssessmentTemplate.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 107

X-Amz-Target: InspectorService.DeleteAssessmentTemplate X-Amz-Date: 20160331T184505Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentTemplateArn": "arn:aws:inspector:us- west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"

}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: afcc2e7e-f770-11e5-8f9c-054cd1296cf6 Content-Type: application/x-amz-json-1.1

Content-Length: 0

Date: Thu, 31 Mar 2016 18:45:06 GMT

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

(35)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(36)

DescribeAssessmentRuns

DescribeAssessmentRuns

Describes the assessment runs that are specified by the ARNs of the assessment runs.

Request Syntax

{

"assessmentRunArns": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentRunArns (p. 27)

The ARN that specifies the assessment run that you want to describe.

Type: Array of strings

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

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

Required: Yes

Response Syntax

{

"assessmentRuns": [ {

"arn": "string",

"assessmentTemplateArn": "string", "completedAt": number,

"createdAt": number, "dataCollected": boolean, "durationInSeconds": number, "findingCounts": {

"string" : number },

"name": "string", "notifications": [ {

"date": number, "error": boolean, "event": "string", "message": "string",

"snsPublishStatusCode": "string", "snsTopicArn": "string"

} ],

"rulesPackageArns": [ "string" ], "startedAt": number,

"state": "string",

(37)

Response Elements

"stateChangedAt": number, "stateChanges": [

{

"state": "string", "stateChangedAt": number }

],

"userAttributesForFindings": [ {

"key": "string", "value": "string"

} ] } ],

"failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

} }

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.

assessmentRuns (p. 27)

Information about the assessment run.

Type: Array of AssessmentRun (p. 132) objects

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

failedItems (p. 27)

Assessment run details that cannot be described. An error code is provided for each failed item.

Type: String to FailedItemDetails (p. 157) object map

Key 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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

(38)

Examples

Examples

Example

This example illustrates one usage of DescribeAssessmentRuns.

Sample Request

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 120

X-Amz-Target: InspectorService.DescribeAssessmentRuns X-Amz-Date: 20160323T213431Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentRunArns": [

"arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/

template/0-4r1V2mAw/run/0-MKkpXXPE"

] }

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 0834f495-f13f-11e5-8a9a-395a36305628 Content-Type: application/x-amz-json-1.1

Content-Length: 1156

Date: Wed, 23 Mar 2016 21:34:32 GMT {

"assessmentRuns": [ {

"arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/

template/0-4r1V2mAw/run/0-MKkpXXPE",

"assessmentTemplateArn": "arn:aws:inspector:us- west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",

"completedAt": 1458680301.4, "createdAt": 1458680170.035, "dataCollected": true, "durationInSeconds": 3600,

"name": "Run 1 for ExampleAssessmentTemplate", "notifications": [],

"rulesPackageArns": [

"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"

],

"startedAt": 1458680170.161, "state": "COMPLETED",

"stateChangedAt": 1458680301.4, "stateChanges": [

{

"state": "CREATED",

"stateChangedAt": 1458680170.035 },

{

(39)

See Also

"state": "START_DATA_COLLECTION_PENDING", "stateChangedAt": 1458680170.065

}, {

"state": "START_DATA_COLLECTION_IN_PROGRESS", "stateChangedAt": 1458680170.096

}, {

"state": "COLLECTING_DATA", "stateChangedAt": 1458680170.161 },

{

"state": "STOP_DATA_COLLECTION_PENDING", "stateChangedAt": 1458680239.883

}, {

"state": "DATA_COLLECTED", "stateChangedAt": 1458680299.847 },

{

"state": "EVALUATING_RULES", "stateChangedAt": 1458680300.099 },

{

"state": "COMPLETED",

"stateChangedAt": 1458680301.4 }

],

"userAttributesForFindings": []

} ],

"failedItems": {}

}

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

(40)

DescribeAssessmentTargets

DescribeAssessmentTargets

Describes the assessment targets that are specified by the ARNs of the assessment targets.

Request Syntax

{ "assessmentTargetArns": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTargetArns (p. 31)

The ARNs that specifies the assessment targets that you want to describe.

Type: Array of strings

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

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

Required: Yes

Response Syntax

{ "assessmentTargets": [ {

"arn": "string", "createdAt": number, "name": "string",

"resourceGroupArn": "string", "updatedAt": number

} ],

"failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

}}

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.

(41)

Errors

assessmentTargets (p. 31)

Information about the assessment targets.

Type: Array of AssessmentTarget (p. 142) objects

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

failedItems (p. 31)

Assessment target details that cannot be described. An error code is provided for each failed item.

Type: String to FailedItemDetails (p. 157) object map

Key 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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DescribeAssessmentTargets.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 88

X-Amz-Target: InspectorService.DescribeAssessmentTargets X-Amz-Date: 20160323T214315Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {

"assessmentTargetArns": [

"arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"

] }

(42)

See Also

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: 407ddf01-f140-11e5-823c-bd257ba1495d Content-Type: application/x-amz-json-1.1

Content-Length: 287

Date: Wed, 23 Mar 2016 21:43:16 GMT {

"assessmentTargets": [ {

"arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq", "createdAt": 1458074191.459,

"name": "ExampleAssessmentTarget",

"resourceGroupArn": "arn:aws:inspector:us- west-2:123456789012:resourcegroup/0-PyGXopAI",

"updatedAt": 1458074191.459 }

],

"failedItems": {}

}

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

(43)

DescribeAssessmentTemplates

DescribeAssessmentTemplates

Describes the assessment templates that are specified by the ARNs of the assessment templates.

Request Syntax

{ "assessmentTemplateArns": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

assessmentTemplateArns (p. 34)

Type: Array of strings

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

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

Required: Yes

Response Syntax

{

"assessmentTemplates": [ {

"arn": "string",

"assessmentRunCount": number, "assessmentTargetArn": "string", "createdAt": number,

"durationInSeconds": number, "lastAssessmentRunArn": "string", "name": "string",

"rulesPackageArns": [ "string" ], "userAttributesForFindings": [ {

"key": "string", "value": "string"

} ] } ],

"failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

}}

(44)

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.

assessmentTemplates (p. 34)

Information about the assessment templates.

Type: Array of AssessmentTemplate (p. 145) objects

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

failedItems (p. 34)

Assessment template details that cannot be described. An error code is provided for each failed item.

Type: String to FailedItemDetails (p. 157) object map

Key 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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DescribeAssessmentTemplates.

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 110

X-Amz-Target: InspectorService.DescribeAssessmentTemplates X-Amz-Date: 20160323T214822Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS

(45)

See Also

{

"assessmentTemplateArns": [

"arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/

template/0-4r1V2mAw"

] }

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: f73a449b-f140-11e5-b473-ed8493878c40 Content-Type: application/x-amz-json-1.1

Content-Length: 422

Date: Wed, 23 Mar 2016 21:48:23 GMT {

"assessmentTemplates": [ {

"arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/

template/0-4r1V2mAw",

"assessmentTargetArn": "arn:aws:inspector:us- west-2:123456789012:target/0-0kFIPusq",

"createdAt": 1458074191.844, "durationInSeconds": 3600,

"name": "ExampleAssessmentTemplate", "rulesPackageArns": [

"arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"

],

"userAttributesForFindings": []

} ],

"failedItems": {}

}

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

(46)

DescribeCrossAccountAccessRole

DescribeCrossAccountAccessRole

Describes the IAM role that enables Amazon Inspector Classic to access your AWS account.

Response Syntax

{ "registeredAt": number, "roleArn": "string", "valid": boolean }

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.

registeredAt (p. 37)

The date when the cross-account access role was registered.

Type: Timestamp roleArn (p. 37)

The ARN that specifies the IAM role that Amazon Inspector Classic uses to access your AWS account.

Type: String

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

valid (p. 37)

A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector Classic to access your AWS account.

Type: Boolean

Errors

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

InternalException Internal server error.

HTTP Status Code: 500

Examples

Example

This example illustrates one usage of DescribeCrossAccountAccessRole.

(47)

See Also

Sample Request

POST / HTTP/1.1

Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity

Content-Length: 2

X-Amz-Target: InspectorService.DescribeCrossAccountAccessRole X-Amz-Date: 20160323T215330Z

User-Agent: aws-cli/1.10.12 Python/2.7.9 Windows/7 botocore/1.4.3 Content-Type: application/x-amz-json-1.1

Authorization: AUTHPARAMS {}

Sample Response

HTTP/1.1 200 OK

x-amzn-RequestId: aef491a7-f141-11e5-bf1e-bbcaffe8bf2e Content-Type: application/x-amz-json-1.1

Content-Length: 99

Date: Wed, 23 Mar 2016 21:53:32 GMT {

"registeredAt": 1458069182.826,

"roleArn": "arn:aws:iam::123456789012:role/inspector", "valid": true

}

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

(48)

DescribeExclusions

DescribeExclusions

Describes the exclusions that are specified by the exclusions' ARNs.

Request Syntax

{ "exclusionArns": [ "string" ], "locale": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

exclusionArns (p. 39)

The list of ARNs that specify the exclusions that you want to describe.

Type: Array of strings

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

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

Required: Yes locale (p. 39)

The locale into which you want to translate the exclusion's title, description, and recommendation.

Type: String

Valid Values: EN_US Required: No

Response Syntax

{ "exclusions": { "string" : { "arn": "string", "attributes": [ {

"key": "string", "value": "string"

} ],

"description": "string", "recommendation": "string", "scopes": [

{

"key": "string",

(49)

Response Elements

"value": "string"

} ],

"title": "string"

} },

"failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

}}

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.

exclusions (p. 39)

Information about the exclusions.

Type: String to Exclusion (p. 153) object map Map Entries: Maximum number of 100 items.

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

failedItems (p. 39)

Exclusion details that cannot be described. An error code is provided for each failed item.

Type: String to FailedItemDetails (p. 157) object map

Key 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. 179).

InternalException Internal server error.

HTTP Status Code: 500 InvalidInputException

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

HTTP Status Code: 400

See Also

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

(50)

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

(51)

DescribeFindings

DescribeFindings

Describes the findings that are specified by the ARNs of the findings.

Request Syntax

{

"findingArns": [ "string" ], "locale": "string"

}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters (p. 177).

The request accepts the following data in JSON format.

findingArns (p. 42)

The ARN that specifies the finding that you want to describe.

Type: Array of strings

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

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

Required: Yes locale (p. 42)

The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.

Type: String

Valid Values: EN_US Required: No

Response Syntax

{ "failedItems": { "string" : {

"failureCode": "string", "retryable": boolean }

},

"findings": [ {

"arn": "string", "assetAttributes": { "agentId": "string", "amiId": "string",

"autoScalingGroup": "string",

(52)

Response Syntax

"hostname": "string",

"ipv4Addresses": [ "string" ], "networkInterfaces": [ {

"ipv6Addresses": [ "string" ], "networkInterfaceId": "string", "privateDnsName": "string", "privateIpAddress": "string", "privateIpAddresses": [ {

"privateDnsName": "string", "privateIpAddress": "string"

} ],

"publicDnsName": "string", "publicIp": "string", "securityGroups": [ {

"groupId": "string", "groupName": "string"

} ],

"subnetId": "string", "vpcId": "string"

} ],

"schemaVersion": number, "tags": [

{

"key": "string", "value": "string"

} ] },

"assetType": "string", "attributes": [ {

"key": "string", "value": "string"

} ],

"confidence": number, "createdAt": number, "description": "string", "id": "string",

"indicatorOfCompromise": boolean, "numericSeverity": number, "recommendation": "string", "schemaVersion": number, "service": "string", "serviceAttributes": {

"assessmentRunArn": "string", "rulesPackageArn": "string", "schemaVersion": number },

"severity": "string", "title": "string", "updatedAt": number, "userAttributes": [ {

"key": "string", "value": "string"

} ] } ]

參考文獻

相關文件

In terms of “Business Model Canvas,” the Value Proposition of Humanistic Buddhism is “to establish the Buddha’s vocation in the world.” Given that a specific target audience

It is useful to augment the description of devices and services with annotations that are not captured in the UPnP Template Language. To a lesser extent, there is value in

* All rights reserved, Tei-Wei Kuo, National Taiwan University, 2005..

The remaining positions contain //the rest of the original array elements //the rest of the original array elements.

Put the current record with the “smaller” key field value in OutputFile if (that current record is the last record in its corresponding input file) :. Declare that input file to be

(1) Western musical terms and names of composers commonly used in the teaching of Music are included in this glossary.. (2) The Western musical terms and names of composers

The thesis uses text analysis to elaborately record calculus related contents that are included in textbooks used in universities and to analyze current high school

The content of the set of `sutra` is limited to the topics of aggregates, sources, dependent arising and so forth, whereas the Vast Texts are not included