MongoDBResourcesOperations.GetMongoDBDatabaseAsync(String, String, String, CancellationToken) Method

Definition

Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults>> GetMongoDBDatabaseAsync (string resourceGroupName, string accountName, string databaseName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMongoDBDatabaseAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults>>
override this.GetMongoDBDatabaseAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults>>
Public Overridable Function GetMongoDBDatabaseAsync (resourceGroupName As String, accountName As String, databaseName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MongoDBDatabaseGetResults))

Parameters

resourceGroupName
System.String

The name of the resource group. The name is case insensitive.

accountName
System.String

Cosmos DB database account name.

databaseName
System.String

Cosmos DB database name.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<MongoDBDatabaseGetResults>>

Applies to