Share via


FleetUpdateStrategyCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}
  • Operation Id: FleetUpdateStrategies_Get
  • Default Api Version: 2024-05-02-preview
  • Resource: FleetUpdateStrategyResource
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.FleetUpdateStrategyResource> GetIfExists (string updateStrategyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.FleetUpdateStrategyResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceFleet.FleetUpdateStrategyResource>
Public Overridable Function GetIfExists (updateStrategyName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of FleetUpdateStrategyResource)

Parameters

updateStrategyName
String

The name of the UpdateStrategy resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

updateStrategyName is null.

Applies to