Compartilhar via


ManagedNetworkFabricExtensions.GetNetworkDeviceAsync Método

Definição

Obtém os detalhes do recurso dispositivo de rede.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}
  • Operação IdNetworkDevices_Get
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

A ResourceGroupResource instância em que o método será executado.

networkDeviceName
String

Nome do Dispositivo de Rede.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

networkDeviceName é nulo.

Aplica-se a