2015-10-26 15:45:48 +01:00
|
|
|
---
|
|
|
|
layout: "vcd"
|
|
|
|
page_title: "vCloudDirector: vcd_dnat"
|
|
|
|
sidebar_current: "docs-vcd-resource-dnat"
|
|
|
|
description: |-
|
|
|
|
Provides a vCloud Director DNAT resource. This can be used to create, modify, and delete destination NATs to map external IPs to a VM.
|
|
|
|
---
|
|
|
|
|
|
|
|
# vcd\_dnat
|
|
|
|
|
|
|
|
Provides a vCloud Director DNAT resource. This can be used to create, modify,
|
2015-11-02 20:22:48 +01:00
|
|
|
and delete destination NATs to map an external IP/port to a VM.
|
2015-10-26 15:45:48 +01:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "vcd_dnat" "web" {
|
2017-02-18 23:48:50 +01:00
|
|
|
edge_gateway = "Edge Gateway Name"
|
|
|
|
external_ip = "78.101.10.20"
|
|
|
|
port = 80
|
|
|
|
internal_ip = "10.10.0.5"
|
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 DNAT
|
|
|
|
* `external_ip` - (Required) One of the external IPs available on your Edge Gateway
|
|
|
|
* `port` - (Required) The port number to map
|
|
|
|
* `internal_ip` - (Required) The IP of the VM to map to
|