Partager via


MongoDBDatabaseThroughputSettingResource.MongoDBDatabaseRedistributeThroughputAsync Méthode

Définition

Redistribuer le débit pour une base de données MongoDB Azure Cosmos DB

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/redistributeThroughput
  • IdMongoDBResources_MongoDBDatabaseRedistributeThroughput d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.Models.PhysicalPartitionThroughputInfoResult>> MongoDBDatabaseRedistributeThroughputAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.CosmosDB.Models.RedistributeThroughputParameters redistributeThroughputParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member MongoDBDatabaseRedistributeThroughputAsync : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.RedistributeThroughputParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.Models.PhysicalPartitionThroughputInfoResult>>
override this.MongoDBDatabaseRedistributeThroughputAsync : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.RedistributeThroughputParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.Models.PhysicalPartitionThroughputInfoResult>>
Public Overridable Function MongoDBDatabaseRedistributeThroughputAsync (waitUntil As WaitUntil, redistributeThroughputParameters As RedistributeThroughputParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PhysicalPartitionThroughputInfoResult))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.

redistributeThroughputParameters
RedistributeThroughputParameters

Paramètres à fournir pour redistribuer le débit de la base de données MongoDB actuelle.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

redistributeThroughputParameters a la valeur null.

S’applique à