Share via


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