Partilhar via


VpnConnectionResource.StartPacketCaptureAsync Método

Definição

Inicia a captura de pacotes na conexão Vpn no grupo de recursos especificado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{vpnConnectionName}/startpacketcapture
  • Operação IdVpnConnections_StartPacketCapture
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>> StartPacketCaptureAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VpnConnectionPacketCaptureStartContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartPacketCaptureAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnConnectionPacketCaptureStartContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>>
override this.StartPacketCaptureAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.VpnConnectionPacketCaptureStartContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<string>>
Public Overridable Function StartPacketCaptureAsync (waitUntil As WaitUntil, Optional content As VpnConnectionPacketCaptureStartContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of String))

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 execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

content
VpnConnectionPacketCaptureStartContent

Parâmetros de captura de pacote de conexão VPN fornecidos para iniciar a captura de pacotes na conexão de gateway.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a