Compartir a través de


ManagedNetworkFabricExtensions.GetNetworkDeviceAsync Método

Definición

Obtiene los detalles del recurso de dispositivo de red.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}
  • IdNetworkDevices_Get de operaciones
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>> GetNetworkDeviceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkDeviceName, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkDeviceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource>>
<Extension()>
Public Function GetNetworkDeviceAsync (resourceGroupResource As ResourceGroupResource, networkDeviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkDeviceResource))

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

networkDeviceName
String

Nombre del dispositivo de red.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

networkDeviceName es una cadena vacía y se esperaba que no estuviera vacía.

networkDeviceName es null.

Se aplica a