EventHubsClusterCollection.CreateOrUpdateAsync Method

Definition

Creates or updates an instance of an Event Hubs Cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}
  • Operation Id: Clusters_CreateOrUpdate
  • Default Api Version: 2024-01-01
  • Resource: EventHubsClusterResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EventHubs.EventHubsClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EventHubs.EventHubsClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, clusterName As String, data As EventHubsClusterData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of EventHubsClusterResource))

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.

clusterName
String

The name of the Event Hubs Cluster.

data
EventHubsClusterData

Parameters for creating a eventhub cluster resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

clusterName or data is null.

Applies to