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 nextToken to get the next page of results.

  • NextToken (string) – If your initial ListVersions operation returns a nextToken, you can include the returned nextToken in subsequent ListVersions operations, 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 ListVersions operation.

    • Versions (list) –

      A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.

      • (string) –

    • NextToken (string) –

      When nextToken is returned, there are more results available. The value of nextToken is 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