Partilhar via


IotFirmwareCollection.CreateOrUpdate Method

Definition

The operation to create a firmware.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}
  • Operation Id: Firmwares_Create
  • Default Api Version: 2024-01-10
  • Resource: IotFirmwareResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string firmwareId, Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, firmwareId As String, data As IotFirmwareData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of IotFirmwareResource)

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.

firmwareId
String

The id of the firmware.

data
IotFirmwareData

Details of the firmware being created or updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

firmwareId or data is null.

Applies to