次の方法で共有


IotFirmwareCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string firmwareId, Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.IotFirmwareDefense.IotFirmwareData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.IotFirmwareDefense.IotFirmwareResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, firmwareId As String, data As IotFirmwareData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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