azure-native.network.PacketCapture
Explore with Pulumi AI
Information about packet capture session. API Version: 2020-11-01.
Example Usage
Create packet capture
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var packetCapture = new AzureNative.Network.PacketCapture("packetCapture", new()
{
BytesToCapturePerPacket = 10000,
Filters = new[]
{
new AzureNative.Network.Inputs.PacketCaptureFilterArgs
{
LocalIPAddress = "10.0.0.4",
LocalPort = "80",
Protocol = "TCP",
},
},
NetworkWatcherName = "nw1",
PacketCaptureName = "pc1",
ResourceGroupName = "rg1",
StorageLocation = new AzureNative.Network.Inputs.PacketCaptureStorageLocationArgs
{
FilePath = "D:\\capture\\pc1.cap",
StorageId = "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
StoragePath = "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
},
Target = "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
TimeLimitInSeconds = 100,
TotalBytesPerSession = 100000,
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewPacketCapture(ctx, "packetCapture", &network.PacketCaptureArgs{
BytesToCapturePerPacket: pulumi.Float64(10000),
Filters: []network.PacketCaptureFilterArgs{
{
LocalIPAddress: pulumi.String("10.0.0.4"),
LocalPort: pulumi.String("80"),
Protocol: pulumi.String("TCP"),
},
},
NetworkWatcherName: pulumi.String("nw1"),
PacketCaptureName: pulumi.String("pc1"),
ResourceGroupName: pulumi.String("rg1"),
StorageLocation: &network.PacketCaptureStorageLocationArgs{
FilePath: pulumi.String("D:\\capture\\pc1.cap"),
StorageId: pulumi.String("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore"),
StoragePath: pulumi.String("https://mytestaccountname.blob.core.windows.net/capture/pc1.cap"),
},
Target: pulumi.String("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"),
TimeLimitInSeconds: pulumi.Int(100),
TotalBytesPerSession: pulumi.Float64(100000),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.PacketCapture;
import com.pulumi.azurenative.network.PacketCaptureArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var packetCapture = new PacketCapture("packetCapture", PacketCaptureArgs.builder()
.bytesToCapturePerPacket(10000)
.filters(Map.ofEntries(
Map.entry("localIPAddress", "10.0.0.4"),
Map.entry("localPort", "80"),
Map.entry("protocol", "TCP")
))
.networkWatcherName("nw1")
.packetCaptureName("pc1")
.resourceGroupName("rg1")
.storageLocation(Map.ofEntries(
Map.entry("filePath", "D:\\capture\\pc1.cap"),
Map.entry("storageId", "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore"),
Map.entry("storagePath", "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap")
))
.target("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1")
.timeLimitInSeconds(100)
.totalBytesPerSession(100000)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
packet_capture = azure_native.network.PacketCapture("packetCapture",
bytes_to_capture_per_packet=10000,
filters=[azure_native.network.PacketCaptureFilterArgs(
local_ip_address="10.0.0.4",
local_port="80",
protocol="TCP",
)],
network_watcher_name="nw1",
packet_capture_name="pc1",
resource_group_name="rg1",
storage_location=azure_native.network.PacketCaptureStorageLocationArgs(
file_path="D:\\capture\\pc1.cap",
storage_id="/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
storage_path="https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
),
target="/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
time_limit_in_seconds=100,
total_bytes_per_session=100000)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const packetCapture = new azure_native.network.PacketCapture("packetCapture", {
bytesToCapturePerPacket: 10000,
filters: [{
localIPAddress: "10.0.0.4",
localPort: "80",
protocol: "TCP",
}],
networkWatcherName: "nw1",
packetCaptureName: "pc1",
resourceGroupName: "rg1",
storageLocation: {
filePath: "D:\\capture\\pc1.cap",
storageId: "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
storagePath: "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
},
target: "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
timeLimitInSeconds: 100,
totalBytesPerSession: 100000,
});
resources:
packetCapture:
type: azure-native:network:PacketCapture
properties:
bytesToCapturePerPacket: 10000
filters:
- localIPAddress: 10.0.0.4
localPort: '80'
protocol: TCP
networkWatcherName: nw1
packetCaptureName: pc1
resourceGroupName: rg1
storageLocation:
filePath: D:\capture\pc1.cap
storageId: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore
storagePath: https://mytestaccountname.blob.core.windows.net/capture/pc1.cap
target: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1
timeLimitInSeconds: 100
totalBytesPerSession: 100000
Create PacketCapture Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PacketCapture(name: string, args: PacketCaptureArgs, opts?: CustomResourceOptions);
@overload
def PacketCapture(resource_name: str,
args: PacketCaptureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PacketCapture(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_watcher_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
storage_location: Optional[PacketCaptureStorageLocationArgs] = None,
target: Optional[str] = None,
bytes_to_capture_per_packet: Optional[float] = None,
filters: Optional[Sequence[PacketCaptureFilterArgs]] = None,
packet_capture_name: Optional[str] = None,
time_limit_in_seconds: Optional[int] = None,
total_bytes_per_session: Optional[float] = None)
func NewPacketCapture(ctx *Context, name string, args PacketCaptureArgs, opts ...ResourceOption) (*PacketCapture, error)
public PacketCapture(string name, PacketCaptureArgs args, CustomResourceOptions? opts = null)
public PacketCapture(String name, PacketCaptureArgs args)
public PacketCapture(String name, PacketCaptureArgs args, CustomResourceOptions options)
type: azure-native:network:PacketCapture
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var packetCaptureResource = new AzureNative.Network.PacketCapture("packetCaptureResource", new()
{
NetworkWatcherName = "string",
ResourceGroupName = "string",
StorageLocation =
{
{ "filePath", "string" },
{ "storageId", "string" },
{ "storagePath", "string" },
},
Target = "string",
BytesToCapturePerPacket = 0,
Filters = new[]
{
{
{ "localIPAddress", "string" },
{ "localPort", "string" },
{ "protocol", "string" },
{ "remoteIPAddress", "string" },
{ "remotePort", "string" },
},
},
PacketCaptureName = "string",
TimeLimitInSeconds = 0,
TotalBytesPerSession = 0,
});
example, err := network.NewPacketCapture(ctx, "packetCaptureResource", &network.PacketCaptureArgs{
NetworkWatcherName: "string",
ResourceGroupName: "string",
StorageLocation: map[string]interface{}{
"filePath": "string",
"storageId": "string",
"storagePath": "string",
},
Target: "string",
BytesToCapturePerPacket: 0,
Filters: []map[string]interface{}{
map[string]interface{}{
"localIPAddress": "string",
"localPort": "string",
"protocol": "string",
"remoteIPAddress": "string",
"remotePort": "string",
},
},
PacketCaptureName: "string",
TimeLimitInSeconds: 0,
TotalBytesPerSession: 0,
})
var packetCaptureResource = new PacketCapture("packetCaptureResource", PacketCaptureArgs.builder()
.networkWatcherName("string")
.resourceGroupName("string")
.storageLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.target("string")
.bytesToCapturePerPacket(0)
.filters(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.packetCaptureName("string")
.timeLimitInSeconds(0)
.totalBytesPerSession(0)
.build());
packet_capture_resource = azure_native.network.PacketCapture("packetCaptureResource",
network_watcher_name=string,
resource_group_name=string,
storage_location={
filePath: string,
storageId: string,
storagePath: string,
},
target=string,
bytes_to_capture_per_packet=0,
filters=[{
localIPAddress: string,
localPort: string,
protocol: string,
remoteIPAddress: string,
remotePort: string,
}],
packet_capture_name=string,
time_limit_in_seconds=0,
total_bytes_per_session=0)
const packetCaptureResource = new azure_native.network.PacketCapture("packetCaptureResource", {
networkWatcherName: "string",
resourceGroupName: "string",
storageLocation: {
filePath: "string",
storageId: "string",
storagePath: "string",
},
target: "string",
bytesToCapturePerPacket: 0,
filters: [{
localIPAddress: "string",
localPort: "string",
protocol: "string",
remoteIPAddress: "string",
remotePort: "string",
}],
packetCaptureName: "string",
timeLimitInSeconds: 0,
totalBytesPerSession: 0,
});
type: azure-native:network:PacketCapture
properties:
bytesToCapturePerPacket: 0
filters:
- localIPAddress: string
localPort: string
protocol: string
remoteIPAddress: string
remotePort: string
networkWatcherName: string
packetCaptureName: string
resourceGroupName: string
storageLocation:
filePath: string
storageId: string
storagePath: string
target: string
timeLimitInSeconds: 0
totalBytesPerSession: 0
PacketCapture Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PacketCapture resource accepts the following input properties:
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Storage
Location Pulumi.Azure Native. Network. Inputs. Packet Capture Storage Location - The storage location for a packet capture session.
- Target string
- The ID of the targeted resource, only VM is currently supported.
- Bytes
To doubleCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- Filters
List<Pulumi.
Azure Native. Network. Inputs. Packet Capture Filter> - A list of packet capture filters.
- Packet
Capture stringName - The name of the packet capture session.
- Time
Limit intIn Seconds - Maximum duration of the capture session in seconds.
- Total
Bytes doublePer Session - Maximum size of the capture output.
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Storage
Location PacketCapture Storage Location Args - The storage location for a packet capture session.
- Target string
- The ID of the targeted resource, only VM is currently supported.
- Bytes
To float64Capture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- Filters
[]Packet
Capture Filter Args - A list of packet capture filters.
- Packet
Capture stringName - The name of the packet capture session.
- Time
Limit intIn Seconds - Maximum duration of the capture session in seconds.
- Total
Bytes float64Per Session - Maximum size of the capture output.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- storage
Location PacketCapture Storage Location - The storage location for a packet capture session.
- target String
- The ID of the targeted resource, only VM is currently supported.
- bytes
To DoubleCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters
List<Packet
Capture Filter> - A list of packet capture filters.
- packet
Capture StringName - The name of the packet capture session.
- time
Limit IntegerIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes DoublePer Session - Maximum size of the capture output.
- network
Watcher stringName - The name of the network watcher.
- resource
Group stringName - The name of the resource group.
- storage
Location PacketCapture Storage Location - The storage location for a packet capture session.
- target string
- The ID of the targeted resource, only VM is currently supported.
- bytes
To numberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters
Packet
Capture Filter[] - A list of packet capture filters.
- packet
Capture stringName - The name of the packet capture session.
- time
Limit numberIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes numberPer Session - Maximum size of the capture output.
- network_
watcher_ strname - The name of the network watcher.
- resource_
group_ strname - The name of the resource group.
- storage_
location PacketCapture Storage Location Args - The storage location for a packet capture session.
- target str
- The ID of the targeted resource, only VM is currently supported.
- bytes_
to_ floatcapture_ per_ packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters
Sequence[Packet
Capture Filter Args] - A list of packet capture filters.
- packet_
capture_ strname - The name of the packet capture session.
- time_
limit_ intin_ seconds - Maximum duration of the capture session in seconds.
- total_
bytes_ floatper_ session - Maximum size of the capture output.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- storage
Location Property Map - The storage location for a packet capture session.
- target String
- The ID of the targeted resource, only VM is currently supported.
- bytes
To NumberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters List<Property Map>
- A list of packet capture filters.
- packet
Capture StringName - The name of the packet capture session.
- time
Limit NumberIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes NumberPer Session - Maximum size of the capture output.
Outputs
All input properties are implicitly available as output properties. Additionally, the PacketCapture resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the packet capture session.
- Provisioning
State string - The provisioning state of the packet capture session.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the packet capture session.
- Provisioning
State string - The provisioning state of the packet capture session.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the packet capture session.
- provisioning
State String - The provisioning state of the packet capture session.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the packet capture session.
- provisioning
State string - The provisioning state of the packet capture session.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the packet capture session.
- provisioning_
state str - The provisioning state of the packet capture session.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the packet capture session.
- provisioning
State String - The provisioning state of the packet capture session.
Supporting Types
PacketCaptureFilter, PacketCaptureFilterArgs
- Local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Protocol
string | Pulumi.
Azure Native. Network. Pc Protocol - Protocol to be filtered on.
- Remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Protocol
string | Pc
Protocol - Protocol to be filtered on.
- Remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port String - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol
String | Pc
Protocol - Protocol to be filtered on.
- remote
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port String - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol
string | Pc
Protocol - Protocol to be filtered on.
- remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local_
ip_ straddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local_
port str - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol
str | Pc
Protocol - Protocol to be filtered on.
- remote_
ip_ straddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote_
port str - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port String - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol String | "TCP" | "UDP" | "Any"
- Protocol to be filtered on.
- remote
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port String - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
PacketCaptureFilterResponse, PacketCaptureFilterResponseArgs
- Local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Protocol string
- Protocol to be filtered on.
- Remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Protocol string
- Protocol to be filtered on.
- Remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- Remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port String - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol String
- Protocol to be filtered on.
- remote
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port String - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port string - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol string
- Protocol to be filtered on.
- remote
IPAddress string - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port string - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local_
ip_ straddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local_
port str - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol str
- Protocol to be filtered on.
- remote_
ip_ straddress - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote_
port str - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- local
Port String - Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- protocol String
- Protocol to be filtered on.
- remote
IPAddress String - Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
- remote
Port String - Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.
PacketCaptureStorageLocation, PacketCaptureStorageLocationArgs
- File
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- File
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path String - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path String - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file_
path str - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage_
id str - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage_
path str - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path String - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path String - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
PacketCaptureStorageLocationResponse, PacketCaptureStorageLocationResponseArgs
- File
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- File
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path String - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path String - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path string - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path string - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file_
path str - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage_
id str - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage_
path str - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
- file
Path String - A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path String - The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
PcProtocol, PcProtocolArgs
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- Pc
Protocol TCP - TCP
- Pc
Protocol UDP - UDP
- Pc
Protocol Any - Any
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- TCP
- TCP
- UDP
- UDP
- ANY
- Any
- "TCP"
- TCP
- "UDP"
- UDP
- "Any"
- Any
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:PacketCapture pc1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0