AppContainersExtensions.GetContainerApps Method

Definition

Overloads

GetContainerApps(ResourceGroupResource)

Gets a collection of ContainerAppResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerApps() instead.

GetContainerApps(SubscriptionResource, CancellationToken)

Get the Container Apps in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps
  • Operation Id: ContainerApps_ListBySubscription

GetContainerApps(ResourceGroupResource)

Source:
AppContainersExtensions.cs

Gets a collection of ContainerAppResources in the ResourceGroupResource. MockingTo mock this method, please mock GetContainerApps() instead.

public static Azure.ResourceManager.AppContainers.ContainerAppCollection GetContainerApps (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetContainerApps : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.AppContainers.ContainerAppCollection
<Extension()>
Public Function GetContainerApps (resourceGroupResource As ResourceGroupResource) As ContainerAppCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ContainerAppResources and their operations over a ContainerAppResource.

Exceptions

resourceGroupResource is null.

Applies to

GetContainerApps(SubscriptionResource, CancellationToken)

Source:
AppContainersExtensions.cs

Get the Container Apps in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps
  • Operation Id: ContainerApps_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.AppContainers.ContainerAppResource> GetContainerApps (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerApps : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppContainers.ContainerAppResource>
<Extension()>
Public Function GetContainerApps (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ContainerAppResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ContainerAppResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to