1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. TrafficCaptureRules
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
zia logo
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler

    The zia_traffic_capture_rules resource allows the creation and management of ZIA traffic capture rules in the Zscaler Internet Access.

    Example Usage

    data "zia_firewall_filtering_network_service" "zscaler_proxy_nw_services" {
        name = "ZSCALER_PROXY_NW_SERVICES"
    }
    
    data "zia_department_management" "engineering" {
     name = "Engineering"
    }
    
    data "zia_group_management" "normal_internet" {
        name = "Normal_Internet"
    }
    
    data "zia_firewall_filtering_time_window" "work_hours" {
        name = "Work hours"
    }
    
    resource "zia_traffic_capture_rules" "example" {
        name                = "Example Traffic Capture Rule"
        description         = "Example traffic capture rule for engineering department"
        action              = "ALLOW"
        state               = "ENABLED"
        order               = 1
        enable_full_logging = true
        txn_size_limit      = "UNLIMITED"
        txn_sampling        = "HUNDRED_PERCENT"
        nw_services {
            id = [ data.zia_firewall_filtering_network_service.zscaler_proxy_nw_services.id ]
        }
        departments {
            id = [ data.zia_department_management.engineering.id ]
        }
        groups {
            id = [ data.zia_group_management.normal_internet.id ]
        }
        time_windows {
            id = [ data.zia_firewall_filtering_time_window.work_hours.id ]
        }
    }
    

    Create TrafficCaptureRules Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TrafficCaptureRules(name: string, args: TrafficCaptureRulesArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficCaptureRules(resource_name: str,
                            args: TrafficCaptureRulesArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficCaptureRules(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            order: Optional[int] = None,
                            name: Optional[str] = None,
                            nw_applications: Optional[Sequence[str]] = None,
                            departments: Optional[TrafficCaptureRulesDepartmentsArgs] = None,
                            description: Optional[str] = None,
                            dest_addresses: Optional[Sequence[str]] = None,
                            dest_countries: Optional[Sequence[str]] = None,
                            dest_ip_categories: Optional[Sequence[str]] = None,
                            dest_ip_groups: Optional[TrafficCaptureRulesDestIpGroupsArgs] = None,
                            nw_application_groups: Optional[TrafficCaptureRulesNwApplicationGroupsArgs] = None,
                            device_trust_levels: Optional[Sequence[str]] = None,
                            devices: Optional[TrafficCaptureRulesDevicesArgs] = None,
                            groups: Optional[TrafficCaptureRulesGroupsArgs] = None,
                            labels: Optional[TrafficCaptureRulesLabelsArgs] = None,
                            location_groups: Optional[TrafficCaptureRulesLocationGroupsArgs] = None,
                            default_rule: Optional[bool] = None,
                            locations: Optional[TrafficCaptureRulesLocationsArgs] = None,
                            device_groups: Optional[TrafficCaptureRulesDeviceGroupsArgs] = None,
                            action: Optional[str] = None,
                            nw_service_groups: Optional[TrafficCaptureRulesNwServiceGroupsArgs] = None,
                            nw_services: Optional[TrafficCaptureRulesNwServicesArgs] = None,
                            app_service_groups: Optional[TrafficCaptureRulesAppServiceGroupsArgs] = None,
                            predefined: Optional[bool] = None,
                            rank: Optional[int] = None,
                            source_countries: Optional[Sequence[str]] = None,
                            src_ip_groups: Optional[TrafficCaptureRulesSrcIpGroupsArgs] = None,
                            src_ips: Optional[Sequence[str]] = None,
                            state: Optional[str] = None,
                            time_windows: Optional[TrafficCaptureRulesTimeWindowsArgs] = None,
                            txn_sampling: Optional[str] = None,
                            txn_size_limit: Optional[str] = None,
                            users: Optional[TrafficCaptureRulesUsersArgs] = None,
                            workload_groups: Optional[Sequence[TrafficCaptureRulesWorkloadGroupArgs]] = None)
    func NewTrafficCaptureRules(ctx *Context, name string, args TrafficCaptureRulesArgs, opts ...ResourceOption) (*TrafficCaptureRules, error)
    public TrafficCaptureRules(string name, TrafficCaptureRulesArgs args, CustomResourceOptions? opts = null)
    public TrafficCaptureRules(String name, TrafficCaptureRulesArgs args)
    public TrafficCaptureRules(String name, TrafficCaptureRulesArgs args, CustomResourceOptions options)
    
    type: zia:TrafficCaptureRules
    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 TrafficCaptureRulesArgs
    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 TrafficCaptureRulesArgs
    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 TrafficCaptureRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrafficCaptureRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrafficCaptureRulesArgs
    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 trafficCaptureRulesResource = new Zia.TrafficCaptureRules("trafficCaptureRulesResource", new()
    {
        Order = 0,
        Name = "string",
        NwApplications = new[]
        {
            "string",
        },
        Departments = new Zia.Inputs.TrafficCaptureRulesDepartmentsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Description = "string",
        DestAddresses = new[]
        {
            "string",
        },
        DestCountries = new[]
        {
            "string",
        },
        DestIpCategories = new[]
        {
            "string",
        },
        DestIpGroups = new Zia.Inputs.TrafficCaptureRulesDestIpGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        NwApplicationGroups = new Zia.Inputs.TrafficCaptureRulesNwApplicationGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        DeviceTrustLevels = new[]
        {
            "string",
        },
        Devices = new Zia.Inputs.TrafficCaptureRulesDevicesArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Groups = new Zia.Inputs.TrafficCaptureRulesGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Labels = new Zia.Inputs.TrafficCaptureRulesLabelsArgs
        {
            Id = 0,
        },
        LocationGroups = new Zia.Inputs.TrafficCaptureRulesLocationGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        DefaultRule = false,
        Locations = new Zia.Inputs.TrafficCaptureRulesLocationsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        DeviceGroups = new Zia.Inputs.TrafficCaptureRulesDeviceGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Action = "string",
        NwServiceGroups = new Zia.Inputs.TrafficCaptureRulesNwServiceGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        NwServices = new Zia.Inputs.TrafficCaptureRulesNwServicesArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        AppServiceGroups = new Zia.Inputs.TrafficCaptureRulesAppServiceGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        Predefined = false,
        Rank = 0,
        SourceCountries = new[]
        {
            "string",
        },
        SrcIpGroups = new Zia.Inputs.TrafficCaptureRulesSrcIpGroupsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        SrcIps = new[]
        {
            "string",
        },
        State = "string",
        TimeWindows = new Zia.Inputs.TrafficCaptureRulesTimeWindowsArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        TxnSampling = "string",
        TxnSizeLimit = "string",
        Users = new Zia.Inputs.TrafficCaptureRulesUsersArgs
        {
            Ids = new[]
            {
                0,
            },
        },
        WorkloadGroups = new[]
        {
            new Zia.Inputs.TrafficCaptureRulesWorkloadGroupArgs
            {
                Id = 0,
                Name = "string",
            },
        },
    });
    
    example, err := zia.NewTrafficCaptureRules(ctx, "trafficCaptureRulesResource", &zia.TrafficCaptureRulesArgs{
    	Order: pulumi.Int(0),
    	Name:  pulumi.String("string"),
    	NwApplications: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Departments: &zia.TrafficCaptureRulesDepartmentsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Description: pulumi.String("string"),
    	DestAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DestCountries: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DestIpCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DestIpGroups: &zia.TrafficCaptureRulesDestIpGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	NwApplicationGroups: &zia.TrafficCaptureRulesNwApplicationGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	DeviceTrustLevels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Devices: &zia.TrafficCaptureRulesDevicesArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Groups: &zia.TrafficCaptureRulesGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Labels: &zia.TrafficCaptureRulesLabelsArgs{
    		Id: pulumi.Int(0),
    	},
    	LocationGroups: &zia.TrafficCaptureRulesLocationGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	DefaultRule: pulumi.Bool(false),
    	Locations: &zia.TrafficCaptureRulesLocationsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	DeviceGroups: &zia.TrafficCaptureRulesDeviceGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Action: pulumi.String("string"),
    	NwServiceGroups: &zia.TrafficCaptureRulesNwServiceGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	NwServices: &zia.TrafficCaptureRulesNwServicesArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	AppServiceGroups: &zia.TrafficCaptureRulesAppServiceGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Predefined: pulumi.Bool(false),
    	Rank:       pulumi.Int(0),
    	SourceCountries: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SrcIpGroups: &zia.TrafficCaptureRulesSrcIpGroupsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	SrcIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	State: pulumi.String("string"),
    	TimeWindows: &zia.TrafficCaptureRulesTimeWindowsArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	TxnSampling:  pulumi.String("string"),
    	TxnSizeLimit: pulumi.String("string"),
    	Users: &zia.TrafficCaptureRulesUsersArgs{
    		Ids: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	WorkloadGroups: zia.TrafficCaptureRulesWorkloadGroupArray{
    		&zia.TrafficCaptureRulesWorkloadGroupArgs{
    			Id:   pulumi.Int(0),
    			Name: pulumi.String("string"),
    		},
    	},
    })
    
    var trafficCaptureRulesResource = new TrafficCaptureRules("trafficCaptureRulesResource", TrafficCaptureRulesArgs.builder()
        .order(0)
        .name("string")
        .nwApplications("string")
        .departments(TrafficCaptureRulesDepartmentsArgs.builder()
            .ids(0)
            .build())
        .description("string")
        .destAddresses("string")
        .destCountries("string")
        .destIpCategories("string")
        .destIpGroups(TrafficCaptureRulesDestIpGroupsArgs.builder()
            .ids(0)
            .build())
        .nwApplicationGroups(TrafficCaptureRulesNwApplicationGroupsArgs.builder()
            .ids(0)
            .build())
        .deviceTrustLevels("string")
        .devices(TrafficCaptureRulesDevicesArgs.builder()
            .ids(0)
            .build())
        .groups(TrafficCaptureRulesGroupsArgs.builder()
            .ids(0)
            .build())
        .labels(TrafficCaptureRulesLabelsArgs.builder()
            .id(0)
            .build())
        .locationGroups(TrafficCaptureRulesLocationGroupsArgs.builder()
            .ids(0)
            .build())
        .defaultRule(false)
        .locations(TrafficCaptureRulesLocationsArgs.builder()
            .ids(0)
            .build())
        .deviceGroups(TrafficCaptureRulesDeviceGroupsArgs.builder()
            .ids(0)
            .build())
        .action("string")
        .nwServiceGroups(TrafficCaptureRulesNwServiceGroupsArgs.builder()
            .ids(0)
            .build())
        .nwServices(TrafficCaptureRulesNwServicesArgs.builder()
            .ids(0)
            .build())
        .appServiceGroups(TrafficCaptureRulesAppServiceGroupsArgs.builder()
            .ids(0)
            .build())
        .predefined(false)
        .rank(0)
        .sourceCountries("string")
        .srcIpGroups(TrafficCaptureRulesSrcIpGroupsArgs.builder()
            .ids(0)
            .build())
        .srcIps("string")
        .state("string")
        .timeWindows(TrafficCaptureRulesTimeWindowsArgs.builder()
            .ids(0)
            .build())
        .txnSampling("string")
        .txnSizeLimit("string")
        .users(TrafficCaptureRulesUsersArgs.builder()
            .ids(0)
            .build())
        .workloadGroups(TrafficCaptureRulesWorkloadGroupArgs.builder()
            .id(0)
            .name("string")
            .build())
        .build());
    
    traffic_capture_rules_resource = zia.TrafficCaptureRules("trafficCaptureRulesResource",
        order=0,
        name="string",
        nw_applications=["string"],
        departments={
            "ids": [0],
        },
        description="string",
        dest_addresses=["string"],
        dest_countries=["string"],
        dest_ip_categories=["string"],
        dest_ip_groups={
            "ids": [0],
        },
        nw_application_groups={
            "ids": [0],
        },
        device_trust_levels=["string"],
        devices={
            "ids": [0],
        },
        groups={
            "ids": [0],
        },
        labels={
            "id": 0,
        },
        location_groups={
            "ids": [0],
        },
        default_rule=False,
        locations={
            "ids": [0],
        },
        device_groups={
            "ids": [0],
        },
        action="string",
        nw_service_groups={
            "ids": [0],
        },
        nw_services={
            "ids": [0],
        },
        app_service_groups={
            "ids": [0],
        },
        predefined=False,
        rank=0,
        source_countries=["string"],
        src_ip_groups={
            "ids": [0],
        },
        src_ips=["string"],
        state="string",
        time_windows={
            "ids": [0],
        },
        txn_sampling="string",
        txn_size_limit="string",
        users={
            "ids": [0],
        },
        workload_groups=[{
            "id": 0,
            "name": "string",
        }])
    
    const trafficCaptureRulesResource = new zia.TrafficCaptureRules("trafficCaptureRulesResource", {
        order: 0,
        name: "string",
        nwApplications: ["string"],
        departments: {
            ids: [0],
        },
        description: "string",
        destAddresses: ["string"],
        destCountries: ["string"],
        destIpCategories: ["string"],
        destIpGroups: {
            ids: [0],
        },
        nwApplicationGroups: {
            ids: [0],
        },
        deviceTrustLevels: ["string"],
        devices: {
            ids: [0],
        },
        groups: {
            ids: [0],
        },
        labels: {
            id: 0,
        },
        locationGroups: {
            ids: [0],
        },
        defaultRule: false,
        locations: {
            ids: [0],
        },
        deviceGroups: {
            ids: [0],
        },
        action: "string",
        nwServiceGroups: {
            ids: [0],
        },
        nwServices: {
            ids: [0],
        },
        appServiceGroups: {
            ids: [0],
        },
        predefined: false,
        rank: 0,
        sourceCountries: ["string"],
        srcIpGroups: {
            ids: [0],
        },
        srcIps: ["string"],
        state: "string",
        timeWindows: {
            ids: [0],
        },
        txnSampling: "string",
        txnSizeLimit: "string",
        users: {
            ids: [0],
        },
        workloadGroups: [{
            id: 0,
            name: "string",
        }],
    });
    
    type: zia:TrafficCaptureRules
    properties:
        action: string
        appServiceGroups:
            ids:
                - 0
        defaultRule: false
        departments:
            ids:
                - 0
        description: string
        destAddresses:
            - string
        destCountries:
            - string
        destIpCategories:
            - string
        destIpGroups:
            ids:
                - 0
        deviceGroups:
            ids:
                - 0
        deviceTrustLevels:
            - string
        devices:
            ids:
                - 0
        groups:
            ids:
                - 0
        labels:
            id: 0
        locationGroups:
            ids:
                - 0
        locations:
            ids:
                - 0
        name: string
        nwApplicationGroups:
            ids:
                - 0
        nwApplications:
            - string
        nwServiceGroups:
            ids:
                - 0
        nwServices:
            ids:
                - 0
        order: 0
        predefined: false
        rank: 0
        sourceCountries:
            - string
        srcIpGroups:
            ids:
                - 0
        srcIps:
            - string
        state: string
        timeWindows:
            ids:
                - 0
        txnSampling: string
        txnSizeLimit: string
        users:
            ids:
                - 0
        workloadGroups:
            - id: 0
              name: string
    

    TrafficCaptureRules 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 TrafficCaptureRules resource accepts the following input properties:

    Order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    Action string
    The action to be enforced when the traffic matches the rule criteria
    AppServiceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesAppServiceGroups
    list of application service groups
    DefaultRule bool
    If set to true, the default rule is applied
    Departments zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    Description string
    Additional information about the rule
    DestAddresses List<string>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    DestCountries List<string>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    DestIpCategories List<string>
    DestIpGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    DeviceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels List<string>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    Groups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    Labels zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    LocationGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLocationGroups
    list of locations groups
    Locations zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    Name string
    Name of the Firewall Filtering policy rule
    NwApplicationGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    NwApplications List<string>
    NwServiceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    NwServices zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwServices
    list of nw services
    Predefined bool
    If set to true, a predefined rule is applied
    Rank int
    Admin rank of the Firewall Filtering policy rule
    SourceCountries List<string>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    SrcIpGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    SrcIps List<string>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    State string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    TimeWindows zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    TxnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    TxnSizeLimit string
    The maximum size of traffic to capture per connection
    Users zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesUsers
    list of users for which rule must be applied
    WorkloadGroups List<zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesWorkloadGroup>
    The list of preconfigured workload groups to which the policy must be applied
    Order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    Action string
    The action to be enforced when the traffic matches the rule criteria
    AppServiceGroups TrafficCaptureRulesAppServiceGroupsArgs
    list of application service groups
    DefaultRule bool
    If set to true, the default rule is applied
    Departments TrafficCaptureRulesDepartmentsArgs
    list of departments for which rule must be applied
    Description string
    Additional information about the rule
    DestAddresses []string
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    DestCountries []string
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    DestIpCategories []string
    DestIpGroups TrafficCaptureRulesDestIpGroupsArgs
    list of destination ip groups
    DeviceGroups TrafficCaptureRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels []string
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices TrafficCaptureRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    Groups TrafficCaptureRulesGroupsArgs
    list of groups for which rule must be applied
    Labels TrafficCaptureRulesLabelsArgs
    list of Labels that are applicable to the rule.
    LocationGroups TrafficCaptureRulesLocationGroupsArgs
    list of locations groups
    Locations TrafficCaptureRulesLocationsArgs
    list of locations for which rule must be applied
    Name string
    Name of the Firewall Filtering policy rule
    NwApplicationGroups TrafficCaptureRulesNwApplicationGroupsArgs
    list of nw application groups
    NwApplications []string
    NwServiceGroups TrafficCaptureRulesNwServiceGroupsArgs
    list of nw service groups
    NwServices TrafficCaptureRulesNwServicesArgs
    list of nw services
    Predefined bool
    If set to true, a predefined rule is applied
    Rank int
    Admin rank of the Firewall Filtering policy rule
    SourceCountries []string
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    SrcIpGroups TrafficCaptureRulesSrcIpGroupsArgs
    list of source ip groups
    SrcIps []string
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    State string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    TimeWindows TrafficCaptureRulesTimeWindowsArgs
    The time interval in which the Firewall Filtering policy rule applies
    TxnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    TxnSizeLimit string
    The maximum size of traffic to capture per connection
    Users TrafficCaptureRulesUsersArgs
    list of users for which rule must be applied
    WorkloadGroups []TrafficCaptureRulesWorkloadGroupArgs
    The list of preconfigured workload groups to which the policy must be applied
    order Integer
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    action String
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups TrafficCaptureRulesAppServiceGroups
    list of application service groups
    defaultRule Boolean
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    description String
    Additional information about the rule
    destAddresses List<String>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories List<String>
    destIpGroups TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    deviceGroups TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups TrafficCaptureRulesLocationGroups
    list of locations groups
    locations TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    name String
    Name of the Firewall Filtering policy rule
    nwApplicationGroups TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    nwApplications List<String>
    nwServiceGroups TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    nwServices TrafficCaptureRulesNwServices
    list of nw services
    predefined Boolean
    If set to true, a predefined rule is applied
    rank Integer
    Admin rank of the Firewall Filtering policy rule
    sourceCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    srcIps List<String>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state String
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling String
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit String
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsers
    list of users for which rule must be applied
    workloadGroups List<TrafficCaptureRulesWorkloadGroup>
    The list of preconfigured workload groups to which the policy must be applied
    order number
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    action string
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups TrafficCaptureRulesAppServiceGroups
    list of application service groups
    defaultRule boolean
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    description string
    Additional information about the rule
    destAddresses string[]
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries string[]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories string[]
    destIpGroups TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    deviceGroups TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels string[]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups TrafficCaptureRulesLocationGroups
    list of locations groups
    locations TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    name string
    Name of the Firewall Filtering policy rule
    nwApplicationGroups TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    nwApplications string[]
    nwServiceGroups TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    nwServices TrafficCaptureRulesNwServices
    list of nw services
    predefined boolean
    If set to true, a predefined rule is applied
    rank number
    Admin rank of the Firewall Filtering policy rule
    sourceCountries string[]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    srcIps string[]
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit string
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsers
    list of users for which rule must be applied
    workloadGroups TrafficCaptureRulesWorkloadGroup[]
    The list of preconfigured workload groups to which the policy must be applied
    order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    action str
    The action to be enforced when the traffic matches the rule criteria
    app_service_groups TrafficCaptureRulesAppServiceGroupsArgs
    list of application service groups
    default_rule bool
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartmentsArgs
    list of departments for which rule must be applied
    description str
    Additional information about the rule
    dest_addresses Sequence[str]
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    dest_countries Sequence[str]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    dest_ip_categories Sequence[str]
    dest_ip_groups TrafficCaptureRulesDestIpGroupsArgs
    list of destination ip groups
    device_groups TrafficCaptureRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    device_trust_levels Sequence[str]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroupsArgs
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabelsArgs
    list of Labels that are applicable to the rule.
    location_groups TrafficCaptureRulesLocationGroupsArgs
    list of locations groups
    locations TrafficCaptureRulesLocationsArgs
    list of locations for which rule must be applied
    name str
    Name of the Firewall Filtering policy rule
    nw_application_groups TrafficCaptureRulesNwApplicationGroupsArgs
    list of nw application groups
    nw_applications Sequence[str]
    nw_service_groups TrafficCaptureRulesNwServiceGroupsArgs
    list of nw service groups
    nw_services TrafficCaptureRulesNwServicesArgs
    list of nw services
    predefined bool
    If set to true, a predefined rule is applied
    rank int
    Admin rank of the Firewall Filtering policy rule
    source_countries Sequence[str]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    src_ip_groups TrafficCaptureRulesSrcIpGroupsArgs
    list of source ip groups
    src_ips Sequence[str]
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state str
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    time_windows TrafficCaptureRulesTimeWindowsArgs
    The time interval in which the Firewall Filtering policy rule applies
    txn_sampling str
    The percentage of connections sampled for capturing each time the rule is triggered
    txn_size_limit str
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsersArgs
    list of users for which rule must be applied
    workload_groups Sequence[TrafficCaptureRulesWorkloadGroupArgs]
    The list of preconfigured workload groups to which the policy must be applied
    order Number
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    action String
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups Property Map
    list of application service groups
    defaultRule Boolean
    If set to true, the default rule is applied
    departments Property Map
    list of departments for which rule must be applied
    description String
    Additional information about the rule
    destAddresses List<String>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories List<String>
    destIpGroups Property Map
    list of destination ip groups
    deviceGroups Property Map
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices Property Map
    Name-ID pairs of devices for which rule must be applied.
    groups Property Map
    list of groups for which rule must be applied
    labels Property Map
    list of Labels that are applicable to the rule.
    locationGroups Property Map
    list of locations groups
    locations Property Map
    list of locations for which rule must be applied
    name String
    Name of the Firewall Filtering policy rule
    nwApplicationGroups Property Map
    list of nw application groups
    nwApplications List<String>
    nwServiceGroups Property Map
    list of nw service groups
    nwServices Property Map
    list of nw services
    predefined Boolean
    If set to true, a predefined rule is applied
    rank Number
    Admin rank of the Firewall Filtering policy rule
    sourceCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups Property Map
    list of source ip groups
    srcIps List<String>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state String
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows Property Map
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling String
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit String
    The maximum size of traffic to capture per connection
    users Property Map
    list of users for which rule must be applied
    workloadGroups List<Property Map>
    The list of preconfigured workload groups to which the policy must be applied

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TrafficCaptureRules resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId int
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId number
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id int
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Number

    Look up Existing TrafficCaptureRules Resource

    Get an existing TrafficCaptureRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TrafficCaptureRulesState, opts?: CustomResourceOptions): TrafficCaptureRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            app_service_groups: Optional[TrafficCaptureRulesAppServiceGroupsArgs] = None,
            default_rule: Optional[bool] = None,
            departments: Optional[TrafficCaptureRulesDepartmentsArgs] = None,
            description: Optional[str] = None,
            dest_addresses: Optional[Sequence[str]] = None,
            dest_countries: Optional[Sequence[str]] = None,
            dest_ip_categories: Optional[Sequence[str]] = None,
            dest_ip_groups: Optional[TrafficCaptureRulesDestIpGroupsArgs] = None,
            device_groups: Optional[TrafficCaptureRulesDeviceGroupsArgs] = None,
            device_trust_levels: Optional[Sequence[str]] = None,
            devices: Optional[TrafficCaptureRulesDevicesArgs] = None,
            groups: Optional[TrafficCaptureRulesGroupsArgs] = None,
            labels: Optional[TrafficCaptureRulesLabelsArgs] = None,
            location_groups: Optional[TrafficCaptureRulesLocationGroupsArgs] = None,
            locations: Optional[TrafficCaptureRulesLocationsArgs] = None,
            name: Optional[str] = None,
            nw_application_groups: Optional[TrafficCaptureRulesNwApplicationGroupsArgs] = None,
            nw_applications: Optional[Sequence[str]] = None,
            nw_service_groups: Optional[TrafficCaptureRulesNwServiceGroupsArgs] = None,
            nw_services: Optional[TrafficCaptureRulesNwServicesArgs] = None,
            order: Optional[int] = None,
            predefined: Optional[bool] = None,
            rank: Optional[int] = None,
            rule_id: Optional[int] = None,
            source_countries: Optional[Sequence[str]] = None,
            src_ip_groups: Optional[TrafficCaptureRulesSrcIpGroupsArgs] = None,
            src_ips: Optional[Sequence[str]] = None,
            state: Optional[str] = None,
            time_windows: Optional[TrafficCaptureRulesTimeWindowsArgs] = None,
            txn_sampling: Optional[str] = None,
            txn_size_limit: Optional[str] = None,
            users: Optional[TrafficCaptureRulesUsersArgs] = None,
            workload_groups: Optional[Sequence[TrafficCaptureRulesWorkloadGroupArgs]] = None) -> TrafficCaptureRules
    func GetTrafficCaptureRules(ctx *Context, name string, id IDInput, state *TrafficCaptureRulesState, opts ...ResourceOption) (*TrafficCaptureRules, error)
    public static TrafficCaptureRules Get(string name, Input<string> id, TrafficCaptureRulesState? state, CustomResourceOptions? opts = null)
    public static TrafficCaptureRules get(String name, Output<String> id, TrafficCaptureRulesState state, CustomResourceOptions options)
    resources:  _:    type: zia:TrafficCaptureRules    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    The action to be enforced when the traffic matches the rule criteria
    AppServiceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesAppServiceGroups
    list of application service groups
    DefaultRule bool
    If set to true, the default rule is applied
    Departments zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    Description string
    Additional information about the rule
    DestAddresses List<string>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    DestCountries List<string>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    DestIpCategories List<string>
    DestIpGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    DeviceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels List<string>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    Groups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    Labels zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    LocationGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLocationGroups
    list of locations groups
    Locations zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    Name string
    Name of the Firewall Filtering policy rule
    NwApplicationGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    NwApplications List<string>
    NwServiceGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    NwServices zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesNwServices
    list of nw services
    Order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    Predefined bool
    If set to true, a predefined rule is applied
    Rank int
    Admin rank of the Firewall Filtering policy rule
    RuleId int
    SourceCountries List<string>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    SrcIpGroups zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    SrcIps List<string>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    State string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    TimeWindows zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    TxnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    TxnSizeLimit string
    The maximum size of traffic to capture per connection
    Users zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesUsers
    list of users for which rule must be applied
    WorkloadGroups List<zscaler.PulumiPackage.Zia.Inputs.TrafficCaptureRulesWorkloadGroup>
    The list of preconfigured workload groups to which the policy must be applied
    Action string
    The action to be enforced when the traffic matches the rule criteria
    AppServiceGroups TrafficCaptureRulesAppServiceGroupsArgs
    list of application service groups
    DefaultRule bool
    If set to true, the default rule is applied
    Departments TrafficCaptureRulesDepartmentsArgs
    list of departments for which rule must be applied
    Description string
    Additional information about the rule
    DestAddresses []string
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    DestCountries []string
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    DestIpCategories []string
    DestIpGroups TrafficCaptureRulesDestIpGroupsArgs
    list of destination ip groups
    DeviceGroups TrafficCaptureRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    DeviceTrustLevels []string
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    Devices TrafficCaptureRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    Groups TrafficCaptureRulesGroupsArgs
    list of groups for which rule must be applied
    Labels TrafficCaptureRulesLabelsArgs
    list of Labels that are applicable to the rule.
    LocationGroups TrafficCaptureRulesLocationGroupsArgs
    list of locations groups
    Locations TrafficCaptureRulesLocationsArgs
    list of locations for which rule must be applied
    Name string
    Name of the Firewall Filtering policy rule
    NwApplicationGroups TrafficCaptureRulesNwApplicationGroupsArgs
    list of nw application groups
    NwApplications []string
    NwServiceGroups TrafficCaptureRulesNwServiceGroupsArgs
    list of nw service groups
    NwServices TrafficCaptureRulesNwServicesArgs
    list of nw services
    Order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    Predefined bool
    If set to true, a predefined rule is applied
    Rank int
    Admin rank of the Firewall Filtering policy rule
    RuleId int
    SourceCountries []string
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    SrcIpGroups TrafficCaptureRulesSrcIpGroupsArgs
    list of source ip groups
    SrcIps []string
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    State string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    TimeWindows TrafficCaptureRulesTimeWindowsArgs
    The time interval in which the Firewall Filtering policy rule applies
    TxnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    TxnSizeLimit string
    The maximum size of traffic to capture per connection
    Users TrafficCaptureRulesUsersArgs
    list of users for which rule must be applied
    WorkloadGroups []TrafficCaptureRulesWorkloadGroupArgs
    The list of preconfigured workload groups to which the policy must be applied
    action String
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups TrafficCaptureRulesAppServiceGroups
    list of application service groups
    defaultRule Boolean
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    description String
    Additional information about the rule
    destAddresses List<String>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories List<String>
    destIpGroups TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    deviceGroups TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups TrafficCaptureRulesLocationGroups
    list of locations groups
    locations TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    name String
    Name of the Firewall Filtering policy rule
    nwApplicationGroups TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    nwApplications List<String>
    nwServiceGroups TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    nwServices TrafficCaptureRulesNwServices
    list of nw services
    order Integer
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    predefined Boolean
    If set to true, a predefined rule is applied
    rank Integer
    Admin rank of the Firewall Filtering policy rule
    ruleId Integer
    sourceCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    srcIps List<String>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state String
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling String
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit String
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsers
    list of users for which rule must be applied
    workloadGroups List<TrafficCaptureRulesWorkloadGroup>
    The list of preconfigured workload groups to which the policy must be applied
    action string
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups TrafficCaptureRulesAppServiceGroups
    list of application service groups
    defaultRule boolean
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartments
    list of departments for which rule must be applied
    description string
    Additional information about the rule
    destAddresses string[]
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries string[]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories string[]
    destIpGroups TrafficCaptureRulesDestIpGroups
    list of destination ip groups
    deviceGroups TrafficCaptureRulesDeviceGroups
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels string[]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevices
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroups
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabels
    list of Labels that are applicable to the rule.
    locationGroups TrafficCaptureRulesLocationGroups
    list of locations groups
    locations TrafficCaptureRulesLocations
    list of locations for which rule must be applied
    name string
    Name of the Firewall Filtering policy rule
    nwApplicationGroups TrafficCaptureRulesNwApplicationGroups
    list of nw application groups
    nwApplications string[]
    nwServiceGroups TrafficCaptureRulesNwServiceGroups
    list of nw service groups
    nwServices TrafficCaptureRulesNwServices
    list of nw services
    order number
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    predefined boolean
    If set to true, a predefined rule is applied
    rank number
    Admin rank of the Firewall Filtering policy rule
    ruleId number
    sourceCountries string[]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups TrafficCaptureRulesSrcIpGroups
    list of source ip groups
    srcIps string[]
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state string
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows TrafficCaptureRulesTimeWindows
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling string
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit string
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsers
    list of users for which rule must be applied
    workloadGroups TrafficCaptureRulesWorkloadGroup[]
    The list of preconfigured workload groups to which the policy must be applied
    action str
    The action to be enforced when the traffic matches the rule criteria
    app_service_groups TrafficCaptureRulesAppServiceGroupsArgs
    list of application service groups
    default_rule bool
    If set to true, the default rule is applied
    departments TrafficCaptureRulesDepartmentsArgs
    list of departments for which rule must be applied
    description str
    Additional information about the rule
    dest_addresses Sequence[str]
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    dest_countries Sequence[str]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    dest_ip_categories Sequence[str]
    dest_ip_groups TrafficCaptureRulesDestIpGroupsArgs
    list of destination ip groups
    device_groups TrafficCaptureRulesDeviceGroupsArgs
    This field is applicable for devices that are managed using Zscaler Client Connector.
    device_trust_levels Sequence[str]
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices TrafficCaptureRulesDevicesArgs
    Name-ID pairs of devices for which rule must be applied.
    groups TrafficCaptureRulesGroupsArgs
    list of groups for which rule must be applied
    labels TrafficCaptureRulesLabelsArgs
    list of Labels that are applicable to the rule.
    location_groups TrafficCaptureRulesLocationGroupsArgs
    list of locations groups
    locations TrafficCaptureRulesLocationsArgs
    list of locations for which rule must be applied
    name str
    Name of the Firewall Filtering policy rule
    nw_application_groups TrafficCaptureRulesNwApplicationGroupsArgs
    list of nw application groups
    nw_applications Sequence[str]
    nw_service_groups TrafficCaptureRulesNwServiceGroupsArgs
    list of nw service groups
    nw_services TrafficCaptureRulesNwServicesArgs
    list of nw services
    order int
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    predefined bool
    If set to true, a predefined rule is applied
    rank int
    Admin rank of the Firewall Filtering policy rule
    rule_id int
    source_countries Sequence[str]
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    src_ip_groups TrafficCaptureRulesSrcIpGroupsArgs
    list of source ip groups
    src_ips Sequence[str]
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state str
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    time_windows TrafficCaptureRulesTimeWindowsArgs
    The time interval in which the Firewall Filtering policy rule applies
    txn_sampling str
    The percentage of connections sampled for capturing each time the rule is triggered
    txn_size_limit str
    The maximum size of traffic to capture per connection
    users TrafficCaptureRulesUsersArgs
    list of users for which rule must be applied
    workload_groups Sequence[TrafficCaptureRulesWorkloadGroupArgs]
    The list of preconfigured workload groups to which the policy must be applied
    action String
    The action to be enforced when the traffic matches the rule criteria
    appServiceGroups Property Map
    list of application service groups
    defaultRule Boolean
    If set to true, the default rule is applied
    departments Property Map
    list of departments for which rule must be applied
    description String
    Additional information about the rule
    destAddresses List<String>
    Destination addresses. Supports IPv4, FQDNs, or wildcard FQDNs
    destCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    destIpCategories List<String>
    destIpGroups Property Map
    list of destination ip groups
    deviceGroups Property Map
    This field is applicable for devices that are managed using Zscaler Client Connector.
    deviceTrustLevels List<String>
    List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
    devices Property Map
    Name-ID pairs of devices for which rule must be applied.
    groups Property Map
    list of groups for which rule must be applied
    labels Property Map
    list of Labels that are applicable to the rule.
    locationGroups Property Map
    list of locations groups
    locations Property Map
    list of locations for which rule must be applied
    name String
    Name of the Firewall Filtering policy rule
    nwApplicationGroups Property Map
    list of nw application groups
    nwApplications List<String>
    nwServiceGroups Property Map
    list of nw service groups
    nwServices Property Map
    list of nw services
    order Number
    Rule order number. If omitted, the rule will be added to the end of the rule set.
    predefined Boolean
    If set to true, a predefined rule is applied
    rank Number
    Admin rank of the Firewall Filtering policy rule
    ruleId Number
    sourceCountries List<String>
    Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination countries.
    srcIpGroups Property Map
    list of source ip groups
    srcIps List<String>
    User-defined source IP addresses for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address.
    state String
    Determines whether the Firewall Filtering policy rule is enabled or disabled
    timeWindows Property Map
    The time interval in which the Firewall Filtering policy rule applies
    txnSampling String
    The percentage of connections sampled for capturing each time the rule is triggered
    txnSizeLimit String
    The maximum size of traffic to capture per connection
    users Property Map
    list of users for which rule must be applied
    workloadGroups List<Property Map>
    The list of preconfigured workload groups to which the policy must be applied

    Supporting Types

    TrafficCaptureRulesAppServiceGroups, TrafficCaptureRulesAppServiceGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesDepartments, TrafficCaptureRulesDepartmentsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesDestIpGroups, TrafficCaptureRulesDestIpGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesDeviceGroups, TrafficCaptureRulesDeviceGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesDevices, TrafficCaptureRulesDevicesArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesGroups, TrafficCaptureRulesGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesLabels, TrafficCaptureRulesLabelsArgs

    Id int
    Id int
    id Integer
    id number
    id int
    id Number

    TrafficCaptureRulesLocationGroups, TrafficCaptureRulesLocationGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesLocations, TrafficCaptureRulesLocationsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesNwApplicationGroups, TrafficCaptureRulesNwApplicationGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesNwServiceGroups, TrafficCaptureRulesNwServiceGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesNwServices, TrafficCaptureRulesNwServicesArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesSrcIpGroups, TrafficCaptureRulesSrcIpGroupsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesTimeWindows, TrafficCaptureRulesTimeWindowsArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesUsers, TrafficCaptureRulesUsersArgs

    Ids List<int>
    Ids []int
    ids List<Integer>
    ids number[]
    ids Sequence[int]
    ids List<Number>

    TrafficCaptureRulesWorkloadGroup, TrafficCaptureRulesWorkloadGroupArgs

    Id int
    The unique identifier for the resource.
    Name string
    The name of the resource.
    Id int
    The unique identifier for the resource.
    Name string
    The name of the resource.
    id Integer
    The unique identifier for the resource.
    name String
    The name of the resource.
    id number
    The unique identifier for the resource.
    name string
    The name of the resource.
    id int
    The unique identifier for the resource.
    name str
    The name of the resource.
    id Number
    The unique identifier for the resource.
    name String
    The name of the resource.

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language. Visit

    zia_traffic_capture_rules can be imported by using <RULE ID> or <RULE NAME> as the import ID.

    For example:

    $ pulumi import zia:index/trafficCaptureRules:TrafficCaptureRules example <rule_id>
    

    or

    $ pulumi import zia:index/trafficCaptureRules:TrafficCaptureRules example <rule_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
      Meet Neo: Your AI Platform Teammate