github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/cloudstack/r/private_gateway.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_private_gateway"
     4  sidebar_current: "docs-cloudstack-resource-private-gateway"
     5  description: |-
     6    Creates a private gateway.
     7  ---
     8  
     9  # cloudstack_private_gateway
    10  
    11  Creates a private gateway for the given VPC.
    12  
    13  *NOTE: private gateway can only be created using a ROOT account!*
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  resource "cloudstack_private_gateway" "default" {
    19    gateway    = "10.0.0.1"
    20    ip_address = "10.0.0.2"
    21    netmask    = "255.255.255.252"
    22    vlan       = "200"
    23    vpc_id     = "76f6e8dc-07e3-4971-b2a2-8831b0cc4cb4"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `gateway` - (Required) the gateway of the Private gateway. Changing this
    32      forces a new resource to be created.
    33  
    34  * `ip_address` - (Required) the IP address of the Private gateway. Changing this forces
    35      a new resource to be created.
    36  
    37  * `netmask` - (Required) The netmask of the Private gateway. Changing
    38      this forces a new resource to be created.
    39  
    40  * `vlan` - (Required) The VLAN number (1-4095) the network will use.
    41  
    42  * `physical_network_id` - (Optional) The ID of the physical network this private
    43      gateway belongs to.
    44  
    45  * `network_offering` - (Optional) The name or ID of the network offering to use for
    46      the private gateways network connection.
    47  
    48  * `acl_id` - (Required) The ACL ID that should be attached to the network.
    49  
    50  * `vpc_id` - (Required) The VPC ID in which to create this Private gateway. Changing
    51      this forces a new resource to be created.
    52  
    53  ## Attributes Reference
    54  
    55  The following attributes are exported:
    56  
    57  * `id` - The ID of the private gateway.