github.com/mkuzmin/terraform@v0.3.7-0.20161118171027-ec4c00ff92a9/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` - (Deprecated) The network ID of the VM the static NAT will be
    30      enabled for. This argument is no longer needed and can be safely omitted.
    31  
    32  * `virtual_machine_id` - (Required) The virtual machine ID to enable the
    33      static NAT feature for. Changing this forces a new resource to be created.
    34  
    35  * `vm_guest_ip` - (Optional) The virtual machine IP address for the port
    36      forwarding rule (useful when the virtual machine has a secondairy NIC).
    37      Changing this forces a new resource to be created.
    38  
    39  * `project` - (Optional) The name or ID of the project to deploy this
    40      instance to. Changing this forces a new resource to be created.
    41  
    42  ## Attributes Reference
    43  
    44  The following attributes are exported:
    45  
    46  * `id` - The static nat ID.
    47  * `vm_guest_ip` - The IP address of the virtual machine that is used
    48      for the port forwarding rule.