Share via


ScalingPlanCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
public virtual Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource> GetIfExists (string scalingPlanName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.ScalingPlanResource>
Public Overridable Function GetIfExists (scalingPlanName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ScalingPlanResource)

Parameters

scalingPlanName
String

The name of the scaling plan.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scalingPlanName is null.

Applies to