Share via


IotOperationsDataflowCollection.CreateOrUpdateAsync Method

Definition

Create a DataflowResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}
  • Operation Id: DataflowResource_CreateOrUpdate
  • Default Api Version: 2024-11-01
  • Resource: IotOperationsDataflowResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsDataflowResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string dataflowName, Azure.ResourceManager.IotOperations.IotOperationsDataflowData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotOperations.IotOperationsDataflowData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsDataflowResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotOperations.IotOperationsDataflowData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotOperations.IotOperationsDataflowResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, dataflowName As String, data As IotOperationsDataflowData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of IotOperationsDataflowResource))

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.

dataflowName
String

Name of Instance dataflowProfile dataflow resource.

data
IotOperationsDataflowData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataflowName or data is null.

Applies to