次の方法で共有


DeviceRegistrySchemaRegistryCollection.CreateOrUpdate Method

Definition

Create a SchemaRegistry

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}
  • Operation Id: SchemaRegistry_CreateOrReplace
  • Default Api Version: 2024-09-01-preview
  • Resource: DeviceRegistrySchemaRegistryResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string schemaRegistryName, Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistrySchemaRegistryResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, schemaRegistryName As String, data As DeviceRegistrySchemaRegistryData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DeviceRegistrySchemaRegistryResource)

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.

schemaRegistryName
String

Schema registry name parameter.

data
DeviceRegistrySchemaRegistryData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

schemaRegistryName or data is null.

Applies to