Share via


ContainerAppAuthConfigCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}
  • Operation Id: ContainerAppsAuthConfigs_Get
  • Default Api Version: 2024-03-01
  • Resource: ContainerAppAuthConfigResource
public virtual Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppAuthConfigResource> GetIfExists (string authConfigName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppAuthConfigResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppAuthConfigResource>
Public Overridable Function GetIfExists (authConfigName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ContainerAppAuthConfigResource)

Parameters

authConfigName
String

Name of the Container App AuthConfig.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

authConfigName is null.

Applies to