1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicyTransitGatewayNatRule
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

nsxt.PolicyTransitGatewayNatRule

Explore with Pulumi AI

nsxt logo
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

    Create PolicyTransitGatewayNatRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PolicyTransitGatewayNatRule(name: string, args: PolicyTransitGatewayNatRuleArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyTransitGatewayNatRule(resource_name: str,
                                    args: PolicyTransitGatewayNatRuleArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyTransitGatewayNatRule(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    display_name: Optional[str] = None,
                                    parent_path: Optional[str] = None,
                                    action: Optional[str] = None,
                                    logging: Optional[bool] = None,
                                    enabled: Optional[bool] = None,
                                    firewall_match: Optional[str] = None,
                                    destination_network: Optional[str] = None,
                                    nsx_id: Optional[str] = None,
                                    description: Optional[str] = None,
                                    policy_transit_gateway_nat_rule_id: Optional[str] = None,
                                    sequence_number: Optional[float] = None,
                                    source_network: Optional[str] = None,
                                    tags: Optional[Sequence[PolicyTransitGatewayNatRuleTagArgs]] = None,
                                    translated_network: Optional[str] = None)
    func NewPolicyTransitGatewayNatRule(ctx *Context, name string, args PolicyTransitGatewayNatRuleArgs, opts ...ResourceOption) (*PolicyTransitGatewayNatRule, error)
    public PolicyTransitGatewayNatRule(string name, PolicyTransitGatewayNatRuleArgs args, CustomResourceOptions? opts = null)
    public PolicyTransitGatewayNatRule(String name, PolicyTransitGatewayNatRuleArgs args)
    public PolicyTransitGatewayNatRule(String name, PolicyTransitGatewayNatRuleArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicyTransitGatewayNatRule
    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 PolicyTransitGatewayNatRuleArgs
    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 PolicyTransitGatewayNatRuleArgs
    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 PolicyTransitGatewayNatRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyTransitGatewayNatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyTransitGatewayNatRuleArgs
    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 policyTransitGatewayNatRuleResource = new Nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", new()
    {
        DisplayName = "string",
        ParentPath = "string",
        Action = "string",
        Logging = false,
        Enabled = false,
        FirewallMatch = "string",
        DestinationNetwork = "string",
        NsxId = "string",
        Description = "string",
        PolicyTransitGatewayNatRuleId = "string",
        SequenceNumber = 0,
        SourceNetwork = "string",
        Tags = new[]
        {
            new Nsxt.Inputs.PolicyTransitGatewayNatRuleTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
        TranslatedNetwork = "string",
    });
    
    example, err := nsxt.NewPolicyTransitGatewayNatRule(ctx, "policyTransitGatewayNatRuleResource", &nsxt.PolicyTransitGatewayNatRuleArgs{
    	DisplayName:                   pulumi.String("string"),
    	ParentPath:                    pulumi.String("string"),
    	Action:                        pulumi.String("string"),
    	Logging:                       pulumi.Bool(false),
    	Enabled:                       pulumi.Bool(false),
    	FirewallMatch:                 pulumi.String("string"),
    	DestinationNetwork:            pulumi.String("string"),
    	NsxId:                         pulumi.String("string"),
    	Description:                   pulumi.String("string"),
    	PolicyTransitGatewayNatRuleId: pulumi.String("string"),
    	SequenceNumber:                pulumi.Float64(0),
    	SourceNetwork:                 pulumi.String("string"),
    	Tags: nsxt.PolicyTransitGatewayNatRuleTagArray{
    		&nsxt.PolicyTransitGatewayNatRuleTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    	TranslatedNetwork: pulumi.String("string"),
    })
    
    var policyTransitGatewayNatRuleResource = new PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", PolicyTransitGatewayNatRuleArgs.builder()
        .displayName("string")
        .parentPath("string")
        .action("string")
        .logging(false)
        .enabled(false)
        .firewallMatch("string")
        .destinationNetwork("string")
        .nsxId("string")
        .description("string")
        .policyTransitGatewayNatRuleId("string")
        .sequenceNumber(0.0)
        .sourceNetwork("string")
        .tags(PolicyTransitGatewayNatRuleTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .translatedNetwork("string")
        .build());
    
    policy_transit_gateway_nat_rule_resource = nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource",
        display_name="string",
        parent_path="string",
        action="string",
        logging=False,
        enabled=False,
        firewall_match="string",
        destination_network="string",
        nsx_id="string",
        description="string",
        policy_transit_gateway_nat_rule_id="string",
        sequence_number=0,
        source_network="string",
        tags=[{
            "scope": "string",
            "tag": "string",
        }],
        translated_network="string")
    
    const policyTransitGatewayNatRuleResource = new nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", {
        displayName: "string",
        parentPath: "string",
        action: "string",
        logging: false,
        enabled: false,
        firewallMatch: "string",
        destinationNetwork: "string",
        nsxId: "string",
        description: "string",
        policyTransitGatewayNatRuleId: "string",
        sequenceNumber: 0,
        sourceNetwork: "string",
        tags: [{
            scope: "string",
            tag: "string",
        }],
        translatedNetwork: "string",
    });
    
    type: nsxt:PolicyTransitGatewayNatRule
    properties:
        action: string
        description: string
        destinationNetwork: string
        displayName: string
        enabled: false
        firewallMatch: string
        logging: false
        nsxId: string
        parentPath: string
        policyTransitGatewayNatRuleId: string
        sequenceNumber: 0
        sourceNetwork: string
        tags:
            - scope: string
              tag: string
        translatedNetwork: string
    

    PolicyTransitGatewayNatRule 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 PolicyTransitGatewayNatRule resource accepts the following input properties:

    Action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    DisplayName string
    Display name of the resource.
    ParentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    Description string
    Description of the resource.
    DestinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    Enabled bool
    Flag for enabling the NAT rule, default is true.
    FirewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    Logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicyTransitGatewayNatRuleId string
    ID of the resource.
    SequenceNumber double
    The sequence_number decides the rule_priority of a NAT rule.
    SourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    Tags List<PolicyTransitGatewayNatRuleTag>
    A list of scope + tag pairs to associate with this resource.
    TranslatedNetwork string
    Translated network address.
    Action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    DisplayName string
    Display name of the resource.
    ParentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    Description string
    Description of the resource.
    DestinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    Enabled bool
    Flag for enabling the NAT rule, default is true.
    FirewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    Logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicyTransitGatewayNatRuleId string
    ID of the resource.
    SequenceNumber float64
    The sequence_number decides the rule_priority of a NAT rule.
    SourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    Tags []PolicyTransitGatewayNatRuleTagArgs
    A list of scope + tag pairs to associate with this resource.
    TranslatedNetwork string
    Translated network address.
    action String
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    displayName String
    Display name of the resource.
    parentPath String
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    description String
    Description of the resource.
    destinationNetwork String
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    enabled Boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch String
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging Boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyTransitGatewayNatRuleId String
    ID of the resource.
    sequenceNumber Double
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork String
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags List<PolicyTransitGatewayNatRuleTag>
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork String
    Translated network address.
    action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    displayName string
    Display name of the resource.
    parentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    description string
    Description of the resource.
    destinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    enabled boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyTransitGatewayNatRuleId string
    ID of the resource.
    sequenceNumber number
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags PolicyTransitGatewayNatRuleTag[]
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork string
    Translated network address.
    action str
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    display_name str
    Display name of the resource.
    parent_path str
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    description str
    Description of the resource.
    destination_network str
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    enabled bool
    Flag for enabling the NAT rule, default is true.
    firewall_match str
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsx_id str
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policy_transit_gateway_nat_rule_id str
    ID of the resource.
    sequence_number float
    The sequence_number decides the rule_priority of a NAT rule.
    source_network str
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags Sequence[PolicyTransitGatewayNatRuleTagArgs]
    A list of scope + tag pairs to associate with this resource.
    translated_network str
    Translated network address.
    action String
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    displayName String
    Display name of the resource.
    parentPath String
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    description String
    Description of the resource.
    destinationNetwork String
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    enabled Boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch String
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging Boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policyTransitGatewayNatRuleId String
    ID of the resource.
    sequenceNumber Number
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork String
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork String
    Translated network address.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicyTransitGatewayNatRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    The NSX path of the policy resource.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    The NSX path of the policy resource.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    The NSX path of the policy resource.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id string
    The provider-assigned unique ID for this managed resource.
    path string
    The NSX path of the policy resource.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id str
    The provider-assigned unique ID for this managed resource.
    path str
    The NSX path of the policy resource.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    id String
    The provider-assigned unique ID for this managed resource.
    path String
    The NSX path of the policy resource.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.

    Look up Existing PolicyTransitGatewayNatRule Resource

    Get an existing PolicyTransitGatewayNatRule 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?: PolicyTransitGatewayNatRuleState, opts?: CustomResourceOptions): PolicyTransitGatewayNatRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            description: Optional[str] = None,
            destination_network: Optional[str] = None,
            display_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            firewall_match: Optional[str] = None,
            logging: Optional[bool] = None,
            nsx_id: Optional[str] = None,
            parent_path: Optional[str] = None,
            path: Optional[str] = None,
            policy_transit_gateway_nat_rule_id: Optional[str] = None,
            revision: Optional[float] = None,
            sequence_number: Optional[float] = None,
            source_network: Optional[str] = None,
            tags: Optional[Sequence[PolicyTransitGatewayNatRuleTagArgs]] = None,
            translated_network: Optional[str] = None) -> PolicyTransitGatewayNatRule
    func GetPolicyTransitGatewayNatRule(ctx *Context, name string, id IDInput, state *PolicyTransitGatewayNatRuleState, opts ...ResourceOption) (*PolicyTransitGatewayNatRule, error)
    public static PolicyTransitGatewayNatRule Get(string name, Input<string> id, PolicyTransitGatewayNatRuleState? state, CustomResourceOptions? opts = null)
    public static PolicyTransitGatewayNatRule get(String name, Output<String> id, PolicyTransitGatewayNatRuleState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicyTransitGatewayNatRule    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.
    The following state arguments are supported:
    Action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    Description string
    Description of the resource.
    DestinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    DisplayName string
    Display name of the resource.
    Enabled bool
    Flag for enabling the NAT rule, default is true.
    FirewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    Logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    ParentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    Path string
    The NSX path of the policy resource.
    PolicyTransitGatewayNatRuleId string
    ID of the resource.
    Revision double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    SequenceNumber double
    The sequence_number decides the rule_priority of a NAT rule.
    SourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    Tags List<PolicyTransitGatewayNatRuleTag>
    A list of scope + tag pairs to associate with this resource.
    TranslatedNetwork string
    Translated network address.
    Action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    Description string
    Description of the resource.
    DestinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    DisplayName string
    Display name of the resource.
    Enabled bool
    Flag for enabling the NAT rule, default is true.
    FirewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    Logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    ParentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    Path string
    The NSX path of the policy resource.
    PolicyTransitGatewayNatRuleId string
    ID of the resource.
    Revision float64
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    SequenceNumber float64
    The sequence_number decides the rule_priority of a NAT rule.
    SourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    Tags []PolicyTransitGatewayNatRuleTagArgs
    A list of scope + tag pairs to associate with this resource.
    TranslatedNetwork string
    Translated network address.
    action String
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    description String
    Description of the resource.
    destinationNetwork String
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    displayName String
    Display name of the resource.
    enabled Boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch String
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging Boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    parentPath String
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    path String
    The NSX path of the policy resource.
    policyTransitGatewayNatRuleId String
    ID of the resource.
    revision Double
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    sequenceNumber Double
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork String
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags List<PolicyTransitGatewayNatRuleTag>
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork String
    Translated network address.
    action string
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    description string
    Description of the resource.
    destinationNetwork string
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    displayName string
    Display name of the resource.
    enabled boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch string
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    parentPath string
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    path string
    The NSX path of the policy resource.
    policyTransitGatewayNatRuleId string
    ID of the resource.
    revision number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    sequenceNumber number
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork string
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags PolicyTransitGatewayNatRuleTag[]
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork string
    Translated network address.
    action str
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    description str
    Description of the resource.
    destination_network str
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    display_name str
    Display name of the resource.
    enabled bool
    Flag for enabling the NAT rule, default is true.
    firewall_match str
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging bool
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsx_id str
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    parent_path str
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    path str
    The NSX path of the policy resource.
    policy_transit_gateway_nat_rule_id str
    ID of the resource.
    revision float
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    sequence_number float
    The sequence_number decides the rule_priority of a NAT rule.
    source_network str
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags Sequence[PolicyTransitGatewayNatRuleTagArgs]
    A list of scope + tag pairs to associate with this resource.
    translated_network str
    Translated network address.
    action String
    NAT action, one of SNAT (translates a source IP address into an outbound packet so that the packet appears to originate from a different network), DNAT (translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), and REFLEXIVE (one-to-one mapping of source and destination IP addresses).
    description String
    Description of the resource.
    destinationNetwork String
    For DNAT rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets.
    displayName String
    Display name of the resource.
    enabled Boolean
    Flag for enabling the NAT rule, default is true.
    firewallMatch String
    Indicates how the firewall matches the address after NATing if firewall stage is not skipped, one of MATCH_EXTERNAL_ADDRESS, MATCH_INTERNAL_ADDRESS or BYPASS. Default is MATCH_INTERNAL_ADDRESS.
    logging Boolean
    Boolean flag to indicate whether logging is enabled. The default is false.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    parentPath String
    Policy path of parent NAT object, typically reference to path in nsxt.getPolicyTransitGatewayNat data source.
    path String
    The NSX path of the policy resource.
    policyTransitGatewayNatRuleId String
    ID of the resource.
    revision Number
    Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
    sequenceNumber Number
    The sequence_number decides the rule_priority of a NAT rule.
    sourceNetwork String
    Source network. For SNAT and REFLEXIVE rules, this is a required field. For DNAT rules, it may contain source network for incoming packets.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this resource.
    translatedNetwork String
    Translated network address.

    Supporting Types

    PolicyTransitGatewayNatRuleTag, PolicyTransitGatewayNatRuleTagArgs

    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.
    scope string
    tag string
    A list of scope + tag pairs to associate with this resource.
    scope str
    tag str
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware