Compartilhar via


ContainersExtensions.GetManagedEnvironment Método

Definição

Obtenha as propriedades de um Ambiente Gerenciado usado para hospedar aplicativos de contêiner. Caminho da Solicitação: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} Operation Id: ManagedEnvironments_Get

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

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

environmentName
String

Nome do Ambiente.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

environmentName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

environmentName é nulo.

Aplica-se a