Snat
f5bigip.ltm.Snat Manages a snat configuration
For resources should be named with their “full path”. The full path is the combination of the partition + name of the resource. For example /Common/my-pool.
Example Usage
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
class MyStack : Stack
{
public MyStack()
{
var test_snat = new F5BigIP.Ltm.Snat("test-snat", new F5BigIP.Ltm.SnatArgs
{
Autolasthop = "default",
FullPath = "/Common/test-snat",
Mirror = "disabled",
Name = "TEST_SNAT_NAME",
Origins =
{
new F5BigIP.Ltm.Inputs.SnatOriginArgs
{
Name = "2.2.2.2",
},
new F5BigIP.Ltm.Inputs.SnatOriginArgs
{
Name = "3.3.3.3",
},
},
Partition = "Common",
Translation = "/Common/136.1.1.1",
Vlansdisabled = true,
});
}
}
Coming soon!
import pulumi
import pulumi_f5bigip as f5bigip
test_snat = f5bigip.ltm.Snat("test-snat",
autolasthop="default",
full_path="/Common/test-snat",
mirror="disabled",
name="TEST_SNAT_NAME",
origins=[
{
"name": "2.2.2.2",
},
{
"name": "3.3.3.3",
},
],
partition="Common",
translation="/Common/136.1.1.1",
vlansdisabled=True)import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
const test_snat = new f5bigip.ltm.Snat("test-snat", {
autolasthop: "default",
fullPath: "/Common/test-snat",
mirror: "disabled",
name: "TEST_SNAT_NAME",
origins: [
{
name: "2.2.2.2",
},
{
name: "3.3.3.3",
},
],
partition: "Common",
translation: "/Common/136.1.1.1",
vlansdisabled: true,
});Create a Snat Resource
new Snat(name: string, args: SnatArgs, opts?: CustomResourceOptions);def Snat(resource_name, opts=None, autolasthop=None, full_path=None, mirror=None, name=None, origins=None, partition=None, snatpool=None, sourceport=None, translation=None, vlans=None, vlansdisabled=None, __props__=None);public Snat(string name, SnatArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SnatArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SnatArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnatArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Snat Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Snat resource accepts the following input properties:
- Name string
Name of the snat
- Origins
List<Pulumi.
F5Big IP. Ltm. Inputs. Snat Origin Args> IP or hostname of the snat
- Autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- Full
Path string Fullpath
- Mirror string
Enables or disables mirroring of SNAT connections.
- Partition string
Displays the administrative partition within which this profile resides
- Snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- Sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- Translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- Vlans List<string>
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- Vlansdisabled bool
Disables the SNAT on all VLANs.
- Name string
Name of the snat
- Origins
[]Snat
Origin IP or hostname of the snat
- Autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- Full
Path string Fullpath
- Mirror string
Enables or disables mirroring of SNAT connections.
- Partition string
Displays the administrative partition within which this profile resides
- Snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- Sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- Translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- Vlans []string
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- Vlansdisabled bool
Disables the SNAT on all VLANs.
- name string
Name of the snat
- origins
Snat
Origin[] IP or hostname of the snat
- autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- full
Path string Fullpath
- mirror string
Enables or disables mirroring of SNAT connections.
- partition string
Displays the administrative partition within which this profile resides
- snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- vlans string[]
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- vlansdisabled boolean
Disables the SNAT on all VLANs.
- name str
Name of the snat
- origins
List[Snat
Origin] IP or hostname of the snat
- autolasthop str
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- full_
path str Fullpath
- mirror str
Enables or disables mirroring of SNAT connections.
- partition str
Displays the administrative partition within which this profile resides
- snatpool str
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- sourceport str
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- translation str
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- vlans List[str]
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- vlansdisabled bool
Disables the SNAT on all VLANs.
Outputs
All input properties are implicitly available as output properties. Additionally, the Snat resource produces the following output properties:
Look up an Existing Snat Resource
Get an existing Snat 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?: SnatState, opts?: CustomResourceOptions): Snatstatic get(resource_name, id, opts=None, autolasthop=None, full_path=None, mirror=None, name=None, origins=None, partition=None, snatpool=None, sourceport=None, translation=None, vlans=None, vlansdisabled=None, __props__=None);public static Snat Get(string name, Input<string> id, SnatState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- Full
Path string Fullpath
- Mirror string
Enables or disables mirroring of SNAT connections.
- Name string
Name of the snat
- Origins
List<Pulumi.
F5Big IP. Ltm. Inputs. Snat Origin Args> IP or hostname of the snat
- Partition string
Displays the administrative partition within which this profile resides
- Snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- Sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- Translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- Vlans List<string>
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- Vlansdisabled bool
Disables the SNAT on all VLANs.
- Autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- Full
Path string Fullpath
- Mirror string
Enables or disables mirroring of SNAT connections.
- Name string
Name of the snat
- Origins
[]Snat
Origin IP or hostname of the snat
- Partition string
Displays the administrative partition within which this profile resides
- Snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- Sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- Translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- Vlans []string
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- Vlansdisabled bool
Disables the SNAT on all VLANs.
- autolasthop string
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- full
Path string Fullpath
- mirror string
Enables or disables mirroring of SNAT connections.
- name string
Name of the snat
- origins
Snat
Origin[] IP or hostname of the snat
- partition string
Displays the administrative partition within which this profile resides
- snatpool string
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- sourceport string
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- translation string
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- vlans string[]
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- vlansdisabled boolean
Disables the SNAT on all VLANs.
- autolasthop str
-(Optional) Specifies whether to automatically map last hop for pools or not. The default is to use next level’s default.
- full_
path str Fullpath
- mirror str
Enables or disables mirroring of SNAT connections.
- name str
Name of the snat
- origins
List[Snat
Origin] IP or hostname of the snat
- partition str
Displays the administrative partition within which this profile resides
- snatpool str
Specifies the name of a SNAT pool. You can only use this option when automap and translation are not used.
- sourceport str
Specifies whether the system preserves the source port of the connection. The default is preserve. Use of the preserve-strict setting should be restricted to UDP only under very special circumstances such as nPath or transparent (that is, no translation of any other L3/L4 field), where there is a 1:1 relationship between virtual IP addresses and node addresses, or when clustered multi-processing (CMP) is disabled. The change setting is useful for obfuscating internal network addresses.
- translation str
Specifies the name of a translated IP address. Note that translated addresses are outside the traffic management system. You can only use this option when automap and snatpool are not used.
- vlans List[str]
Specifies the name of the VLAN to which you want to assign the SNAT. The default is vlans-enabled.
- vlansdisabled bool
Disables the SNAT on all VLANs.
Supporting Types
SnatOrigin
- App
Service string - Name string
Name of the snat
- App
Service string - Name string
Name of the snat
- app
Service string - name string
Name of the snat
- app_
service str - name str
Name of the snat
Package Details
- Repository
- https://github.com/pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigipTerraform Provider.