Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
This data source provides the list of Network Firewall Policy Nat Rules in Oracle Cloud Infrastructure Network Firewall service.
Returns a list of NAT Rules for the Network Firewall Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewallPolicyNatRules = oci.NetworkFirewall.getNetworkFirewallPolicyNatRules({
networkFirewallPolicyId: testNetworkFirewallPolicy.id,
displayName: networkFirewallPolicyNatRuleDisplayName,
natRulePriorityOrder: networkFirewallPolicyNatRuleNatRulePriorityOrder,
});
import pulumi
import pulumi_oci as oci
test_network_firewall_policy_nat_rules = oci.NetworkFirewall.get_network_firewall_policy_nat_rules(network_firewall_policy_id=test_network_firewall_policy["id"],
display_name=network_firewall_policy_nat_rule_display_name,
nat_rule_priority_order=network_firewall_policy_nat_rule_nat_rule_priority_order)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/networkfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkfirewall.GetNetworkFirewallPolicyNatRules(ctx, &networkfirewall.GetNetworkFirewallPolicyNatRulesArgs{
NetworkFirewallPolicyId: testNetworkFirewallPolicy.Id,
DisplayName: pulumi.StringRef(networkFirewallPolicyNatRuleDisplayName),
NatRulePriorityOrder: pulumi.IntRef(networkFirewallPolicyNatRuleNatRulePriorityOrder),
}, 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 testNetworkFirewallPolicyNatRules = Oci.NetworkFirewall.GetNetworkFirewallPolicyNatRules.Invoke(new()
{
NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
DisplayName = networkFirewallPolicyNatRuleDisplayName,
NatRulePriorityOrder = networkFirewallPolicyNatRuleNatRulePriorityOrder,
});
});
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.GetNetworkFirewallPolicyNatRulesArgs;
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 testNetworkFirewallPolicyNatRules = NetworkFirewallFunctions.getNetworkFirewallPolicyNatRules(GetNetworkFirewallPolicyNatRulesArgs.builder()
.networkFirewallPolicyId(testNetworkFirewallPolicy.id())
.displayName(networkFirewallPolicyNatRuleDisplayName)
.natRulePriorityOrder(networkFirewallPolicyNatRuleNatRulePriorityOrder)
.build());
}
}
variables:
testNetworkFirewallPolicyNatRules:
fn::invoke:
function: oci:NetworkFirewall:getNetworkFirewallPolicyNatRules
arguments:
networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
displayName: ${networkFirewallPolicyNatRuleDisplayName}
natRulePriorityOrder: ${networkFirewallPolicyNatRuleNatRulePriorityOrder}
Using getNetworkFirewallPolicyNatRules
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 getNetworkFirewallPolicyNatRules(args: GetNetworkFirewallPolicyNatRulesArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyNatRulesResult>
function getNetworkFirewallPolicyNatRulesOutput(args: GetNetworkFirewallPolicyNatRulesOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyNatRulesResult>def get_network_firewall_policy_nat_rules(display_name: Optional[str] = None,
filters: Optional[Sequence[GetNetworkFirewallPolicyNatRulesFilter]] = None,
nat_rule_priority_order: Optional[int] = None,
network_firewall_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyNatRulesResult
def get_network_firewall_policy_nat_rules_output(display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkFirewallPolicyNatRulesFilterArgs]]]] = None,
nat_rule_priority_order: Optional[pulumi.Input[int]] = None,
network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyNatRulesResult]func GetNetworkFirewallPolicyNatRules(ctx *Context, args *GetNetworkFirewallPolicyNatRulesArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyNatRulesResult, error)
func GetNetworkFirewallPolicyNatRulesOutput(ctx *Context, args *GetNetworkFirewallPolicyNatRulesOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyNatRulesResultOutput> Note: This function is named GetNetworkFirewallPolicyNatRules in the Go SDK.
public static class GetNetworkFirewallPolicyNatRules
{
public static Task<GetNetworkFirewallPolicyNatRulesResult> InvokeAsync(GetNetworkFirewallPolicyNatRulesArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkFirewallPolicyNatRulesResult> Invoke(GetNetworkFirewallPolicyNatRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkFirewallPolicyNatRulesResult> getNetworkFirewallPolicyNatRules(GetNetworkFirewallPolicyNatRulesArgs args, InvokeOptions options)
public static Output<GetNetworkFirewallPolicyNatRulesResult> getNetworkFirewallPolicyNatRules(GetNetworkFirewallPolicyNatRulesArgs args, InvokeOptions options)
fn::invoke:
function: oci:NetworkFirewall/getNetworkFirewallPolicyNatRules:getNetworkFirewallPolicyNatRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Network Firewall Policy Nat Rules Filter> - Nat
Rule intPriority Order - Unique priority order for NAT Rules in the network firewall policy.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Network Firewall Policy Nat Rules Filter - Nat
Rule intPriority Order - Unique priority order for NAT Rules in the network firewall policy.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Policy Nat Rules Filter> - nat
Rule IntegerPriority Order - Unique priority order for NAT Rules in the network firewall policy.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Network Firewall Policy Nat Rules Filter[] - nat
Rule numberPriority Order - Unique priority order for NAT Rules in the network firewall policy.
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Network Firewall Policy Nat Rules Filter] - nat_
rule_ intpriority_ order - Unique priority order for NAT Rules in the network firewall policy.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- nat
Rule NumberPriority Order - Unique priority order for NAT Rules in the network firewall policy.
getNetworkFirewallPolicyNatRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Nat
Rule List<GetCollections Network Firewall Policy Nat Rules Nat Rule Collection> - The list of nat_rule_collection.
- Network
Firewall stringPolicy Id - Display
Name string - Filters
List<Get
Network Firewall Policy Nat Rules Filter> - Nat
Rule intPriority Order
- Id string
- The provider-assigned unique ID for this managed resource.
- Nat
Rule []GetCollections Network Firewall Policy Nat Rules Nat Rule Collection - The list of nat_rule_collection.
- Network
Firewall stringPolicy Id - Display
Name string - Filters
[]Get
Network Firewall Policy Nat Rules Filter - Nat
Rule intPriority Order
- id String
- The provider-assigned unique ID for this managed resource.
- nat
Rule List<GetCollections Policy Nat Rules Nat Rule Collection> - The list of nat_rule_collection.
- network
Firewall StringPolicy Id - display
Name String - filters
List<Get
Policy Nat Rules Filter> - nat
Rule IntegerPriority Order
- id string
- The provider-assigned unique ID for this managed resource.
- nat
Rule GetCollections Network Firewall Policy Nat Rules Nat Rule Collection[] - The list of nat_rule_collection.
- network
Firewall stringPolicy Id - display
Name string - filters
Get
Network Firewall Policy Nat Rules Filter[] - nat
Rule numberPriority Order
- id str
- The provider-assigned unique ID for this managed resource.
- nat_
rule_ Sequence[Getcollections Network Firewall Policy Nat Rules Nat Rule Collection] - The list of nat_rule_collection.
- network_
firewall_ strpolicy_ id - display_
name str - filters
Sequence[Get
Network Firewall Policy Nat Rules Filter] - nat_
rule_ intpriority_ order
- id String
- The provider-assigned unique ID for this managed resource.
- nat
Rule List<Property Map>Collections - The list of nat_rule_collection.
- network
Firewall StringPolicy Id - display
Name String - filters List<Property Map>
- nat
Rule NumberPriority Order
Supporting Types
GetNetworkFirewallPolicyNatRulesFilter
GetNetworkFirewallPolicyNatRulesNatRuleCollection
GetNetworkFirewallPolicyNatRulesNatRuleCollectionItem
- Action string
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- Condition
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Condition - Match criteria used in NAT Rule used on the firewall policy.
- Name string
- Name for the NAT rule, must be unique within the policy.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this decryption profile belongs to.
- Position
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Position - An object which defines the position of the rule.
- Priority
Order string - The priority order in which this rule should be evaluated
- Type string
- NAT type:
- NATV4 - NATV4 type NAT.
- Description string
- Description of a NAT rule. This field can be used to add additional info.
- Action string
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- Condition
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Condition - Match criteria used in NAT Rule used on the firewall policy.
- Name string
- Name for the NAT rule, must be unique within the policy.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this decryption profile belongs to.
- Position
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Position - An object which defines the position of the rule.
- Priority
Order string - The priority order in which this rule should be evaluated
- Type string
- NAT type:
- NATV4 - NATV4 type NAT.
- Description string
- Description of a NAT rule. This field can be used to add additional info.
- action String
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- condition
Get
Policy Nat Rules Nat Rule Collection Item Condition - Match criteria used in NAT Rule used on the firewall policy.
- name String
- Name for the NAT rule, must be unique within the policy.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this decryption profile belongs to.
- position
Get
Policy Nat Rules Nat Rule Collection Item Position - An object which defines the position of the rule.
- priority
Order String - The priority order in which this rule should be evaluated
- type String
- NAT type:
- NATV4 - NATV4 type NAT.
- description String
- Description of a NAT rule. This field can be used to add additional info.
- action string
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- condition
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Condition - Match criteria used in NAT Rule used on the firewall policy.
- name string
- Name for the NAT rule, must be unique within the policy.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource stringId - OCID of the Network Firewall Policy this decryption profile belongs to.
- position
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Position - An object which defines the position of the rule.
- priority
Order string - The priority order in which this rule should be evaluated
- type string
- NAT type:
- NATV4 - NATV4 type NAT.
- description string
- Description of a NAT rule. This field can be used to add additional info.
- action str
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- condition
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Condition - Match criteria used in NAT Rule used on the firewall policy.
- name str
- Name for the NAT rule, must be unique within the policy.
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- parent_
resource_ strid - OCID of the Network Firewall Policy this decryption profile belongs to.
- position
Get
Network Firewall Policy Nat Rules Nat Rule Collection Item Position - An object which defines the position of the rule.
- priority_
order str - The priority order in which this rule should be evaluated
- type str
- NAT type:
- NATV4 - NATV4 type NAT.
- description str
- Description of a NAT rule. This field can be used to add additional info.
- action String
- action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
- condition Property Map
- Match criteria used in NAT Rule used on the firewall policy.
- name String
- Name for the NAT rule, must be unique within the policy.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this decryption profile belongs to.
- position Property Map
- An object which defines the position of the rule.
- priority
Order String - The priority order in which this rule should be evaluated
- type String
- NAT type:
- NATV4 - NATV4 type NAT.
- description String
- Description of a NAT rule. This field can be used to add additional info.
GetNetworkFirewallPolicyNatRulesNatRuleCollectionItemCondition
- Destination
Addresses List<string> - An array of IP address list names to be evaluated against the traffic destination address.
- Service string
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- Source
Addresses List<string> - An array of IP address list names to be evaluated against the traffic source address.
- Destination
Addresses []string - An array of IP address list names to be evaluated against the traffic destination address.
- Service string
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- Source
Addresses []string - An array of IP address list names to be evaluated against the traffic source address.
- destination
Addresses List<String> - An array of IP address list names to be evaluated against the traffic destination address.
- service String
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- source
Addresses List<String> - An array of IP address list names to be evaluated against the traffic source address.
- destination
Addresses string[] - An array of IP address list names to be evaluated against the traffic destination address.
- service string
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- source
Addresses string[] - An array of IP address list names to be evaluated against the traffic source address.
- destination_
addresses Sequence[str] - An array of IP address list names to be evaluated against the traffic destination address.
- service str
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- source_
addresses Sequence[str] - An array of IP address list names to be evaluated against the traffic source address.
- destination
Addresses List<String> - An array of IP address list names to be evaluated against the traffic destination address.
- service String
- A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
- source
Addresses List<String> - An array of IP address list names to be evaluated against the traffic source address.
GetNetworkFirewallPolicyNatRulesNatRuleCollectionItemPosition
- After
Rule string - Identifier for rule after which this rule lies.
- Before
Rule string - Identifier for rule before which this rule lies.
- After
Rule string - Identifier for rule after which this rule lies.
- Before
Rule string - Identifier for rule before which this rule lies.
- after
Rule String - Identifier for rule after which this rule lies.
- before
Rule String - Identifier for rule before which this rule lies.
- after
Rule string - Identifier for rule after which this rule lies.
- before
Rule 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.
- after
Rule String - Identifier for rule after which this rule lies.
- before
Rule String - Identifier for rule before which this rule lies.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
