다음을 통해 공유


AppPlatformSupportedStackCollection.GetIfExists 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 Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource> GetIfExists (string stackName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppPlatform.AppPlatformSupportedStackResource>
Public Overridable Function GetIfExists (stackName As String, Optional cancellationToken As CancellationToken = Nothing) As 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