Share via


EventHubsClusterCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string clusterName, Azure.ResourceManager.EventHubs.EventHubsClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EventHubs.EventHubsClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EventHubs.EventHubsClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EventHubs.EventHubsClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, clusterName As String, data As EventHubsClusterData, Optional cancellationToken As CancellationToken = Nothing) As 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