OpenSearchServiceServerless / Client / list_collections
list_collections¶
- OpenSearchServiceServerless.Client.list_collections(**kwargs)¶
- Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections. - Note- Make sure to include an empty request body {} if you don’t include any collection filters in the request. - See also: AWS API Documentation - Request Syntax- response = client.list_collections( collectionFilters={ 'name': 'string', 'status': 'CREATING'|'DELETING'|'ACTIVE'|'FAILED' }, nextToken='string', maxResults=123 ) - Parameters:
- collectionFilters (dict) – - A list of filter names and values that you can use for requests. - name (string) – - The name of the collection. 
- status (string) – - The current status of the collection. 
 
- nextToken (string) – If your initial - ListCollectionsoperation returns a- nextToken, you can include the returned- nextTokenin subsequent- ListCollectionsoperations, which returns results in the next page.
- maxResults (integer) – The maximum number of results to return. Default is 20. You can use - nextTokento get the next page of results.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'collectionSummaries': [ { 'id': 'string', 'name': 'string', 'status': 'CREATING'|'DELETING'|'ACTIVE'|'FAILED', 'arn': 'string' }, ], 'nextToken': 'string' } - Response Structure- (dict) – - collectionSummaries (list) – - Details about each collection. - (dict) – - Details about each OpenSearch Serverless collection. - id (string) – - The unique identifier of the collection. 
- name (string) – - The name of the collection. 
- status (string) – - The current status of the collection. 
- arn (string) – - The Amazon Resource Name (ARN) of the collection. 
 
 
- nextToken (string) – - When - nextTokenis returned, there are more results available. The value of- nextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
 
 
 - Exceptions