github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/website/source/docs/providers/cloudstack/r/static_nat.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_static_nat" 4 sidebar_current: "docs-cloudstack-resource-static-nat" 5 description: |- 6 Enables static NAT for a given IP address. 7 --- 8 9 # cloudstack\_static\_nat 10 11 Enables static NAT for a given IP address 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_static_nat" "default" { 17 ip_address_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7" 18 virtual_machine_id = "6ca2a163-bc68-429c-adc8-ab4a620b1bb3" 19 } 20 ``` 21 22 ## Argument Reference 23 24 The following arguments are supported: 25 26 * `ip_address_id` - (Required) The public IP address ID for which static 27 NAT will be enabled. Changing this forces a new resource to be created. 28 29 * `network_id` - (Optional) The network ID of the VM the static NAT will be 30 enabled for. Required when public IP address is not associated with any 31 guest network yet (VPC case). Changing this forces a new resource to be 32 created. 33 34 * `virtual_machine_id` - (Required) The virtual machine ID to enable the 35 static NAT feature for. Changing this forces a new resource to be created. 36 37 * `vm_guest_ip` - (Optional) The virtual machine IP address for the port 38 forwarding rule (useful when the virtual machine has a secondairy NIC). 39 Changing this forces a new resource to be created. 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `id` - The static nat ID. 46 * `network` - The network the public IP address is associated with. 47 * `vm_guest_ip` - The IP address of the virtual machine that is used 48 for the port forwarding rule.