Sdílet prostřednictvím


MobileNetworkPacketCaptureCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string packetCaptureName, Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileNetworkPacketCaptureResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, packetCaptureName As String, data As MobileNetworkPacketCaptureData, Optional cancellationToken As CancellationToken = Nothing) As 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