1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyTunnelInspectionRule
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyTunnelInspectionRule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

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

    > 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)
    }
    public static CompletableFuture<GetNetworkFirewallPolicyTunnelInspectionRuleResult> getNetworkFirewallPolicyTunnelInspectionRule(GetNetworkFirewallPolicyTunnelInspectionRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:NetworkFirewall/getNetworkFirewallPolicyTunnelInspectionRule:getNetworkFirewallPolicyTunnelInspectionRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    TunnelInspectionRuleName string
    Unique identifier for Tunnel Inspection Rules in the network firewall policy.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    TunnelInspectionRuleName string
    Unique identifier for Tunnel Inspection Rules in the network firewall policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    tunnelInspectionRuleName String
    Unique identifier for Tunnel Inspection Rules in the network firewall policy.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    tunnelInspectionRuleName string
    Unique identifier for Tunnel Inspection Rules in the network firewall policy.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    tunnel_inspection_rule_name str
    Unique identifier for Tunnel Inspection Rules in the network firewall policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    tunnelInspectionRuleName 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 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

    MustReturnTrafficToSource bool
    Return scanned VXLAN tunnel traffic to source.
    MustReturnTrafficToSource bool
    Return scanned VXLAN tunnel traffic to source.
    mustReturnTrafficToSource Boolean
    Return scanned VXLAN tunnel traffic to source.
    mustReturnTrafficToSource boolean
    Return scanned VXLAN tunnel traffic to source.
    must_return_traffic_to_source bool
    Return scanned VXLAN tunnel traffic to source.
    mustReturnTrafficToSource 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi