Class NetworkPacketCapture
Configures Network Packet Capturing against a Virtual Machine using a Network Watcher.
Inherited Members
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public class NetworkPacketCapture : CustomResource
Constructors
View SourceNetworkPacketCapture(String, NetworkPacketCaptureArgs, CustomResourceOptions)
Create a NetworkPacketCapture resource with the given unique name, arguments, and options.
Declaration
public NetworkPacketCapture(string name, NetworkPacketCaptureArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NetworkPacketCaptureArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceFilters
One or more filter blocks as defined below. Changing this forces a new resource to be created.
Declaration
public Output<ImmutableArray<NetworkPacketCaptureFilter>> Filters { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<NetworkPacketCaptureFilter>> |
MaximumBytesPerPacket
The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.
Declaration
public Output<int?> MaximumBytesPerPacket { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MaximumBytesPerSession
Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.
Declaration
public Output<int?> MaximumBytesPerSession { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MaximumCaptureDuration
The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.
Declaration
public Output<int?> MaximumCaptureDuration { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Name
The name to use for this Network Packet Capture. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkWatcherName
The name of the Network Watcher. Changing this forces a new resource to be created.
Declaration
public Output<string> NetworkWatcherName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageLocation
A storage_location block as defined below. Changing this forces a new resource to be created.
Declaration
public Output<NetworkPacketCaptureStorageLocation> StorageLocation { get; }
Property Value
| Type | Description |
|---|---|
| Output<NetworkPacketCaptureStorageLocation> |
TargetResourceId
The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
Declaration
public Output<string> TargetResourceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NetworkPacketCaptureState, CustomResourceOptions)
Get an existing NetworkPacketCapture resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NetworkPacketCapture Get(string name, Input<string> id, NetworkPacketCaptureState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NetworkPacketCaptureState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NetworkPacketCapture |