EventHubsSchemaGroupCollection.CreateOrUpdateAsync Method

Definition

Creates or Updates an EventHub schema group.

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

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.

schemaGroupName
String

The Schema Group name.

data
EventHubsSchemaGroupData

Parameters supplied to create an Event Hub resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

schemaGroupName or data is null.

Applies to