nsxt.PolicyNatRule
Explore with Pulumi AI
Create PolicyNatRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyNatRule(name: string, args: PolicyNatRuleArgs, opts?: CustomResourceOptions);
@overload
def PolicyNatRule(resource_name: str,
args: PolicyNatRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyNatRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
action: Optional[str] = None,
gateway_path: Optional[str] = None,
policy_based_vpn_mode: Optional[str] = None,
rule_priority: Optional[float] = None,
enabled: Optional[bool] = None,
firewall_match: Optional[str] = None,
description: Optional[str] = None,
logging: Optional[bool] = None,
nsx_id: Optional[str] = None,
context: Optional[PolicyNatRuleContextArgs] = None,
policy_nat_rule_id: Optional[str] = None,
destination_networks: Optional[Sequence[str]] = None,
scopes: Optional[Sequence[str]] = None,
service: Optional[str] = None,
source_networks: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyNatRuleTagArgs]] = None,
translated_networks: Optional[Sequence[str]] = None,
translated_ports: Optional[str] = None,
type: Optional[str] = None)
func NewPolicyNatRule(ctx *Context, name string, args PolicyNatRuleArgs, opts ...ResourceOption) (*PolicyNatRule, error)
public PolicyNatRule(string name, PolicyNatRuleArgs args, CustomResourceOptions? opts = null)
public PolicyNatRule(String name, PolicyNatRuleArgs args)
public PolicyNatRule(String name, PolicyNatRuleArgs args, CustomResourceOptions options)
type: nsxt:PolicyNatRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PolicyNatRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PolicyNatRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PolicyNatRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyNatRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyNatRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var policyNatRuleResource = new Nsxt.PolicyNatRule("policyNatRuleResource", new()
{
DisplayName = "string",
Action = "string",
GatewayPath = "string",
PolicyBasedVpnMode = "string",
RulePriority = 0,
Enabled = false,
FirewallMatch = "string",
Description = "string",
Logging = false,
NsxId = "string",
Context = new Nsxt.Inputs.PolicyNatRuleContextArgs
{
ProjectId = "string",
},
PolicyNatRuleId = "string",
DestinationNetworks = new[]
{
"string",
},
Scopes = new[]
{
"string",
},
Service = "string",
SourceNetworks = new[]
{
"string",
},
Tags = new[]
{
new Nsxt.Inputs.PolicyNatRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
TranslatedNetworks = new[]
{
"string",
},
TranslatedPorts = "string",
Type = "string",
});
example, err := nsxt.NewPolicyNatRule(ctx, "policyNatRuleResource", &nsxt.PolicyNatRuleArgs{
DisplayName: pulumi.String("string"),
Action: pulumi.String("string"),
GatewayPath: pulumi.String("string"),
PolicyBasedVpnMode: pulumi.String("string"),
RulePriority: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
FirewallMatch: pulumi.String("string"),
Description: pulumi.String("string"),
Logging: pulumi.Bool(false),
NsxId: pulumi.String("string"),
Context: &nsxt.PolicyNatRuleContextArgs{
ProjectId: pulumi.String("string"),
},
PolicyNatRuleId: pulumi.String("string"),
DestinationNetworks: pulumi.StringArray{
pulumi.String("string"),
},
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Service: pulumi.String("string"),
SourceNetworks: pulumi.StringArray{
pulumi.String("string"),
},
Tags: nsxt.PolicyNatRuleTagArray{
&nsxt.PolicyNatRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
TranslatedNetworks: pulumi.StringArray{
pulumi.String("string"),
},
TranslatedPorts: pulumi.String("string"),
Type: pulumi.String("string"),
})
var policyNatRuleResource = new PolicyNatRule("policyNatRuleResource", PolicyNatRuleArgs.builder()
.displayName("string")
.action("string")
.gatewayPath("string")
.policyBasedVpnMode("string")
.rulePriority(0)
.enabled(false)
.firewallMatch("string")
.description("string")
.logging(false)
.nsxId("string")
.context(PolicyNatRuleContextArgs.builder()
.projectId("string")
.build())
.policyNatRuleId("string")
.destinationNetworks("string")
.scopes("string")
.service("string")
.sourceNetworks("string")
.tags(PolicyNatRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.translatedNetworks("string")
.translatedPorts("string")
.type("string")
.build());
policy_nat_rule_resource = nsxt.PolicyNatRule("policyNatRuleResource",
display_name="string",
action="string",
gateway_path="string",
policy_based_vpn_mode="string",
rule_priority=0,
enabled=False,
firewall_match="string",
description="string",
logging=False,
nsx_id="string",
context={
"project_id": "string",
},
policy_nat_rule_id="string",
destination_networks=["string"],
scopes=["string"],
service="string",
source_networks=["string"],
tags=[{
"scope": "string",
"tag": "string",
}],
translated_networks=["string"],
translated_ports="string",
type="string")
const policyNatRuleResource = new nsxt.PolicyNatRule("policyNatRuleResource", {
displayName: "string",
action: "string",
gatewayPath: "string",
policyBasedVpnMode: "string",
rulePriority: 0,
enabled: false,
firewallMatch: "string",
description: "string",
logging: false,
nsxId: "string",
context: {
projectId: "string",
},
policyNatRuleId: "string",
destinationNetworks: ["string"],
scopes: ["string"],
service: "string",
sourceNetworks: ["string"],
tags: [{
scope: "string",
tag: "string",
}],
translatedNetworks: ["string"],
translatedPorts: "string",
type: "string",
});
type: nsxt:PolicyNatRule
properties:
action: string
context:
projectId: string
description: string
destinationNetworks:
- string
displayName: string
enabled: false
firewallMatch: string
gatewayPath: string
logging: false
nsxId: string
policyBasedVpnMode: string
policyNatRuleId: string
rulePriority: 0
scopes:
- string
service: string
sourceNetworks:
- string
tags:
- scope: string
tag: string
translatedNetworks:
- string
translatedPorts: string
type: string
PolicyNatRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PolicyNatRule resource accepts the following input properties:
- Action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - Display
Name string - Display name of the resource.
- Gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- Context
Policy
Nat Rule Context - The context which the object belongs to
- Description string
- Description of the resource.
- Destination
Networks List<string> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Enabled bool
- Enable/disable the Rule. Defaults to
true
. - Firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - Logging bool
- Enable/disable rule logging. Defaults to
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - Policy
Nat stringRule Id - Rule
Priority double - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - Scopes List<string>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- Service string
- Policy path of Service on which the NAT rule will be applied.
- Source
Networks List<string> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Policy
Nat Rule Tag> - A list of scope + tag pairs to associate with this NAT Rule.
- Translated
Networks List<string> - A list of translated network IP addresses or CIDR.
- Translated
Ports string - Port number or port range. For use with
DNAT
action only. - Type string
- NAT Type
- Action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - Display
Name string - Display name of the resource.
- Gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- Context
Policy
Nat Rule Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Destination
Networks []string - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Enabled bool
- Enable/disable the Rule. Defaults to
true
. - Firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - Logging bool
- Enable/disable rule logging. Defaults to
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - Policy
Nat stringRule Id - Rule
Priority float64 - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - Scopes []string
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- Service string
- Policy path of Service on which the NAT rule will be applied.
- Source
Networks []string - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - []Policy
Nat Rule Tag Args - A list of scope + tag pairs to associate with this NAT Rule.
- Translated
Networks []string - A list of translated network IP addresses or CIDR.
- Translated
Ports string - Port number or port range. For use with
DNAT
action only. - Type string
- NAT Type
- action String
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - display
Name String - Display name of the resource.
- gateway
Path String - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- context
Policy
Nat Rule Context - The context which the object belongs to
- description String
- Description of the resource.
- destination
Networks List<String> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - enabled Boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match String - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - logging Boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Based StringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat StringRule Id - rule
Priority Double - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes List<String>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service String
- Policy path of Service on which the NAT rule will be applied.
- source
Networks List<String> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Policy
Nat Rule Tag> - A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks List<String> - A list of translated network IP addresses or CIDR.
- translated
Ports String - Port number or port range. For use with
DNAT
action only. - type String
- NAT Type
- action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - display
Name string - Display name of the resource.
- gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- context
Policy
Nat Rule Context - The context which the object belongs to
- description string
- Description of the resource.
- destination
Networks string[] - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - enabled boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - logging boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat stringRule Id - rule
Priority number - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes string[]
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service string
- Policy path of Service on which the NAT rule will be applied.
- source
Networks string[] - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Policy
Nat Rule Tag[] - A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks string[] - A list of translated network IP addresses or CIDR.
- translated
Ports string - Port number or port range. For use with
DNAT
action only. - type string
- NAT Type
- action str
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - display_
name str - Display name of the resource.
- gateway_
path str - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- context
Policy
Nat Rule Context Args - The context which the object belongs to
- description str
- Description of the resource.
- destination_
networks Sequence[str] - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - enabled bool
- Enable/disable the Rule. Defaults to
true
. - firewall_
match str - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - logging bool
- Enable/disable rule logging. Defaults to
false
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy_
based_ strvpn_ mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy_
nat_ strrule_ id - rule_
priority float - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes Sequence[str]
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service str
- Policy path of Service on which the NAT rule will be applied.
- source_
networks Sequence[str] - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Sequence[Policy
Nat Rule Tag Args] - A list of scope + tag pairs to associate with this NAT Rule.
- translated_
networks Sequence[str] - A list of translated network IP addresses or CIDR.
- translated_
ports str - Port number or port range. For use with
DNAT
action only. - type str
- NAT Type
- action String
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - display
Name String - Display name of the resource.
- gateway
Path String - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- destination
Networks List<String> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - enabled Boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match String - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - logging Boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Based StringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat StringRule Id - rule
Priority Number - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes List<String>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service String
- Policy path of Service on which the NAT rule will be applied.
- source
Networks List<String> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Property Map>
- A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks List<String> - A list of translated network IP addresses or CIDR.
- translated
Ports String - Port number or port range. For use with
DNAT
action only. - type String
- NAT Type
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyNatRule resource produces the following output properties:
Look up Existing PolicyNatRule Resource
Get an existing PolicyNatRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PolicyNatRuleState, opts?: CustomResourceOptions): PolicyNatRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
context: Optional[PolicyNatRuleContextArgs] = None,
description: Optional[str] = None,
destination_networks: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
firewall_match: Optional[str] = None,
gateway_path: Optional[str] = None,
logging: Optional[bool] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_based_vpn_mode: Optional[str] = None,
policy_nat_rule_id: Optional[str] = None,
revision: Optional[float] = None,
rule_priority: Optional[float] = None,
scopes: Optional[Sequence[str]] = None,
service: Optional[str] = None,
source_networks: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyNatRuleTagArgs]] = None,
translated_networks: Optional[Sequence[str]] = None,
translated_ports: Optional[str] = None,
type: Optional[str] = None) -> PolicyNatRule
func GetPolicyNatRule(ctx *Context, name string, id IDInput, state *PolicyNatRuleState, opts ...ResourceOption) (*PolicyNatRule, error)
public static PolicyNatRule Get(string name, Input<string> id, PolicyNatRuleState? state, CustomResourceOptions? opts = null)
public static PolicyNatRule get(String name, Output<String> id, PolicyNatRuleState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyNatRule get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - Context
Policy
Nat Rule Context - The context which the object belongs to
- Description string
- Description of the resource.
- Destination
Networks List<string> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Display
Name string - Display name of the resource.
- Enabled bool
- Enable/disable the Rule. Defaults to
true
. - Firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - Gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- Logging bool
- Enable/disable rule logging. Defaults to
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - Policy
Nat stringRule Id - Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Priority double - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - Scopes List<string>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- Service string
- Policy path of Service on which the NAT rule will be applied.
- Source
Networks List<string> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Policy
Nat Rule Tag> - A list of scope + tag pairs to associate with this NAT Rule.
- Translated
Networks List<string> - A list of translated network IP addresses or CIDR.
- Translated
Ports string - Port number or port range. For use with
DNAT
action only. - Type string
- NAT Type
- Action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - Context
Policy
Nat Rule Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Destination
Networks []string - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Display
Name string - Display name of the resource.
- Enabled bool
- Enable/disable the Rule. Defaults to
true
. - Firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - Gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- Logging bool
- Enable/disable rule logging. Defaults to
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - Policy
Nat stringRule Id - Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Priority float64 - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - Scopes []string
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- Service string
- Policy path of Service on which the NAT rule will be applied.
- Source
Networks []string - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - []Policy
Nat Rule Tag Args - A list of scope + tag pairs to associate with this NAT Rule.
- Translated
Networks []string - A list of translated network IP addresses or CIDR.
- Translated
Ports string - Port number or port range. For use with
DNAT
action only. - Type string
- NAT Type
- action String
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - context
Policy
Nat Rule Context - The context which the object belongs to
- description String
- Description of the resource.
- destination
Networks List<String> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - display
Name String - Display name of the resource.
- enabled Boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match String - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - gateway
Path String - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- logging Boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Based StringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat StringRule Id - revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Priority Double - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes List<String>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service String
- Policy path of Service on which the NAT rule will be applied.
- source
Networks List<String> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Policy
Nat Rule Tag> - A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks List<String> - A list of translated network IP addresses or CIDR.
- translated
Ports String - Port number or port range. For use with
DNAT
action only. - type String
- NAT Type
- action string
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - context
Policy
Nat Rule Context - The context which the object belongs to
- description string
- Description of the resource.
- destination
Networks string[] - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - display
Name string - Display name of the resource.
- enabled boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match string - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - gateway
Path string - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- logging boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path string
- The NSX path of the policy resource.
- policy
Based stringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat stringRule Id - revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Priority number - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes string[]
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service string
- Policy path of Service on which the NAT rule will be applied.
- source
Networks string[] - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Policy
Nat Rule Tag[] - A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks string[] - A list of translated network IP addresses or CIDR.
- translated
Ports string - Port number or port range. For use with
DNAT
action only. - type string
- NAT Type
- action str
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - context
Policy
Nat Rule Context Args - The context which the object belongs to
- description str
- Description of the resource.
- destination_
networks Sequence[str] - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - display_
name str - Display name of the resource.
- enabled bool
- Enable/disable the Rule. Defaults to
true
. - firewall_
match str - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - gateway_
path str - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- logging bool
- Enable/disable rule logging. Defaults to
false
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path str
- The NSX path of the policy resource.
- policy_
based_ strvpn_ mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy_
nat_ strrule_ id - revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule_
priority float - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes Sequence[str]
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service str
- Policy path of Service on which the NAT rule will be applied.
- source_
networks Sequence[str] - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - Sequence[Policy
Nat Rule Tag Args] - A list of scope + tag pairs to associate with this NAT Rule.
- translated_
networks Sequence[str] - A list of translated network IP addresses or CIDR.
- translated_
ports str - Port number or port range. For use with
DNAT
action only. - type str
- NAT Type
- action String
- The action for the NAT Rule. One of
SNAT
,DNAT
,REFLEXIVE
,NO_SNAT
,NO_DNAT
,NAT64
. - context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- destination
Networks List<String> - A list of destination network IP addresses or CIDR. If unspecified, the value will be
ANY
. - display
Name String - Display name of the resource.
- enabled Boolean
- Enable/disable the Rule. Defaults to
true
. - firewall
Match String - Firewall match flag. One of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
,BYPASS
. - gateway
Path String - The NSX Policy path to the Tier0 or Tier1 Gateway for this NAT Rule.
- logging Boolean
- Enable/disable rule logging. Defaults to
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Based StringVpn Mode - Policy based VPN mode. One of
BYPASS
,MATCH
. For use withDNAT
andNO_DNAT
actions only. Defaults toBYPASS
when applicable. This argument is supported for NSX 4.0.0 and above. - policy
Nat StringRule Id - revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Priority Number - The priority of the rule. Valid values between 0 to 2147483647. Defaults to
100
. - scopes List<String>
- A list of paths to interfaces and/or labels where the NAT Rule is enforced.
- service String
- Policy path of Service on which the NAT rule will be applied.
- source
Networks List<String> - A list of source network IP addresses or CIDR. If unspecified, the value will be
ANY
. - List<Property Map>
- A list of scope + tag pairs to associate with this NAT Rule.
- translated
Networks List<String> - A list of translated network IP addresses or CIDR.
- translated
Ports String - Port number or port range. For use with
DNAT
action only. - type String
- NAT Type
Supporting Types
PolicyNatRuleContext, PolicyNatRuleContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyNatRuleTag, PolicyNatRuleTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.