你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AppContainersExtensions.GetContainerApps 方法

定义

重载

GetContainerApps(ResourceGroupResource)

获取 ResourceGroupResource 中 ContainerAppResources 的集合。

GetContainerApps(SubscriptionResource, CancellationToken)

获取给定订阅中的容器应用。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps
  • 操作IdContainerApps_ListBySubscription

GetContainerApps(ResourceGroupResource)

获取 ResourceGroupResource 中 ContainerAppResources 的集合。

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

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

返回

一个 对象,表示 ContainerAppResources 集合及其在 ContainerAppResource 上的操作。

适用于

GetContainerApps(SubscriptionResource, CancellationToken)

获取给定订阅中的容器应用。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps
  • 操作IdContainerApps_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)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的集合 ContainerAppResource ,可能需要多个服务请求才能循环访问。

适用于