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

ContainersExtensions.GetContainerAppAsync 方法

定义

获取容器应用的属性。 请求路径:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName} 操作 ID:ContainerApps_Get

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.ContainerAppResource>> GetContainerAppAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string containerAppName, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerAppAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.ContainerAppResource>>
<Extension()>
Public Function GetContainerAppAsync (resourceGroupResource As ResourceGroupResource, containerAppName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerAppResource))

参数

resourceGroupResource
ResourceGroupResource

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

containerAppName
String

容器应用的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

containerAppName 是一个空字符串,预期为非空。

containerAppName 为 null。

适用于