MongoDBAtlasProjectResource.GetMongoDBAtlasCluster Method

Definition

Get a Cluster.

public virtual Azure.Response<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasClusterResource> GetMongoDBAtlasCluster(string clusterName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMongoDBAtlasCluster : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasClusterResource>
override this.GetMongoDBAtlasCluster : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasClusterResource>
Public Overridable Function GetMongoDBAtlasCluster (clusterName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MongoDBAtlasClusterResource)

Parameters

clusterName
String

Name of the MongoDB Atlas Cluster resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

clusterName is null.

clusterName is an empty string, and was expected to be non-empty.

Applies to