Compartilhar via


AvsPrivateCloudResource.GetWorkloadNetworkGatewayAsync Método

Definição

Obtenha um gateway por ID em uma rede de carga de trabalho de nuvem privada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}
  • IdWorkloadNetworks_GetGateway de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkGatewayResource>> GetWorkloadNetworkGatewayAsync (string gatewayId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkloadNetworkGatewayAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkGatewayResource>>
override this.GetWorkloadNetworkGatewayAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkGatewayResource>>
Public Overridable Function GetWorkloadNetworkGatewayAsync (gatewayId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WorkloadNetworkGatewayResource))

Parâmetros

gatewayId
String

Identificador do Gateway NSX. Geralmente o mesmo que o nome de exibição do Gateway.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

gatewayId é nulo.

Aplica-se a