Wählen Sie Ihre Cookie-Einstellungen aus

Wir verwenden essentielle Cookies und ähnliche Tools, die für die Bereitstellung unserer Website und Services erforderlich sind. Wir verwenden Performance-Cookies, um anonyme Statistiken zu sammeln, damit wir verstehen können, wie Kunden unsere Website nutzen, und Verbesserungen vornehmen können. Essentielle Cookies können nicht deaktiviert werden, aber Sie können auf „Anpassen“ oder „Ablehnen“ klicken, um Performance-Cookies abzulehnen.

Wenn Sie damit einverstanden sind, verwenden AWS und zugelassene Drittanbieter auch Cookies, um nützliche Features der Website bereitzustellen, Ihre Präferenzen zu speichern und relevante Inhalte, einschließlich relevanter Werbung, anzuzeigen. Um alle nicht notwendigen Cookies zu akzeptieren oder abzulehnen, klicken Sie auf „Akzeptieren“ oder „Ablehnen“. Um detailliertere Entscheidungen zu treffen, klicken Sie auf „Anpassen“.

PreviewAgents

Fokusmodus
PreviewAgents - Amazon Inspector Classic
Diese Seite wurde nicht in Ihre Sprache übersetzt. Übersetzung anfragen

Previews the agents installed on the EC2 instances that are part of the specified assessment target.

Request Syntax

{ "maxResults": number, "nextToken": "string", "previewAgentsArn": "string" }

Request Parameters

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

The request accepts the following data in JSON format.

maxResults

You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

Type: Integer

Required: No

nextToken

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

Type: String

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

Required: No

previewAgentsArn

The ARN of the assessment target whose agents you want to preview.

Type: String

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

Required: Yes

Response Syntax

{ "agentPreviews": [ { "agentHealth": "string", "agentId": "string", "agentVersion": "string", "autoScalingGroup": "string", "hostname": "string", "ipv4Address": "string", "kernelVersion": "string", "operatingSystem": "string" } ], "nextToken": "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.

agentPreviews

The resulting list of agents.

Type: Array of AgentPreview objects

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

nextToken

When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

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.

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

NoSuchEntityException

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

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of PreviewAgents.

Sample Request

POST / HTTP/1.1 Host: inspector.us-west-2.amazonaws.com Accept-Encoding: identity Content-Length: 82 X-Amz-Target: InspectorService.PreviewAgents X-Amz-Date: 20160329T224634Z 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 { "previewAgentsArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq" }

Sample Response

HTTP/1.1 200 OK x-amzn-RequestId: 176c8915-f600-11e5-ac8a-bb6015f4022c Content-Type: application/x-amz-json-1.1 Content-Length: 44 Date: Tue, 29 Mar 2016 22:46:36 GMT { "agentPreviews": [ { "hostname": "example", "agentId": "i-49113b93", "autoScalingGroup": "example", "agentHealth": HEALTHY, "agentVersion": "exampleversion", "operatingSystem": "exampleOS", "kernelVersion": "examplekernelversion", "ipv4Address": "example" } ] }

See Also

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

DatenschutzNutzungsbedingungen für die WebsiteCookie-Einstellungen
© 2025, Amazon Web Services, Inc. oder Tochtergesellschaften. Alle Rechte vorbehalten.