Compartilhar via


ClustersOperationsExtensions.ResizeAsync Método

Definição

Sobrecargas

ResizeAsync(IClustersOperations, String, String, ClusterResizeParameters, CancellationToken)

Redimensiona o cluster HDInsight especificado para o tamanho especificado.

ResizeAsync(IClustersOperations, String, String, Int32, CancellationToken)

Redimensiona o cluster HDInsight especificado.

ResizeAsync(IClustersOperations, String, String, ClusterResizeParameters, CancellationToken)

Redimensiona o cluster HDInsight especificado para o tamanho especificado.

public static System.Threading.Tasks.Task ResizeAsync (this Microsoft.Azure.Management.HDInsight.IClustersOperations operations, string resourceGroupName, string clusterName, Microsoft.Azure.Management.HDInsight.Models.ClusterResizeParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member ResizeAsync : Microsoft.Azure.Management.HDInsight.IClustersOperations * string * string * Microsoft.Azure.Management.HDInsight.Models.ClusterResizeParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function ResizeAsync (operations As IClustersOperations, resourceGroupName As String, clusterName As String, parameters As ClusterResizeParameters, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

operations
IClustersOperations

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

resourceGroupName
String

O nome do grupo de recursos.

clusterName
String

O nome do cluster.

parameters
ClusterResizeParameters

Os parâmetros para a operação de redimensionamento.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a

ResizeAsync(IClustersOperations, String, String, Int32, CancellationToken)

Redimensiona o cluster HDInsight especificado.

public static System.Threading.Tasks.Task ResizeAsync (this Microsoft.Azure.Management.HDInsight.IClustersOperations operations, string resourceGroupName, string clusterName, int targetInstanceCount, System.Threading.CancellationToken cancellationToken = default);
static member ResizeAsync : Microsoft.Azure.Management.HDInsight.IClustersOperations * string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function ResizeAsync (operations As IClustersOperations, resourceGroupName As String, clusterName As String, targetInstanceCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

operations
IClustersOperations

Referência ao Microsoft.Azure.Management.HDInsight.IClusterOperations.

resourceGroupName
String

Obrigatórios. O nome do grupo de recursos.

clusterName
String

Obrigatórios. O nome do cluster.

targetInstanceCount
Int32

Obrigatórios. A contagem de instâncias de destino.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

A resposta da operação de execução prolongada do cluster.

Aplica-se a