Compartir a través de


VirtualNetworkResource.GetVirtualNetworkPeeringAsync Método

Definición

Obtiene el emparejamiento de red virtual especificado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}
  • IdVirtualNetworkPeerings_Get de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource>> GetVirtualNetworkPeeringAsync (string virtualNetworkPeeringName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualNetworkPeeringAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource>>
override this.GetVirtualNetworkPeeringAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkPeeringResource>>
Public Overridable Function GetVirtualNetworkPeeringAsync (virtualNetworkPeeringName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualNetworkPeeringResource))

Parámetros

virtualNetworkPeeringName
String

Nombre del emparejamiento de red virtual.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

virtualNetworkPeeringName es una cadena vacía y se espera que no esté vacía.

virtualNetworkPeeringName es null.

Se aplica a