v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1446252177.2 KB

Returns a list of collection groups. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and managing Amazon OpenSearch Serverless collections</a>.

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

Headers

X-Amz-Target'OpenSearchServerless.ListCollectionGroups' required

Request body

nextTokenstring

If your initial <code>ListCollectionGroups</code> operation returns a <code>nextToken</code>, you can include the returned <code>nextToken</code> in subsequent <code>ListCollectionGroups</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.