v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1460298233.0 KB

Provides a list of available query execution IDs for the queries in the specified workgroup. If a workgroup is not specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the workgroup in which the queries ran.

For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

post/#X-Amz-Target=AmazonAthena.ListQueryExecutions

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AmazonAthena.ListQueryExecutions' required

Request body

NextTokenstring

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.

MaxResultsinteger

The maximum number of query executions to return in this request.

WorkGroupstring

The name of the workgroup from which queries are being returned. If a workgroup is not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.

Response

Success

QueryExecutionIdsQueryExecutionId[]

The unique IDs of each query execution as an array of strings.

NextTokenstring

A token to be used by the next request if this request is truncated.