Partilhar via


ContainerAppCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

containerAppName
String

Name of the Container App.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

containerAppName is null.

Applies to