2015-10-26 15:45:48 +01:00
|
|
|
---
|
|
|
|
layout: "vcd"
|
|
|
|
page_title: "vCloudDirector: vcd_snat"
|
|
|
|
sidebar_current: "docs-vcd-resource-snat"
|
|
|
|
description: |-
|
|
|
|
Provides a vCloud Director SNAT resource. This can be used to create, modify, and delete source NATs to allow vApps to send external traffic.
|
|
|
|
---
|
|
|
|
|
|
|
|
# vcd\_snat
|
|
|
|
|
|
|
|
Provides a vCloud Director SNAT resource. This can be used to create, modify,
|
|
|
|
and delete source NATs to allow vApps to send external traffic.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2015-10-26 15:45:48 +01:00
|
|
|
resource "vcd_snat" "outbound" {
|
2017-02-18 23:48:50 +01:00
|
|
|
edge_gateway = "Edge Gateway Name"
|
|
|
|
external_ip = "78.101.10.20"
|
|
|
|
internal_ip = "10.10.0.0/24"
|
2015-10-26 15:45:48 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `edge_gateway` - (Required) The name of the edge gateway on which to apply the SNAT
|
|
|
|
* `external_ip` - (Required) One of the external IPs available on your Edge Gateway
|
|
|
|
* `internal_ip` - (Required) The IP or IP Range of the VM(s) to map from
|