HealthcareApisIotConnectorCollection.CreateOrUpdateAsync Method

Definition

Creates or updates an IoT Connector resource with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}
  • Operation Id: IotConnectors_CreateOrUpdate
  • Default Api Version: 2024-03-31
  • Resource: HealthcareApisIotConnectorResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string iotConnectorName, Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.HealthcareApisIotConnectorResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, iotConnectorName As String, data As HealthcareApisIotConnectorData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HealthcareApisIotConnectorResource))

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.

iotConnectorName
String

The name of IoT Connector resource.

data
HealthcareApisIotConnectorData

The parameters for creating or updating an IoT Connectors resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

iotConnectorName or data is null.

Applies to