AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ListCollectionsAsync.

Namespace: Amazon.OpenSearchServerless
Assembly: AWSSDK.OpenSearchServerless.dll
Version: 3.x.y.z

Syntax

C#
public abstract ListCollectionsResponse ListCollections(
         ListCollectionsRequest request
)

Parameters

request
Type: Amazon.OpenSearchServerless.Model.ListCollectionsRequest

Container for the necessary parameters to execute the ListCollections service method.

Return Value


The response from the ListCollections service method, as returned by OpenSearchServerless.

Exceptions

ExceptionCondition
InternalServerException Thrown when an error internal to the service occurs while processing a request.
ValidationException Thrown when the HTTP request contains invalid input or is missing required input.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also