Compartilhar via


MobileNetworkPacketCaptureCollection.CreateOrUpdateAsync Método

Definição

Cria ou atualiza uma captura de pacote.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCaptures/{packetCaptureName}
  • Operação IdPacketCaptures_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string packetCaptureName, Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, packetCaptureName As String, data As MobileNetworkPacketCaptureData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MobileNetworkPacketCaptureResource))

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.

packetCaptureName
String

O nome da sessão de captura de pacotes.

data
MobileNetworkPacketCaptureData

Parâmetros fornecidos para a operação de captura de pacotes de criação ou atualização.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

packetCaptureName ou data é nulo.

Aplica-se a