Share via


AppPlatformSupportedStackCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}
  • Operation Id: BuildService_GetSupportedStack
  • Default Api Version: 2022-12-01
  • Resource: AppPlatformSupportedStackResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource>> GetIfExistsAsync (string stackName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource>>
Public Overridable Function GetIfExistsAsync (stackName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of AppPlatformSupportedStackResource))

Parameters

stackName
String

The name of the stack resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

stackName is null.

Applies to