Share via


HDInsightClusterPoolCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a cluster pool.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}
  • Operation Id: ClusterPools_CreateOrUpdate
  • Default Api Version: 2024-05-01-preview
  • Resource: HDInsightClusterPoolResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string clusterPoolName, Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, clusterPoolName As String, data As HDInsightClusterPoolData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HDInsightClusterPoolResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

clusterPoolName
String

The name of the cluster pool.

data
HDInsightClusterPoolData

The Cluster Pool to create.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

clusterPoolName is an empty string, and was expected to be non-empty.

clusterPoolName or data is null.

Applies to