1. Packages
  2. Panos Provider
  3. API Docs
  4. getNatPolicyRules
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

panos.getNatPolicyRules

Explore with Pulumi AI

panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

Using getNatPolicyRules

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 getNatPolicyRules(args: GetNatPolicyRulesArgs, opts?: InvokeOptions): Promise<GetNatPolicyRulesResult>
function getNatPolicyRulesOutput(args: GetNatPolicyRulesOutputArgs, opts?: InvokeOptions): Output<GetNatPolicyRulesResult>
Copy
def get_nat_policy_rules(location: Optional[GetNatPolicyRulesLocation] = None,
                         position: Optional[GetNatPolicyRulesPosition] = None,
                         rules: Optional[Sequence[GetNatPolicyRulesRule]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetNatPolicyRulesResult
def get_nat_policy_rules_output(location: Optional[pulumi.Input[GetNatPolicyRulesLocationArgs]] = None,
                         position: Optional[pulumi.Input[GetNatPolicyRulesPositionArgs]] = None,
                         rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetNatPolicyRulesRuleArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetNatPolicyRulesResult]
Copy
func LookupNatPolicyRules(ctx *Context, args *LookupNatPolicyRulesArgs, opts ...InvokeOption) (*LookupNatPolicyRulesResult, error)
func LookupNatPolicyRulesOutput(ctx *Context, args *LookupNatPolicyRulesOutputArgs, opts ...InvokeOption) LookupNatPolicyRulesResultOutput
Copy

> Note: This function is named LookupNatPolicyRules in the Go SDK.

public static class GetNatPolicyRules 
{
    public static Task<GetNatPolicyRulesResult> InvokeAsync(GetNatPolicyRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetNatPolicyRulesResult> Invoke(GetNatPolicyRulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNatPolicyRulesResult> getNatPolicyRules(GetNatPolicyRulesArgs args, InvokeOptions options)
public static Output<GetNatPolicyRulesResult> getNatPolicyRules(GetNatPolicyRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: panos:index/getNatPolicyRules:getNatPolicyRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. GetNatPolicyRulesLocation
The location of this object.
Position This property is required. GetNatPolicyRulesPosition
Rules This property is required. List<GetNatPolicyRulesRule>
Location This property is required. GetNatPolicyRulesLocation
The location of this object.
Position This property is required. GetNatPolicyRulesPosition
Rules This property is required. []GetNatPolicyRulesRule
location This property is required. GetNatPolicyRulesLocation
The location of this object.
position This property is required. GetNatPolicyRulesPosition
rules This property is required. List<GetNatPolicyRulesRule>
location This property is required. GetNatPolicyRulesLocation
The location of this object.
position This property is required. GetNatPolicyRulesPosition
rules This property is required. GetNatPolicyRulesRule[]
location This property is required. GetNatPolicyRulesLocation
The location of this object.
position This property is required. GetNatPolicyRulesPosition
rules This property is required. Sequence[GetNatPolicyRulesRule]
location This property is required. Property Map
The location of this object.
position This property is required. Property Map
rules This property is required. List<Property Map>

getNatPolicyRules Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Location GetNatPolicyRulesLocation
The location of this object.
Position GetNatPolicyRulesPosition
Rules List<GetNatPolicyRulesRule>
Id string
The provider-assigned unique ID for this managed resource.
Location GetNatPolicyRulesLocation
The location of this object.
Position GetNatPolicyRulesPosition
Rules []GetNatPolicyRulesRule
id String
The provider-assigned unique ID for this managed resource.
location GetNatPolicyRulesLocation
The location of this object.
position GetNatPolicyRulesPosition
rules List<GetNatPolicyRulesRule>
id string
The provider-assigned unique ID for this managed resource.
location GetNatPolicyRulesLocation
The location of this object.
position GetNatPolicyRulesPosition
rules GetNatPolicyRulesRule[]
id str
The provider-assigned unique ID for this managed resource.
location GetNatPolicyRulesLocation
The location of this object.
position GetNatPolicyRulesPosition
rules Sequence[GetNatPolicyRulesRule]
id String
The provider-assigned unique ID for this managed resource.
location Property Map
The location of this object.
position Property Map
rules List<Property Map>

Supporting Types

GetNatPolicyRulesLocation

DeviceGroup GetNatPolicyRulesLocationDeviceGroup
Located in a specific device group.
Shared GetNatPolicyRulesLocationShared
Located in a shared rulebase
Vsys GetNatPolicyRulesLocationVsys
Located in a specific vsys.
DeviceGroup GetNatPolicyRulesLocationDeviceGroup
Located in a specific device group.
Shared GetNatPolicyRulesLocationShared
Located in a shared rulebase
Vsys GetNatPolicyRulesLocationVsys
Located in a specific vsys.
deviceGroup GetNatPolicyRulesLocationDeviceGroup
Located in a specific device group.
shared GetNatPolicyRulesLocationShared
Located in a shared rulebase
vsys GetNatPolicyRulesLocationVsys
Located in a specific vsys.
deviceGroup GetNatPolicyRulesLocationDeviceGroup
Located in a specific device group.
shared GetNatPolicyRulesLocationShared
Located in a shared rulebase
vsys GetNatPolicyRulesLocationVsys
Located in a specific vsys.
device_group GetNatPolicyRulesLocationDeviceGroup
Located in a specific device group.
shared GetNatPolicyRulesLocationShared
Located in a shared rulebase
vsys GetNatPolicyRulesLocationVsys
Located in a specific vsys.
deviceGroup Property Map
Located in a specific device group.
shared Property Map
Located in a shared rulebase
vsys Property Map
Located in a specific vsys.

GetNatPolicyRulesLocationDeviceGroup

Name This property is required. string
The device group.
PanoramaDevice This property is required. string
The panorama device.
Rulebase This property is required. string
The rulebase.
Name This property is required. string
The device group.
PanoramaDevice This property is required. string
The panorama device.
Rulebase This property is required. string
The rulebase.
name This property is required. String
The device group.
panoramaDevice This property is required. String
The panorama device.
rulebase This property is required. String
The rulebase.
name This property is required. string
The device group.
panoramaDevice This property is required. string
The panorama device.
rulebase This property is required. string
The rulebase.
name This property is required. str
The device group.
panorama_device This property is required. str
The panorama device.
rulebase This property is required. str
The rulebase.
name This property is required. String
The device group.
panoramaDevice This property is required. String
The panorama device.
rulebase This property is required. String
The rulebase.

GetNatPolicyRulesLocationShared

Rulebase This property is required. string
Rulebase name
Rulebase This property is required. string
Rulebase name
rulebase This property is required. String
Rulebase name
rulebase This property is required. string
Rulebase name
rulebase This property is required. str
Rulebase name
rulebase This property is required. String
Rulebase name

GetNatPolicyRulesLocationVsys

Name This property is required. string
The vsys name
NgfwDevice This property is required. string
The NGFW device
Name This property is required. string
The vsys name
NgfwDevice This property is required. string
The NGFW device
name This property is required. String
The vsys name
ngfwDevice This property is required. String
The NGFW device
name This property is required. string
The vsys name
ngfwDevice This property is required. string
The NGFW device
name This property is required. str
The vsys name
ngfw_device This property is required. str
The NGFW device
name This property is required. String
The vsys name
ngfwDevice This property is required. String
The NGFW device

GetNatPolicyRulesPosition

Where This property is required. string
Directly bool
Pivot string
Where This property is required. string
Directly bool
Pivot string
where This property is required. String
directly Boolean
pivot String
where This property is required. string
directly boolean
pivot string
where This property is required. str
directly bool
pivot str
where This property is required. String
directly Boolean
pivot String

GetNatPolicyRulesRule

ActiveActiveDeviceBinding This property is required. string
Device binding configuration in HA Active-Active mode
Description This property is required. string
DestinationAddresses This property is required. List<string>
DestinationTranslation This property is required. GetNatPolicyRulesRuleDestinationTranslation
DestinationZones This property is required. List<string>
Disabled This property is required. bool
Disable the rule
DynamicDestinationTranslation This property is required. GetNatPolicyRulesRuleDynamicDestinationTranslation
GroupTag This property is required. string
Name This property is required. string
NatType This property is required. string
type of nat
Service This property is required. string
SourceAddresses This property is required. List<string>
SourceTranslation This property is required. GetNatPolicyRulesRuleSourceTranslation
SourceZones This property is required. List<string>
Tags This property is required. List<string>
Target This property is required. GetNatPolicyRulesRuleTarget
ToInterface This property is required. string
Egress interface from route lookup
ActiveActiveDeviceBinding This property is required. string
Device binding configuration in HA Active-Active mode
Description This property is required. string
DestinationAddresses This property is required. []string
DestinationTranslation This property is required. GetNatPolicyRulesRuleDestinationTranslation
DestinationZones This property is required. []string
Disabled This property is required. bool
Disable the rule
DynamicDestinationTranslation This property is required. GetNatPolicyRulesRuleDynamicDestinationTranslation
GroupTag This property is required. string
Name This property is required. string
NatType This property is required. string
type of nat
Service This property is required. string
SourceAddresses This property is required. []string
SourceTranslation This property is required. GetNatPolicyRulesRuleSourceTranslation
SourceZones This property is required. []string
Tags This property is required. []string
Target This property is required. GetNatPolicyRulesRuleTarget
ToInterface This property is required. string
Egress interface from route lookup
activeActiveDeviceBinding This property is required. String
Device binding configuration in HA Active-Active mode
description This property is required. String
destinationAddresses This property is required. List<String>
destinationTranslation This property is required. GetNatPolicyRulesRuleDestinationTranslation
destinationZones This property is required. List<String>
disabled This property is required. Boolean
Disable the rule
dynamicDestinationTranslation This property is required. GetNatPolicyRulesRuleDynamicDestinationTranslation
groupTag This property is required. String
name This property is required. String
natType This property is required. String
type of nat
service This property is required. String
sourceAddresses This property is required. List<String>
sourceTranslation This property is required. GetNatPolicyRulesRuleSourceTranslation
sourceZones This property is required. List<String>
tags This property is required. List<String>
target This property is required. GetNatPolicyRulesRuleTarget
toInterface This property is required. String
Egress interface from route lookup
activeActiveDeviceBinding This property is required. string
Device binding configuration in HA Active-Active mode
description This property is required. string
destinationAddresses This property is required. string[]
destinationTranslation This property is required. GetNatPolicyRulesRuleDestinationTranslation
destinationZones This property is required. string[]
disabled This property is required. boolean
Disable the rule
dynamicDestinationTranslation This property is required. GetNatPolicyRulesRuleDynamicDestinationTranslation
groupTag This property is required. string
name This property is required. string
natType This property is required. string
type of nat
service This property is required. string
sourceAddresses This property is required. string[]
sourceTranslation This property is required. GetNatPolicyRulesRuleSourceTranslation
sourceZones This property is required. string[]
tags This property is required. string[]
target This property is required. GetNatPolicyRulesRuleTarget
toInterface This property is required. string
Egress interface from route lookup
active_active_device_binding This property is required. str
Device binding configuration in HA Active-Active mode
description This property is required. str
destination_addresses This property is required. Sequence[str]
destination_translation This property is required. GetNatPolicyRulesRuleDestinationTranslation
destination_zones This property is required. Sequence[str]
disabled This property is required. bool
Disable the rule
dynamic_destination_translation This property is required. GetNatPolicyRulesRuleDynamicDestinationTranslation
group_tag This property is required. str
name This property is required. str
nat_type This property is required. str
type of nat
service This property is required. str
source_addresses This property is required. Sequence[str]
source_translation This property is required. GetNatPolicyRulesRuleSourceTranslation
source_zones This property is required. Sequence[str]
tags This property is required. Sequence[str]
target This property is required. GetNatPolicyRulesRuleTarget
to_interface This property is required. str
Egress interface from route lookup
activeActiveDeviceBinding This property is required. String
Device binding configuration in HA Active-Active mode
description This property is required. String
destinationAddresses This property is required. List<String>
destinationTranslation This property is required. Property Map
destinationZones This property is required. List<String>
disabled This property is required. Boolean
Disable the rule
dynamicDestinationTranslation This property is required. Property Map
groupTag This property is required. String
name This property is required. String
natType This property is required. String
type of nat
service This property is required. String
sourceAddresses This property is required. List<String>
sourceTranslation This property is required. Property Map
sourceZones This property is required. List<String>
tags This property is required. List<String>
target This property is required. Property Map
toInterface This property is required. String
Egress interface from route lookup

GetNatPolicyRulesRuleDestinationTranslation

DnsRewrite This property is required. GetNatPolicyRulesRuleDestinationTranslationDnsRewrite
TranslatedAddress This property is required. string
TranslatedPort This property is required. double
DnsRewrite This property is required. GetNatPolicyRulesRuleDestinationTranslationDnsRewrite
TranslatedAddress This property is required. string
TranslatedPort This property is required. float64
dnsRewrite This property is required. GetNatPolicyRulesRuleDestinationTranslationDnsRewrite
translatedAddress This property is required. String
translatedPort This property is required. Double
dnsRewrite This property is required. GetNatPolicyRulesRuleDestinationTranslationDnsRewrite
translatedAddress This property is required. string
translatedPort This property is required. number
dns_rewrite This property is required. GetNatPolicyRulesRuleDestinationTranslationDnsRewrite
translated_address This property is required. str
translated_port This property is required. float
dnsRewrite This property is required. Property Map
translatedAddress This property is required. String
translatedPort This property is required. Number

GetNatPolicyRulesRuleDestinationTranslationDnsRewrite

Direction This property is required. string
Select direction to apply DNS rewrite
Direction This property is required. string
Select direction to apply DNS rewrite
direction This property is required. String
Select direction to apply DNS rewrite
direction This property is required. string
Select direction to apply DNS rewrite
direction This property is required. str
Select direction to apply DNS rewrite
direction This property is required. String
Select direction to apply DNS rewrite

GetNatPolicyRulesRuleDynamicDestinationTranslation

Distribution This property is required. string
Distribution algorithm for destination address pool
TranslatedAddress This property is required. string
TranslatedPort This property is required. double
Distribution This property is required. string
Distribution algorithm for destination address pool
TranslatedAddress This property is required. string
TranslatedPort This property is required. float64
distribution This property is required. String
Distribution algorithm for destination address pool
translatedAddress This property is required. String
translatedPort This property is required. Double
distribution This property is required. string
Distribution algorithm for destination address pool
translatedAddress This property is required. string
translatedPort This property is required. number
distribution This property is required. str
Distribution algorithm for destination address pool
translated_address This property is required. str
translated_port This property is required. float
distribution This property is required. String
Distribution algorithm for destination address pool
translatedAddress This property is required. String
translatedPort This property is required. Number

GetNatPolicyRulesRuleSourceTranslation

dynamicIp This property is required. Property Map
dynamicIpAndPort This property is required. Property Map
staticIp This property is required. Property Map

GetNatPolicyRulesRuleSourceTranslationDynamicIp

Fallback This property is required. GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback
TranslatedAddresses This property is required. List<string>
Fallback This property is required. GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback
TranslatedAddresses This property is required. []string
fallback This property is required. GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback
translatedAddresses This property is required. List<String>
fallback This property is required. GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback
translatedAddresses This property is required. string[]
fallback This property is required. GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback
translated_addresses This property is required. Sequence[str]
fallback This property is required. Property Map
translatedAddresses This property is required. List<String>

GetNatPolicyRulesRuleSourceTranslationDynamicIpAndPort

interfaceAddress This property is required. Property Map
translatedAddresses This property is required. List<String>

GetNatPolicyRulesRuleSourceTranslationDynamicIpAndPortInterfaceAddress

FloatingIp This property is required. string
Floating IP address in HA Active-Active configuration
Interface This property is required. string
Interface name
Ip This property is required. string
specify exact IP address if interface has multiple addresses
FloatingIp This property is required. string
Floating IP address in HA Active-Active configuration
Interface This property is required. string
Interface name
Ip This property is required. string
specify exact IP address if interface has multiple addresses
floatingIp This property is required. String
Floating IP address in HA Active-Active configuration
interface_ This property is required. String
Interface name
ip This property is required. String
specify exact IP address if interface has multiple addresses
floatingIp This property is required. string
Floating IP address in HA Active-Active configuration
interface This property is required. string
Interface name
ip This property is required. string
specify exact IP address if interface has multiple addresses
floating_ip This property is required. str
Floating IP address in HA Active-Active configuration
interface This property is required. str
Interface name
ip This property is required. str
specify exact IP address if interface has multiple addresses
floatingIp This property is required. String
Floating IP address in HA Active-Active configuration
interface This property is required. String
Interface name
ip This property is required. String
specify exact IP address if interface has multiple addresses

GetNatPolicyRulesRuleSourceTranslationDynamicIpFallback

interfaceAddress This property is required. Property Map
translatedAddresses This property is required. List<String>

GetNatPolicyRulesRuleSourceTranslationDynamicIpFallbackInterfaceAddress

FloatingIp This property is required. string
Floating IP address in HA Active-Active configuration
Interface This property is required. string
Interface name
Ip This property is required. string
specify exact IP address if interface has multiple addresses
FloatingIp This property is required. string
Floating IP address in HA Active-Active configuration
Interface This property is required. string
Interface name
Ip This property is required. string
specify exact IP address if interface has multiple addresses
floatingIp This property is required. String
Floating IP address in HA Active-Active configuration
interface_ This property is required. String
Interface name
ip This property is required. String
specify exact IP address if interface has multiple addresses
floatingIp This property is required. string
Floating IP address in HA Active-Active configuration
interface This property is required. string
Interface name
ip This property is required. string
specify exact IP address if interface has multiple addresses
floating_ip This property is required. str
Floating IP address in HA Active-Active configuration
interface This property is required. str
Interface name
ip This property is required. str
specify exact IP address if interface has multiple addresses
floatingIp This property is required. String
Floating IP address in HA Active-Active configuration
interface This property is required. String
Interface name
ip This property is required. String
specify exact IP address if interface has multiple addresses

GetNatPolicyRulesRuleSourceTranslationStaticIp

BiDirectional This property is required. string
allow reverse translation from translated address to original address
TranslatedAddress This property is required. string
BiDirectional This property is required. string
allow reverse translation from translated address to original address
TranslatedAddress This property is required. string
biDirectional This property is required. String
allow reverse translation from translated address to original address
translatedAddress This property is required. String
biDirectional This property is required. string
allow reverse translation from translated address to original address
translatedAddress This property is required. string
bi_directional This property is required. str
allow reverse translation from translated address to original address
translated_address This property is required. str
biDirectional This property is required. String
allow reverse translation from translated address to original address
translatedAddress This property is required. String

GetNatPolicyRulesRuleTarget

Devices This property is required. List<GetNatPolicyRulesRuleTargetDevice>
Negate This property is required. bool
Target to all but these specified devices and tags
Tags This property is required. List<string>
Devices This property is required. []GetNatPolicyRulesRuleTargetDevice
Negate This property is required. bool
Target to all but these specified devices and tags
Tags This property is required. []string
devices This property is required. List<GetNatPolicyRulesRuleTargetDevice>
negate This property is required. Boolean
Target to all but these specified devices and tags
tags This property is required. List<String>
devices This property is required. GetNatPolicyRulesRuleTargetDevice[]
negate This property is required. boolean
Target to all but these specified devices and tags
tags This property is required. string[]
devices This property is required. Sequence[GetNatPolicyRulesRuleTargetDevice]
negate This property is required. bool
Target to all but these specified devices and tags
tags This property is required. Sequence[str]
devices This property is required. List<Property Map>
negate This property is required. Boolean
Target to all but these specified devices and tags
tags This property is required. List<String>

GetNatPolicyRulesRuleTargetDevice

Name This property is required. string
Vsys This property is required. List<GetNatPolicyRulesRuleTargetDeviceVsy>
Name This property is required. string
Vsys This property is required. []GetNatPolicyRulesRuleTargetDeviceVsy
name This property is required. String
vsys This property is required. List<GetNatPolicyRulesRuleTargetDeviceVsy>
name This property is required. string
vsys This property is required. GetNatPolicyRulesRuleTargetDeviceVsy[]
name This property is required. str
vsys This property is required. Sequence[GetNatPolicyRulesRuleTargetDeviceVsy]
name This property is required. String
vsys This property is required. List<Property Map>

GetNatPolicyRulesRuleTargetDeviceVsy

Name This property is required. string
Name This property is required. string
name This property is required. String
name This property is required. string
name This property is required. str
name This property is required. String

Package Details

Repository
panos paloaltonetworks/terraform-provider-panos
License
Notes
This Pulumi package is based on the panos Terraform Provider.
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks