共用方式為


ContainerServiceFleetResource.UpdateAsync Method

Definition

Patches a fleet resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}
  • Operation Id: Fleets_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceFleetResource>> UpdateAsync (Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetPatch patch, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetPatch * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceFleetResource>>
override this.UpdateAsync : Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetPatch * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceFleetResource>>
Public Overridable Function UpdateAsync (patch As ContainerServiceFleetPatch, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerServiceFleetResource))

Parameters

patch
ContainerServiceFleetPatch

The properties of a Fleet to update.

ifMatch
String

Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to