Skip to content

/AWS1/CL_OSS=>LISTCOLLECTIONS()

About ListCollections

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.

Method Signature

IMPORTING

Optional arguments:

IO_COLLECTIONFILTERS TYPE REF TO /AWS1/CL_OSSCOLLECTIONFILTERS /AWS1/CL_OSSCOLLECTIONFILTERS

A list of filter names and values that you can use for requests.

IV_NEXTTOKEN TYPE /AWS1/OSSSTRING /AWS1/OSSSTRING

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

IV_MAXRESULTS TYPE /AWS1/OSSINTEGER /AWS1/OSSINTEGER

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_OSSLISTCOLLSRESPONSE /AWS1/CL_OSSLISTCOLLSRESPONSE