Share via


PacketCoreControlPlaneResource.CollectDiagnosticsPackageAsync Method

Definition

Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to a storage account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/collectDiagnosticsPackage
  • Operation Id: PacketCoreControlPlanes_CollectDiagnosticsPackage
  • Default Api Version: 2024-02-01
  • Resource: PacketCoreControlPlaneResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.Models.AsyncOperationStatus>> CollectDiagnosticsPackageAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.MobileNetwork.Models.PacketCoreControlPlaneCollectDiagnosticsPackage packetCoreControlPlaneCollectDiagnosticsPackage, System.Threading.CancellationToken cancellationToken = default);
abstract member CollectDiagnosticsPackageAsync : Azure.WaitUntil * Azure.ResourceManager.MobileNetwork.Models.PacketCoreControlPlaneCollectDiagnosticsPackage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.Models.AsyncOperationStatus>>
override this.CollectDiagnosticsPackageAsync : Azure.WaitUntil * Azure.ResourceManager.MobileNetwork.Models.PacketCoreControlPlaneCollectDiagnosticsPackage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.Models.AsyncOperationStatus>>
Public Overridable Function CollectDiagnosticsPackageAsync (waitUntil As WaitUntil, packetCoreControlPlaneCollectDiagnosticsPackage As PacketCoreControlPlaneCollectDiagnosticsPackage, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AsyncOperationStatus))

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.

packetCoreControlPlaneCollectDiagnosticsPackage
PacketCoreControlPlaneCollectDiagnosticsPackage

Parameters supplied to the packet core control plane collect diagnostics package operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

packetCoreControlPlaneCollectDiagnosticsPackage is null.

Applies to