Delen via


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