IotOperationsRegistryEndpointCollection.CreateOrUpdateAsync Method

Definition

Create a RegistryEndpointResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/registryEndpoints/{registryEndpointName}
  • Operation Id: RegistryEndpointResource_CreateOrUpdate
  • Default Api Version: 2025-07-01-preview
  • Resource: IotOperationsRegistryEndpointResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string registryEndpointName, Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsRegistryEndpointResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, registryEndpointName As String, data As IotOperationsRegistryEndpointData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of IotOperationsRegistryEndpointResource))

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.

registryEndpointName
String

Name of RegistryEndpoint resource.

data
IotOperationsRegistryEndpointData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

registryEndpointName or data is null.

Applies to