MongoDBResourcesOperations.ListMongoDBDatabases(String, String, CancellationToken) Method

Definition

Lists the MongoDB databases under an existing Azure Cosmos DB database account.

public virtual Azure.Pageable<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults> ListMongoDBDatabases (string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListMongoDBDatabases : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults>
override this.ListMongoDBDatabases : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDB.Models.MongoDBDatabaseGetResults>
Public Overridable Function ListMongoDBDatabases (resourceGroupName As String, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<MongoDBDatabaseGetResults>

Exceptions

System.ArgumentNullException

resourceGroupName or accountName is null.

Applies to