Partager via


MongoDBCollectionThroughputSettingResource.MongoDBContainerRedistributeThroughputAsync Méthode

Définition

Redistribuer le débit pour un conteneur MongoDB Azure Cosmos DB

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/redistributeThroughput
  • IdMongoDBResources_MongoDBContainerRedistributeThroughput d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.Models.PhysicalPartitionThroughputInfoResult>> MongoDBContainerRedistributeThroughputAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.CosmosDB.Models.RedistributeThroughputParameters redistributeThroughputParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member MongoDBContainerRedistributeThroughputAsync : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.RedistributeThroughputParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.Models.PhysicalPartitionThroughputInfoResult>>
override this.MongoDBContainerRedistributeThroughputAsync : 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 MongoDBContainerRedistributeThroughputAsync (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 pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée 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 de Long-Running Azure.Core.

redistributeThroughputParameters
RedistributeThroughputParameters

Paramètres à fournir pour redistribuer le débit pour le conteneur MongoDB actuel.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

redistributeThroughputParameters a la valeur null.

S’applique à