azure-native.mobilenetwork.PacketCapture
Explore with Pulumi AI
Packet capture session resource. Azure REST API version: 2023-06-01.
Other available API versions: 2023-09-01, 2024-02-01, 2024-04-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.MobileNetwork.PacketCapture("packetCapture", new()
{
BytesToCapturePerPacket = 10000,
NetworkInterfaces = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN",
},
PacketCaptureName = "pc1",
PacketCoreControlPlaneName = "TestPacketCoreCP",
ResourceGroupName = "rg1",
TimeLimitInSeconds = 100,
TotalBytesPerSession = 100000,
});
});
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewPacketCapture(ctx, "packetCapture", &mobilenetwork.PacketCaptureArgs{
BytesToCapturePerPacket: pulumi.Float64(10000),
NetworkInterfaces: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP"),
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP"),
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN"),
},
PacketCaptureName: pulumi.String("pc1"),
PacketCoreControlPlaneName: pulumi.String("TestPacketCoreCP"),
ResourceGroupName: pulumi.String("rg1"),
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.mobilenetwork.PacketCapture;
import com.pulumi.azurenative.mobilenetwork.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)
.networkInterfaces(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN")
.packetCaptureName("pc1")
.packetCoreControlPlaneName("TestPacketCoreCP")
.resourceGroupName("rg1")
.timeLimitInSeconds(100)
.totalBytesPerSession(100000)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
packet_capture = azure_native.mobilenetwork.PacketCapture("packetCapture",
bytes_to_capture_per_packet=10000,
network_interfaces=[
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN",
],
packet_capture_name="pc1",
packet_core_control_plane_name="TestPacketCoreCP",
resource_group_name="rg1",
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.mobilenetwork.PacketCapture("packetCapture", {
bytesToCapturePerPacket: 10000,
networkInterfaces: [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN",
],
packetCaptureName: "pc1",
packetCoreControlPlaneName: "TestPacketCoreCP",
resourceGroupName: "rg1",
timeLimitInSeconds: 100,
totalBytesPerSession: 100000,
});
resources:
packetCapture:
type: azure-native:mobilenetwork:PacketCapture
properties:
bytesToCapturePerPacket: 10000
networkInterfaces:
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/TestPacketCoreCP/packetCoreDataPlanes/TestPacketCoreDP/attachedDataNetworks/TestADN
packetCaptureName: pc1
packetCoreControlPlaneName: TestPacketCoreCP
resourceGroupName: rg1
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,
packet_core_control_plane_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
bytes_to_capture_per_packet: Optional[float] = None,
network_interfaces: Optional[Sequence[str]] = 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:mobilenetwork: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.MobileNetwork.PacketCapture("packetCaptureResource", new()
{
PacketCoreControlPlaneName = "string",
ResourceGroupName = "string",
BytesToCapturePerPacket = 0,
NetworkInterfaces = new[]
{
"string",
},
PacketCaptureName = "string",
TimeLimitInSeconds = 0,
TotalBytesPerSession = 0,
});
example, err := mobilenetwork.NewPacketCapture(ctx, "packetCaptureResource", &mobilenetwork.PacketCaptureArgs{
PacketCoreControlPlaneName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
BytesToCapturePerPacket: pulumi.Float64(0),
NetworkInterfaces: pulumi.StringArray{
pulumi.String("string"),
},
PacketCaptureName: pulumi.String("string"),
TimeLimitInSeconds: pulumi.Int(0),
TotalBytesPerSession: pulumi.Float64(0),
})
var packetCaptureResource = new PacketCapture("packetCaptureResource", PacketCaptureArgs.builder()
.packetCoreControlPlaneName("string")
.resourceGroupName("string")
.bytesToCapturePerPacket(0)
.networkInterfaces("string")
.packetCaptureName("string")
.timeLimitInSeconds(0)
.totalBytesPerSession(0)
.build());
packet_capture_resource = azure_native.mobilenetwork.PacketCapture("packetCaptureResource",
packet_core_control_plane_name="string",
resource_group_name="string",
bytes_to_capture_per_packet=0,
network_interfaces=["string"],
packet_capture_name="string",
time_limit_in_seconds=0,
total_bytes_per_session=0)
const packetCaptureResource = new azure_native.mobilenetwork.PacketCapture("packetCaptureResource", {
packetCoreControlPlaneName: "string",
resourceGroupName: "string",
bytesToCapturePerPacket: 0,
networkInterfaces: ["string"],
packetCaptureName: "string",
timeLimitInSeconds: 0,
totalBytesPerSession: 0,
});
type: azure-native:mobilenetwork:PacketCapture
properties:
bytesToCapturePerPacket: 0
networkInterfaces:
- string
packetCaptureName: string
packetCoreControlPlaneName: string
resourceGroupName: 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:
- Packet
Core stringControl Plane Name - The name of the packet core control plane.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Bytes
To doubleCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- Network
Interfaces List<string> - List of network interfaces to capture on.
- 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.
- Packet
Core stringControl Plane Name - The name of the packet core control plane.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Bytes
To float64Capture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- Network
Interfaces []string - List of network interfaces to capture on.
- 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.
- packet
Core StringControl Plane Name - The name of the packet core control plane.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- bytes
To DoubleCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- network
Interfaces List<String> - List of network interfaces to capture on.
- 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.
- packet
Core stringControl Plane Name - The name of the packet core control plane.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- bytes
To numberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- network
Interfaces string[] - List of network interfaces to capture on.
- 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.
- packet_
core_ strcontrol_ plane_ name - The name of the packet core control plane.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- bytes_
to_ floatcapture_ per_ packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- network_
interfaces Sequence[str] - List of network interfaces to capture on.
- 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.
- packet
Core StringControl Plane Name - The name of the packet core control plane.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- bytes
To NumberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated. The default "0" means the entire packet is captured.
- network
Interfaces List<String> - List of network interfaces to capture on.
- 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:
- Capture
Start stringTime - The start time of the packet capture session.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the packet capture session resource.
- Reason string
- The reason the current packet capture session state.
- Status string
- The status of the packet capture session.
- System
Data Pulumi.Azure Native. Mobile Network. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Capture
Start stringTime - The start time of the packet capture session.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the packet capture session resource.
- Reason string
- The reason the current packet capture session state.
- Status string
- The status of the packet capture session.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- capture
Start StringTime - The start time of the packet capture session.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the packet capture session resource.
- reason String
- The reason the current packet capture session state.
- status String
- The status of the packet capture session.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- capture
Start stringTime - The start time of the packet capture session.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the packet capture session resource.
- reason string
- The reason the current packet capture session state.
- status string
- The status of the packet capture session.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- capture_
start_ strtime - The start time of the packet capture session.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the packet capture session resource.
- reason str
- The reason the current packet capture session state.
- status str
- The status of the packet capture session.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- capture
Start StringTime - The start time of the packet capture session.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the packet capture session resource.
- reason String
- The reason the current packet capture session state.
- status String
- The status of the packet capture session.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mobilenetwork:PacketCapture pc1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCaptures/{packetCaptureName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0