vcd.NsxvSnat
Explore with Pulumi AI
Create NsxvSnat Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxvSnat(name: string, args: NsxvSnatArgs, opts?: CustomResourceOptions);
@overload
def NsxvSnat(resource_name: str,
args: NsxvSnatArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxvSnat(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_name: Optional[str] = None,
edge_gateway: Optional[str] = None,
original_address: Optional[str] = None,
network_type: Optional[str] = None,
nsxv_snat_id: Optional[str] = None,
logging_enabled: Optional[bool] = None,
description: Optional[str] = None,
org: Optional[str] = None,
enabled: Optional[bool] = None,
rule_tag: Optional[float] = None,
rule_type: Optional[str] = None,
translated_address: Optional[str] = None,
vdc: Optional[str] = None)
func NewNsxvSnat(ctx *Context, name string, args NsxvSnatArgs, opts ...ResourceOption) (*NsxvSnat, error)
public NsxvSnat(string name, NsxvSnatArgs args, CustomResourceOptions? opts = null)
public NsxvSnat(String name, NsxvSnatArgs args)
public NsxvSnat(String name, NsxvSnatArgs args, CustomResourceOptions options)
type: vcd:NsxvSnat
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 NsxvSnatArgs
- 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 NsxvSnatArgs
- 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 NsxvSnatArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxvSnatArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxvSnatArgs
- 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 nsxvSnatResource = new Vcd.NsxvSnat("nsxvSnatResource", new()
{
NetworkName = "string",
EdgeGateway = "string",
OriginalAddress = "string",
NetworkType = "string",
NsxvSnatId = "string",
LoggingEnabled = false,
Description = "string",
Org = "string",
Enabled = false,
RuleTag = 0,
RuleType = "string",
TranslatedAddress = "string",
Vdc = "string",
});
example, err := vcd.NewNsxvSnat(ctx, "nsxvSnatResource", &vcd.NsxvSnatArgs{
NetworkName: pulumi.String("string"),
EdgeGateway: pulumi.String("string"),
OriginalAddress: pulumi.String("string"),
NetworkType: pulumi.String("string"),
NsxvSnatId: pulumi.String("string"),
LoggingEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
Org: pulumi.String("string"),
Enabled: pulumi.Bool(false),
RuleTag: pulumi.Float64(0),
RuleType: pulumi.String("string"),
TranslatedAddress: pulumi.String("string"),
Vdc: pulumi.String("string"),
})
var nsxvSnatResource = new NsxvSnat("nsxvSnatResource", NsxvSnatArgs.builder()
.networkName("string")
.edgeGateway("string")
.originalAddress("string")
.networkType("string")
.nsxvSnatId("string")
.loggingEnabled(false)
.description("string")
.org("string")
.enabled(false)
.ruleTag(0)
.ruleType("string")
.translatedAddress("string")
.vdc("string")
.build());
nsxv_snat_resource = vcd.NsxvSnat("nsxvSnatResource",
network_name="string",
edge_gateway="string",
original_address="string",
network_type="string",
nsxv_snat_id="string",
logging_enabled=False,
description="string",
org="string",
enabled=False,
rule_tag=0,
rule_type="string",
translated_address="string",
vdc="string")
const nsxvSnatResource = new vcd.NsxvSnat("nsxvSnatResource", {
networkName: "string",
edgeGateway: "string",
originalAddress: "string",
networkType: "string",
nsxvSnatId: "string",
loggingEnabled: false,
description: "string",
org: "string",
enabled: false,
ruleTag: 0,
ruleType: "string",
translatedAddress: "string",
vdc: "string",
});
type: vcd:NsxvSnat
properties:
description: string
edgeGateway: string
enabled: false
loggingEnabled: false
networkName: string
networkType: string
nsxvSnatId: string
org: string
originalAddress: string
ruleTag: 0
ruleType: string
translatedAddress: string
vdc: string
NsxvSnat 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 NsxvSnat resource accepts the following input properties:
- Edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- Network
Name string - The name of the network on which to apply the SNAT rule.
- Network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - Original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- Description string
- Free text description.
- Enabled bool
- Defines if the rule is enabaled. Default
true
. - Logging
Enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - Nsxv
Snat stringId - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Rule
Tag double - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- Rule
Type string - Possible values -
user
,internal_high
. - Translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
- Edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- Network
Name string - The name of the network on which to apply the SNAT rule.
- Network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - Original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- Description string
- Free text description.
- Enabled bool
- Defines if the rule is enabaled. Default
true
. - Logging
Enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - Nsxv
Snat stringId - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Rule
Tag float64 - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- Rule
Type string - Possible values -
user
,internal_high
. - Translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
- edge
Gateway String - The name of the edge gateway on which to apply the SNAT rule.
- network
Name String - The name of the network on which to apply the SNAT rule.
- network
Type String - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - original
Address String - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- description String
- Free text description.
- enabled Boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled Boolean - Defines if the logging for this rule is enabaled. Default
false
. - nsxv
Snat StringId - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- rule
Tag Double - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type String - Possible values -
user
,internal_high
. - translated
Address String - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc String
- The name of VDC to use, optional if defined at provider level.
- edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- network
Name string - The name of the network on which to apply the SNAT rule.
- network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- description string
- Free text description.
- enabled boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled boolean - Defines if the logging for this rule is enabaled. Default
false
. - nsxv
Snat stringId - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- rule
Tag number - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type string - Possible values -
user
,internal_high
. - translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc string
- The name of VDC to use, optional if defined at provider level.
- edge_
gateway str - The name of the edge gateway on which to apply the SNAT rule.
- network_
name str - The name of the network on which to apply the SNAT rule.
- network_
type str - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - original_
address str - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- description str
- Free text description.
- enabled bool
- Defines if the rule is enabaled. Default
true
. - logging_
enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - nsxv_
snat_ strid - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- rule_
tag float - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule_
type str - Possible values -
user
,internal_high
. - translated_
address str - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc str
- The name of VDC to use, optional if defined at provider level.
- edge
Gateway String - The name of the edge gateway on which to apply the SNAT rule.
- network
Name String - The name of the network on which to apply the SNAT rule.
- network
Type String - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - original
Address String - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- description String
- Free text description.
- enabled Boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled Boolean - Defines if the logging for this rule is enabaled. Default
false
. - nsxv
Snat StringId - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- rule
Tag Number - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type String - Possible values -
user
,internal_high
. - translated
Address String - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc String
- The name of VDC to use, optional if defined at provider level.
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxvSnat resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NsxvSnat Resource
Get an existing NsxvSnat 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?: NsxvSnatState, opts?: CustomResourceOptions): NsxvSnat
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
edge_gateway: Optional[str] = None,
enabled: Optional[bool] = None,
logging_enabled: Optional[bool] = None,
network_name: Optional[str] = None,
network_type: Optional[str] = None,
nsxv_snat_id: Optional[str] = None,
org: Optional[str] = None,
original_address: Optional[str] = None,
rule_tag: Optional[float] = None,
rule_type: Optional[str] = None,
translated_address: Optional[str] = None,
vdc: Optional[str] = None) -> NsxvSnat
func GetNsxvSnat(ctx *Context, name string, id IDInput, state *NsxvSnatState, opts ...ResourceOption) (*NsxvSnat, error)
public static NsxvSnat Get(string name, Input<string> id, NsxvSnatState? state, CustomResourceOptions? opts = null)
public static NsxvSnat get(String name, Output<String> id, NsxvSnatState state, CustomResourceOptions options)
resources: _: type: vcd:NsxvSnat 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.
- Description string
- Free text description.
- Edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- Enabled bool
- Defines if the rule is enabaled. Default
true
. - Logging
Enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - Network
Name string - The name of the network on which to apply the SNAT rule.
- Network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - Nsxv
Snat stringId - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- Rule
Tag double - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- Rule
Type string - Possible values -
user
,internal_high
. - Translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
- Description string
- Free text description.
- Edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- Enabled bool
- Defines if the rule is enabaled. Default
true
. - Logging
Enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - Network
Name string - The name of the network on which to apply the SNAT rule.
- Network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - Nsxv
Snat stringId - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- Rule
Tag float64 - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- Rule
Type string - Possible values -
user
,internal_high
. - Translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- Vdc string
- The name of VDC to use, optional if defined at provider level.
- description String
- Free text description.
- edge
Gateway String - The name of the edge gateway on which to apply the SNAT rule.
- enabled Boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled Boolean - Defines if the logging for this rule is enabaled. Default
false
. - network
Name String - The name of the network on which to apply the SNAT rule.
- network
Type String - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - nsxv
Snat StringId - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- original
Address String - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- rule
Tag Double - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type String - Possible values -
user
,internal_high
. - translated
Address String - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc String
- The name of VDC to use, optional if defined at provider level.
- description string
- Free text description.
- edge
Gateway string - The name of the edge gateway on which to apply the SNAT rule.
- enabled boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled boolean - Defines if the logging for this rule is enabaled. Default
false
. - network
Name string - The name of the network on which to apply the SNAT rule.
- network
Type string - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - nsxv
Snat stringId - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- original
Address string - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- rule
Tag number - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type string - Possible values -
user
,internal_high
. - translated
Address string - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc string
- The name of VDC to use, optional if defined at provider level.
- description str
- Free text description.
- edge_
gateway str - The name of the edge gateway on which to apply the SNAT rule.
- enabled bool
- Defines if the rule is enabaled. Default
true
. - logging_
enabled bool - Defines if the logging for this rule is enabaled. Default
false
. - network_
name str - The name of the network on which to apply the SNAT rule.
- network_
type str - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - nsxv_
snat_ strid - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- original_
address str - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- rule_
tag float - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule_
type str - Possible values -
user
,internal_high
. - translated_
address str - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc str
- The name of VDC to use, optional if defined at provider level.
- description String
- Free text description.
- edge
Gateway String - The name of the edge gateway on which to apply the SNAT rule.
- enabled Boolean
- Defines if the rule is enabaled. Default
true
. - logging
Enabled Boolean - Defines if the logging for this rule is enabaled. Default
false
. - network
Name String - The name of the network on which to apply the SNAT rule.
- network
Type String - Type of the network on which to apply the DNAT rule. Possible values
org
orext
. - nsxv
Snat StringId - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- original
Address String - IP address, range or subnet. These addresses are the IP addresses of one or more virtual machines for which you are configuring the SNAT rule so that they can send traffic to the external network.
- rule
Tag Number - This can be used to specify user-controlled rule tag. If not specified, it will report rule ID after creation. Must be between 65537-131072.
- rule
Type String - Possible values -
user
,internal_high
. - translated
Address String - IP address, range or subnet. This address is always the public IP address of the gateway for which you are configuring the SNAT rule. Specifies the IP address to which source addresses (the virtual machines) on outbound packets are translated to when they send traffic to the external network.
- vdc String
- The name of VDC to use, optional if defined at provider level.
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.