Partilhar via


VirtualHubResource.GetBgpConnectionAsync(String, CancellationToken) Método

Definição

Recupera os detalhes de uma Conexão Bgp do Hub Virtual.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}
  • Operação IdVirtualHubBgpConnection_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.BgpConnectionResource>> GetBgpConnectionAsync (string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBgpConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.BgpConnectionResource>>
override this.GetBgpConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.BgpConnectionResource>>
Public Overridable Function GetBgpConnectionAsync (connectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BgpConnectionResource))

Parâmetros

connectionName
String

o nome da conexão.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

connectionName é nulo.

Aplica-se a