1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyTunnelInspectionRule
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testNetworkFirewallPolicyTunnelInspectionRule:
    fn::invoke:
      function: oci:NetworkFirewall:getNetworkFirewallPolicyTunnelInspectionRule
      arguments:
        networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
        tunnelInspectionRuleName: ${testRule.name}
Copy

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>
Copy
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]
Copy
func GetNetworkFirewallPolicyTunnelInspectionRule(ctx *Context, args *GetNetworkFirewallPolicyTunnelInspectionRuleArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyTunnelInspectionRuleResult, error)
func GetNetworkFirewallPolicyTunnelInspectionRuleOutput(ctx *Context, args *GetNetworkFirewallPolicyTunnelInspectionRuleOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyTunnelInspectionRuleResultOutput
Copy

> Note: This function is named GetNetworkFirewallPolicyTunnelInspectionRule 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)
}
Copy
public static CompletableFuture<GetNetworkFirewallPolicyTunnelInspectionRuleResult> getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyTunnelInspectionRuleResult> getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:NetworkFirewall/getNetworkFirewallPolicyTunnelInspectionRule:getNetworkFirewallPolicyTunnelInspectionRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
TunnelInspectionRuleName This property is required. string
Unique identifier for Tunnel Inspection Rules in the network firewall policy.
NetworkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
TunnelInspectionRuleName This property is required. string
Unique identifier for Tunnel Inspection Rules in the network firewall policy.
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
tunnelInspectionRuleName This property is required. String
Unique identifier for Tunnel Inspection Rules in the network firewall policy.
networkFirewallPolicyId This property is required. string
Unique Network Firewall Policy identifier
tunnelInspectionRuleName This property is required. string
Unique identifier for Tunnel Inspection Rules in the network firewall policy.
network_firewall_policy_id This property is required. str
Unique Network Firewall Policy identifier
tunnel_inspection_rule_name This property is required. str
Unique identifier for Tunnel Inspection Rules in the network firewall policy.
networkFirewallPolicyId This property is required. String
Unique Network Firewall Policy identifier
tunnelInspectionRuleName This property is required. String
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<GetNetworkFirewallPolicyTunnelInspectionRuleCondition>
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.
NetworkFirewallPolicyId string
ParentResourceId string
OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
Positions List<GetNetworkFirewallPolicyTunnelInspectionRulePosition>
An object which defines the position of the rule.
PriorityOrder string
The priority order in which this rule should be evaluated
Profiles List<GetNetworkFirewallPolicyTunnelInspectionRuleProfile>
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.
TunnelInspectionRuleName string
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 []GetNetworkFirewallPolicyTunnelInspectionRuleCondition
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.
NetworkFirewallPolicyId string
ParentResourceId string
OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
Positions []GetNetworkFirewallPolicyTunnelInspectionRulePosition
An object which defines the position of the rule.
PriorityOrder string
The priority order in which this rule should be evaluated
Profiles []GetNetworkFirewallPolicyTunnelInspectionRuleProfile
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.
TunnelInspectionRuleName string
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<GetPolicyTunnelInspectionRuleCondition>
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.
networkFirewallPolicyId String
parentResourceId String
OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
positions List<GetPolicyTunnelInspectionRulePosition>
An object which defines the position of the rule.
priorityOrder String
The priority order in which this rule should be evaluated
profiles List<GetPolicyTunnelInspectionRuleProfile>
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.
tunnelInspectionRuleName String
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 GetNetworkFirewallPolicyTunnelInspectionRuleCondition[]
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.
networkFirewallPolicyId string
parentResourceId string
OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
positions GetNetworkFirewallPolicyTunnelInspectionRulePosition[]
An object which defines the position of the rule.
priorityOrder string
The priority order in which this rule should be evaluated
profiles GetNetworkFirewallPolicyTunnelInspectionRuleProfile[]
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.
tunnelInspectionRuleName string
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[networkfirewall.GetNetworkFirewallPolicyTunnelInspectionRuleCondition]
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_policy_id str
parent_resource_id str
OCID of the Network Firewall Policy this Tunnel Inspection Rule belongs to.
positions Sequence[networkfirewall.GetNetworkFirewallPolicyTunnelInspectionRulePosition]
An object which defines the position of the rule.
priority_order str
The priority order in which this rule should be evaluated
profiles Sequence[networkfirewall.GetNetworkFirewallPolicyTunnelInspectionRuleProfile]
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_rule_name str
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.
networkFirewallPolicyId String
parentResourceId String
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.
tunnelInspectionRuleName String

Supporting Types

GetNetworkFirewallPolicyTunnelInspectionRuleCondition

DestinationAddresses This property is required. List<string>
An array of address list names to be evaluated against the traffic destination address.
SourceAddresses This property is required. List<string>
An array of address list names to be evaluated against the traffic source address.
DestinationAddresses This property is required. []string
An array of address list names to be evaluated against the traffic destination address.
SourceAddresses This property is required. []string
An array of address list names to be evaluated against the traffic source address.
destinationAddresses This property is required. List<String>
An array of address list names to be evaluated against the traffic destination address.
sourceAddresses This property is required. List<String>
An array of address list names to be evaluated against the traffic source address.
destinationAddresses This property is required. string[]
An array of address list names to be evaluated against the traffic destination address.
sourceAddresses This property is required. string[]
An array of address list names to be evaluated against the traffic source address.
destination_addresses This property is required. Sequence[str]
An array of address list names to be evaluated against the traffic destination address.
source_addresses This property is required. Sequence[str]
An array of address list names to be evaluated against the traffic source address.
destinationAddresses This property is required. List<String>
An array of address list names to be evaluated against the traffic destination address.
sourceAddresses This property is required. List<String>
An array of address list names to be evaluated against the traffic source address.

GetNetworkFirewallPolicyTunnelInspectionRulePosition

AfterRule This property is required. string
Identifier for rule after which this rule lies.
BeforeRule This property is required. string
Identifier for rule before which this rule lies.
AfterRule This property is required. string
Identifier for rule after which this rule lies.
BeforeRule This property is required. string
Identifier for rule before which this rule lies.
afterRule This property is required. String
Identifier for rule after which this rule lies.
beforeRule This property is required. String
Identifier for rule before which this rule lies.
afterRule This property is required. string
Identifier for rule after which this rule lies.
beforeRule This property is required. string
Identifier for rule before which this rule lies.
after_rule This property is required. str
Identifier for rule after which this rule lies.
before_rule This property is required. str
Identifier for rule before which this rule lies.
afterRule This property is required. String
Identifier for rule after which this rule lies.
beforeRule This property is required. String
Identifier for rule before which this rule lies.

GetNetworkFirewallPolicyTunnelInspectionRuleProfile

MustReturnTrafficToSource This property is required. bool
Return scanned VXLAN tunnel traffic to source.
MustReturnTrafficToSource This property is required. bool
Return scanned VXLAN tunnel traffic to source.
mustReturnTrafficToSource This property is required. Boolean
Return scanned VXLAN tunnel traffic to source.
mustReturnTrafficToSource This property is required. boolean
Return scanned VXLAN tunnel traffic to source.
must_return_traffic_to_source This property is required. bool
Return scanned VXLAN tunnel traffic to source.
mustReturnTrafficToSource This property is required. Boolean
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 oci Terraform Provider.