github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/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    ipaddress = "192.168.0.1"
    18    virtual_machine = "server-1"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `ipaddress` - (Required) The name or ID of the public IP address for which
    27      static NAT will be enabled. Changing this forces a new resource to be
    28      created.
    29  
    30  * `network` - (Optional) The name or ID of the network of the VM the static
    31      NAT will be enabled for. Required when public IP address is not
    32      associated with any guest network yet (VPC case). Changing this forces
    33      a new resource to be created.
    34  
    35  * `virtual_machine` - (Required) The name or ID of the virtual machine to
    36      enable the static NAT feature for. Changing this forces a new resource
    37      to be created.
    38  
    39  * `vm_guest_ip` - (Optional) The virtual machine IP address for the port
    40      forwarding rule (useful when the virtual machine has a secondairy NIC).
    41      Changing this forces a new resource to be created.
    42  
    43  ## Attributes Reference
    44  
    45  The following attributes are exported:
    46  
    47  * `id` - The static nat ID.
    48  * `network` - The network the public IP address is associated with.
    49  * `vm_guest_ip` - The IP address of the virtual machine that is used
    50      for the port forwarding rule.