Compartilhar via


HybridContainerServiceExtensions.GetHybridContainerServiceVirtualNetworkAsync Método

Definição

Obtém a rede virtual Híbrida do AKS

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridContainerService/virtualNetworks/{virtualNetworksName}
  • IdvirtualNetworks_Retrieve de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridContainerService.HybridContainerServiceVirtualNetworkResource>> GetHybridContainerServiceVirtualNetworkAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string virtualNetworksName, System.Threading.CancellationToken cancellationToken = default);
static member GetHybridContainerServiceVirtualNetworkAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridContainerService.HybridContainerServiceVirtualNetworkResource>>
<Extension()>
Public Function GetHybridContainerServiceVirtualNetworkAsync (resourceGroupResource As ResourceGroupResource, virtualNetworksName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HybridContainerServiceVirtualNetworkResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

virtualNetworksName
String

Parâmetro para o nome da rede virtual.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

virtualNetworksName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

virtualNetworksName é nulo.

Aplica-se a