v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1444270263.9 KB

Gets event data results of a query. You must specify the <code>QueryID</code> value returned by the <code>StartQuery</code> operation, and an ARN for <code>EventDataStore</code>.

post/#X-Amz-Target=com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetQueryResults

Query parameters

NextTokenstring

Pagination token

Headers

X-Amz-Target'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetQueryResults' required

Request body

EventDataStorestring

The ARN (or ID suffix of the ARN) of the event data store against which the query was run.EventDataStore is no longer required by GetQueryResultsRequest

QueryIdstring required

The ID of the query for which you want to get results.

NextTokenstring

A token you can use to get the next page of query results.

MaxQueryResultsinteger

The maximum number of query results to display on a single page.

Response

Success

QueryStatus'QUEUED' | 'RUNNING' | 'FINISHED' | 'FAILED' | 'CANCELLED' | 'TIMED_OUT'

The status of the query. Values include <code>QUEUED</code>, <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code>.

NextTokenstring

A token you can use to get the next page of query results.

ErrorMessagestring

The error message returned if a query failed.