다음을 통해 공유


MobileNetworkPacketCaptureCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a packet capture.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCaptures/{packetCaptureName}
  • Operation Id: PacketCaptures_CreateOrUpdate
  • Default Api Version: 2024-02-01
  • Resource: MobileNetworkPacketCaptureResource
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))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

packetCaptureName
String

The name of the packet capture session.

data
MobileNetworkPacketCaptureData

Parameters supplied to the create or update packet capture operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

packetCaptureName is an empty string, and was expected to be non-empty.

packetCaptureName or data is null.

Applies to