OpenSearchService / Client / list_versions
list_versions#
- OpenSearchService.Client.list_versions(**kwargs)#
- Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports. - See also: AWS API Documentation - Request Syntax- response = client.list_versions( MaxResults=123, NextToken='string' ) - Parameters:
- MaxResults (integer) – An optional parameter that specifies the maximum number of results to return. You can use - nextTokento get the next page of results.
- NextToken (string) – If your initial - ListVersionsoperation returns a- nextToken, you can include the returned- nextTokenin subsequent- ListVersionsoperations, which returns results in the next page.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'Versions': [ 'string', ], 'NextToken': 'string' } - Response Structure- (dict) – - Container for the parameters for response received from the - ListVersionsoperation.- Versions (list) – - A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports. - (string) – 
 
- 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- OpenSearchService.Client.exceptions.BaseException
- OpenSearchService.Client.exceptions.InternalException
- OpenSearchService.Client.exceptions.ResourceNotFoundException
- OpenSearchService.Client.exceptions.ValidationException