Compartilhar via


MongoDBResourcesOperationsExtensions.BeginCreateUpdateMongoDBDatabaseAsync Método

Definição

Criar ou atualizar o banco de dados MongoDB do Azure Cosmos DB

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBDatabaseGetResultsInner> BeginCreateUpdateMongoDBDatabaseAsync (this Microsoft.Azure.Management.CosmosDB.Fluent.IMongoDBResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateUpdateMongoDBDatabaseAsync : Microsoft.Azure.Management.CosmosDB.Fluent.IMongoDBResourcesOperations * string * string * string * Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBDatabaseCreateUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBDatabaseGetResultsInner>
<Extension()>
Public Function BeginCreateUpdateMongoDBDatabaseAsync (operations As IMongoDBResourcesOperations, resourceGroupName As String, accountName As String, databaseName As String, createUpdateMongoDBDatabaseParameters As MongoDBDatabaseCreateUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MongoDBDatabaseGetResultsInner)

Parâmetros

operations
IMongoDBResourcesOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

Nome de um grupo de recursos do Azure.

accountName
String

Nome da conta de banco de dados do Cosmos DB.

databaseName
String

Nome do banco de dados do Cosmos DB.

createUpdateMongoDBDatabaseParameters
MongoDBDatabaseCreateUpdateParameters

Os parâmetros a serem fornecidos para o banco de dados MongoDB atual.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a