共用方式為


IClustersOperations.BeginResizingAsync Method

Definition

Begins resizing the specified HDInsight cluster to the specified size.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginResizingAsync (string resourceGroupName, string clusterName, int targetInstanceCount, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginResizingAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function BeginResizingAsync (resourceGroupName As String, clusterName As String, targetInstanceCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
String

The name of the resource group.

clusterName
String

The name of the cluster.

targetInstanceCount
Int32

The size to which to resize the cluster.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to