Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.NetworkFirewall.getNetworkFirewallPolicyTunnelInspectionRule
Explore with Pulumi AI
This data source provides details about a specific Network Firewall Policy Tunnel Inspection Rule resource in Oracle Cloud Infrastructure Network Firewall service.
Get tunnel inspection rule by the given name in the context of network firewall policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewallPolicyTunnelInspectionRule = oci.NetworkFirewall.getNetworkFirewallPolicyTunnelInspectionRule({
    networkFirewallPolicyId: testNetworkFirewallPolicy.id,
    tunnelInspectionRuleName: testRule.name,
});
import pulumi
import pulumi_oci as oci
test_network_firewall_policy_tunnel_inspection_rule = oci.NetworkFirewall.get_network_firewall_policy_tunnel_inspection_rule(network_firewall_policy_id=test_network_firewall_policy["id"],
    tunnel_inspection_rule_name=test_rule["name"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/networkfirewall"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkfirewall.GetNetworkFirewallPolicyTunnelInspectionRule(ctx, &networkfirewall.GetNetworkFirewallPolicyTunnelInspectionRuleArgs{
			NetworkFirewallPolicyId:  testNetworkFirewallPolicy.Id,
			TunnelInspectionRuleName: testRule.Name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testNetworkFirewallPolicyTunnelInspectionRule = Oci.NetworkFirewall.GetNetworkFirewallPolicyTunnelInspectionRule.Invoke(new()
    {
        NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
        TunnelInspectionRuleName = testRule.Name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallFunctions;
import com.pulumi.oci.NetworkFirewall.inputs.GetNetworkFirewallPolicyTunnelInspectionRuleArgs;
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) {
        final var testNetworkFirewallPolicyTunnelInspectionRule = NetworkFirewallFunctions.getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs.builder()
            .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
            .tunnelInspectionRuleName(testRule.name())
            .build());
    }
}
variables:
  testNetworkFirewallPolicyTunnelInspectionRule:
    fn::invoke:
      function: oci:NetworkFirewall:getNetworkFirewallPolicyTunnelInspectionRule
      arguments:
        networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
        tunnelInspectionRuleName: ${testRule.name}
Using getNetworkFirewallPolicyTunnelInspectionRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkFirewallPolicyTunnelInspectionRule(args: GetNetworkFirewallPolicyTunnelInspectionRuleArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyTunnelInspectionRuleResult>
function getNetworkFirewallPolicyTunnelInspectionRuleOutput(args: GetNetworkFirewallPolicyTunnelInspectionRuleOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyTunnelInspectionRuleResult>def get_network_firewall_policy_tunnel_inspection_rule(network_firewall_policy_id: Optional[str] = None,
                                                       tunnel_inspection_rule_name: Optional[str] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyTunnelInspectionRuleResult
def get_network_firewall_policy_tunnel_inspection_rule_output(network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                                       tunnel_inspection_rule_name: Optional[pulumi.Input[str]] = None,
                                                       opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyTunnelInspectionRuleResult]func LookupNetworkFirewallPolicyTunnelInspectionRule(ctx *Context, args *LookupNetworkFirewallPolicyTunnelInspectionRuleArgs, opts ...InvokeOption) (*LookupNetworkFirewallPolicyTunnelInspectionRuleResult, error)
func LookupNetworkFirewallPolicyTunnelInspectionRuleOutput(ctx *Context, args *LookupNetworkFirewallPolicyTunnelInspectionRuleOutputArgs, opts ...InvokeOption) LookupNetworkFirewallPolicyTunnelInspectionRuleResultOutput> Note: This function is named LookupNetworkFirewallPolicyTunnelInspectionRule in the Go SDK.
public static class GetNetworkFirewallPolicyTunnelInspectionRule 
{
    public static Task<GetNetworkFirewallPolicyTunnelInspectionRuleResult> InvokeAsync(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkFirewallPolicyTunnelInspectionRuleResult> Invoke(GetNetworkFirewallPolicyTunnelInspectionRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkFirewallPolicyTunnelInspectionRuleResult> getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyTunnelInspectionRuleResult> getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions options)
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyTunnelInspectionRule:getNetworkFirewallPolicyTunnelInspectionRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- TunnelInspection stringRule Name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
- NetworkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- TunnelInspection stringRule Name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- tunnelInspection StringRule Name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
- networkFirewall stringPolicy Id 
- Unique Network Firewall Policy identifier
- tunnelInspection stringRule Name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
- network_firewall_ strpolicy_ id 
- Unique Network Firewall Policy identifier
- tunnel_inspection_ strrule_ name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
- networkFirewall StringPolicy Id 
- Unique Network Firewall Policy identifier
- tunnelInspection StringRule Name 
- Unique identifier for Tunnel Inspection Rules in the network firewall policy.
getNetworkFirewallPolicyTunnelInspectionRule Result
The following output properties are available:
- Action string
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- Conditions
List<GetNetwork Firewall Policy Tunnel Inspection Rule Condition> 
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- Id string
- Name string
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- NetworkFirewall stringPolicy Id 
- ParentResource stringId 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- Positions
List<GetNetwork Firewall Policy Tunnel Inspection Rule Position> 
- An object which defines the position of the rule.
- PriorityOrder string
- The priority order in which this rule should be evaluated
- Profiles
List<GetNetwork Firewall Policy Tunnel Inspection Rule Profile> 
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- Protocol string
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- TunnelInspection stringRule Name 
- Action string
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- Conditions
[]GetNetwork Firewall Policy Tunnel Inspection Rule Condition 
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- Id string
- Name string
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- NetworkFirewall stringPolicy Id 
- ParentResource stringId 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- Positions
[]GetNetwork Firewall Policy Tunnel Inspection Rule Position 
- An object which defines the position of the rule.
- PriorityOrder string
- The priority order in which this rule should be evaluated
- Profiles
[]GetNetwork Firewall Policy Tunnel Inspection Rule Profile 
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- Protocol string
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- TunnelInspection stringRule Name 
- action String
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- conditions
List<GetPolicy Tunnel Inspection Rule Condition> 
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- id String
- name String
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- networkFirewall StringPolicy Id 
- parentResource StringId 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- positions
List<GetPolicy Tunnel Inspection Rule Position> 
- An object which defines the position of the rule.
- priorityOrder String
- The priority order in which this rule should be evaluated
- profiles
List<GetPolicy Tunnel Inspection Rule Profile> 
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- protocol String
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- tunnelInspection StringRule Name 
- action string
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- conditions
GetNetwork Firewall Policy Tunnel Inspection Rule Condition[] 
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- id string
- name string
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- networkFirewall stringPolicy Id 
- parentResource stringId 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- positions
GetNetwork Firewall Policy Tunnel Inspection Rule Position[] 
- An object which defines the position of the rule.
- priorityOrder string
- The priority order in which this rule should be evaluated
- profiles
GetNetwork Firewall Policy Tunnel Inspection Rule Profile[] 
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- protocol string
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- tunnelInspection stringRule Name 
- action str
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- conditions
Sequence[GetNetwork Firewall Policy Tunnel Inspection Rule Condition] 
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- id str
- name str
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- network_firewall_ strpolicy_ id 
- parent_resource_ strid 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- positions
Sequence[GetNetwork Firewall Policy Tunnel Inspection Rule Position] 
- An object which defines the position of the rule.
- priority_order str
- The priority order in which this rule should be evaluated
- profiles
Sequence[GetNetwork Firewall Policy Tunnel Inspection Rule Profile] 
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- protocol str
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- tunnel_inspection_ strrule_ name 
- action String
- Types of Inspect Action on the Traffic flow.- INSPECT - Inspect the traffic.
- INSPECT_AND_CAPTURE_LOG - Inspect and capture logs for the traffic.
 
- conditions List<Property Map>
- Criteria to evaluate against incoming network traffic. A match occurs when at least one item in the array associated with each specified property corresponds with the relevant aspect of the traffic.
- id String
- name String
- Name for the Tunnel Inspection Rule, must be unique within the policy.
- networkFirewall StringPolicy Id 
- parentResource StringId 
- OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
- positions List<Property Map>
- An object which defines the position of the rule.
- priorityOrder String
- The priority order in which this rule should be evaluated
- profiles List<Property Map>
- Vxlan Inspect profile used in Vxlan Tunnel Inspection Rules.
- protocol String
- Types of Tunnel Inspection Protocol to be applied on the traffic.- VXLAN - VXLAN Tunnel Inspection Protocol will be applied on the traffic.
 
- tunnelInspection StringRule Name 
Supporting Types
GetNetworkFirewallPolicyTunnelInspectionRuleCondition       
- DestinationAddresses List<string>
- An array of address list names to be evaluated against the traffic destination address.
- SourceAddresses List<string>
- An array of address list names to be evaluated against the traffic source address.
- DestinationAddresses []string
- An array of address list names to be evaluated against the traffic destination address.
- SourceAddresses []string
- An array of address list names to be evaluated against the traffic source address.
- destinationAddresses List<String>
- An array of address list names to be evaluated against the traffic destination address.
- sourceAddresses List<String>
- An array of address list names to be evaluated against the traffic source address.
- destinationAddresses string[]
- An array of address list names to be evaluated against the traffic destination address.
- sourceAddresses string[]
- An array of address list names to be evaluated against the traffic source address.
- destination_addresses Sequence[str]
- An array of address list names to be evaluated against the traffic destination address.
- source_addresses Sequence[str]
- An array of address list names to be evaluated against the traffic source address.
- destinationAddresses List<String>
- An array of address list names to be evaluated against the traffic destination address.
- sourceAddresses List<String>
- An array of address list names to be evaluated against the traffic source address.
GetNetworkFirewallPolicyTunnelInspectionRulePosition       
- AfterRule string
- Identifier for rule after which this rule lies.
- BeforeRule string
- Identifier for rule before which this rule lies.
- AfterRule string
- Identifier for rule after which this rule lies.
- BeforeRule string
- Identifier for rule before which this rule lies.
- afterRule String
- Identifier for rule after which this rule lies.
- beforeRule String
- Identifier for rule before which this rule lies.
- afterRule string
- Identifier for rule after which this rule lies.
- beforeRule string
- Identifier for rule before which this rule lies.
- after_rule str
- Identifier for rule after which this rule lies.
- before_rule str
- Identifier for rule before which this rule lies.
- afterRule String
- Identifier for rule after which this rule lies.
- beforeRule String
- Identifier for rule before which this rule lies.
GetNetworkFirewallPolicyTunnelInspectionRuleProfile       
- MustReturn boolTraffic To Source 
- Return scanned VXLAN tunnel traffic to source.
- MustReturn boolTraffic To Source 
- Return scanned VXLAN tunnel traffic to source.
- mustReturn BooleanTraffic To Source 
- Return scanned VXLAN tunnel traffic to source.
- mustReturn booleanTraffic To Source 
- Return scanned VXLAN tunnel traffic to source.
- must_return_ booltraffic_ to_ source 
- Return scanned VXLAN tunnel traffic to source.
- mustReturn BooleanTraffic To Source 
- Return scanned VXLAN tunnel traffic to source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.