ArmNetworkModelFactory.PacketCaptureContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.Models.PacketCaptureContent PacketCaptureContent(string target, Azure.ResourceManager.Network.Models.PacketCaptureMachineScope scope, Azure.ResourceManager.Network.Models.PacketCaptureTargetType? targetType, long? bytesToCapturePerPacket, long? totalBytesPerSession, int? timeLimitInSeconds, Azure.ResourceManager.Network.Models.PacketCaptureStorageLocation storageLocation, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.PacketCaptureFilter> filters, bool? continuousCapture, Azure.ResourceManager.Network.Models.PacketCaptureSettings captureSettings);
static member PacketCaptureContent : string * Azure.ResourceManager.Network.Models.PacketCaptureMachineScope * Nullable<Azure.ResourceManager.Network.Models.PacketCaptureTargetType> * Nullable<int64> * Nullable<int64> * Nullable<int> * Azure.ResourceManager.Network.Models.PacketCaptureStorageLocation * seq<Azure.ResourceManager.Network.Models.PacketCaptureFilter> * Nullable<bool> * Azure.ResourceManager.Network.Models.PacketCaptureSettings -> Azure.ResourceManager.Network.Models.PacketCaptureContent
Public Shared Function PacketCaptureContent (target As String, scope As PacketCaptureMachineScope, targetType As Nullable(Of PacketCaptureTargetType), bytesToCapturePerPacket As Nullable(Of Long), totalBytesPerSession As Nullable(Of Long), timeLimitInSeconds As Nullable(Of Integer), storageLocation As PacketCaptureStorageLocation, filters As IEnumerable(Of PacketCaptureFilter), continuousCapture As Nullable(Of Boolean), captureSettings As PacketCaptureSettings) As PacketCaptureContent
Parameters
- target
- String
The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- targetType
- Nullable<PacketCaptureTargetType>
Target type of the resource provided.
Number of bytes captured per packet, the remaining bytes are truncated.
- storageLocation
- PacketCaptureStorageLocation
The storage location for a packet capture session.
- filters
- IEnumerable<PacketCaptureFilter>
A list of packet capture filters.
This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'.
- captureSettings
- PacketCaptureSettings
The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.
Returns
A new PacketCaptureContent instance for mocking.