Partilhar via


HciClusterUpdateRunCollection.CreateOrUpdateAsync Method

Definition

Put Update runs for a specified update

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}/updateRuns/{updateRunName}
  • Operation Id: UpdateRuns_Put
  • Default Api Version: 2024-04-01
  • Resource: HciClusterUpdateRunResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.HciClusterUpdateRunResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string updateRunName, Azure.ResourceManager.Hci.HciClusterUpdateRunData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Hci.HciClusterUpdateRunData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.HciClusterUpdateRunResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Hci.HciClusterUpdateRunData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.HciClusterUpdateRunResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, updateRunName As String, data As HciClusterUpdateRunData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HciClusterUpdateRunResource))

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.

updateRunName
String

The name of the Update Run.

data
HciClusterUpdateRunData

Properties of the updateRuns object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

updateRunName or data is null.

Applies to