Delen via


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