v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Make sure to include an empty request body {} if you don't include any collection filters in the request.

post/#X-Amz-Target=OpenSearchServerless.ListCollections

Headers

X-Amz-Target'OpenSearchServerless.ListCollections' required

Request body

nextTokenstring

If your initial <code>ListCollections</code> operation returns a <code>nextToken</code>, you can include the returned <code>nextToken</code> in subsequent <code>ListCollections</code> operations, which returns results in the next page.

maxResultsinteger

The maximum number of results to return. Default is 20. You can use <code>nextToken</code> to get the next page of results.

Response

Success

nextTokenstring

When <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.