github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/profitbricks/r/profitbricks_nic.html.markdown (about) 1 --- 2 layout: "profitbricks" 3 page_title: "ProfitBricks: profitbricks_nic" 4 sidebar_current: "docs-profitbricks-resource-nic" 5 description: |- 6 Creates and manages Network Interface objects. 7 --- 8 9 # profitbricks\_nic 10 11 Manages a NICs on ProfitBricks 12 13 ## Example Usage 14 15 ``` 16 resource "profitbricks_nic" "example" { 17 datacenter_id = "${profitbricks_datacenter.example.id}" 18 server_id = "${profitbricks_server.example.id}" 19 lan = 2 20 dhcp = true 21 ip = "${profitbricks_ipblock.example.ip}" 22 } 23 ``` 24 25 ##Argument reference 26 27 * `datacenter_id` - (Required)[string]<sup>[1](#myfootnote1)</sup> 28 * `server_id` - (Required)[string]<sup>[1](#myfootnote1)</sup> 29 * `lan` - (Required) [integer] The LAN ID the NIC will sit on. 30 * `name` - (Optional) [string] The name of the LAN. 31 * `dhcp` - (Optional) [boolean] 32 * `ip` - (Optional) [string] IP assigned to the NIC. 33 * `firewall_active` - (Optional) [boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the nic. 34 * `nat` - (Optional) [boolean] Boolean value indicating if the private IP address has outbound access to the public internet.