Partilhar via


NetworkDeviceResource.RebootAsync Método

Definição

Reinicialize o Dispositivo de Rede.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/reboot
  • IdNetworkDevices_Reboot de operação
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.Models.StateUpdateCommonPostActionResult>> RebootAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.ManagedNetworkFabric.Models.NetworkDeviceRebootContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RebootAsync : Azure.WaitUntil * Azure.ResourceManager.ManagedNetworkFabric.Models.NetworkDeviceRebootContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.Models.StateUpdateCommonPostActionResult>>
override this.RebootAsync : Azure.WaitUntil * Azure.ResourceManager.ManagedNetworkFabric.Models.NetworkDeviceRebootContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.Models.StateUpdateCommonPostActionResult>>
Public Overridable Function RebootAsync (waitUntil As WaitUntil, content As NetworkDeviceRebootContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StateUpdateCommonPostActionResult))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

content
NetworkDeviceRebootContent

Conteúdo da solicitação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a