FirmwareCollection.CreateOrUpdateAsync Method

Definition

The operation to create a firmware.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}
  • Operation Id: Firmware_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.FirmwareResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string firmwareName, Azure.ResourceManager.IotFirmwareDefense.FirmwareData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.FirmwareData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.FirmwareResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.FirmwareData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.FirmwareResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, firmwareName As String, data As FirmwareData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of FirmwareResource))

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.

firmwareName
String

The id of the firmware.

data
FirmwareData

Details of the firmware being created or updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

firmwareName or data is null.

Applies to