Share via


DeviceUpdateInstanceCollection.CreateOrUpdate Method

Definition

Creates or updates instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}
  • Operation Id: Instances_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string instanceName, Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, instanceName As String, data As DeviceUpdateInstanceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DeviceUpdateInstanceResource)

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.

instanceName
String

Instance name.

data
DeviceUpdateInstanceData

Instance details.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

instanceName or data is null.

Applies to