github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/packet/r/device.html.markdown (about) 1 --- 2 layout: "packet" 3 page_title: "Packet: packet_device" 4 sidebar_current: "docs-packet-resource-device" 5 description: |- 6 Provides a Packet device resource. This can be used to create, modify, and delete devices. 7 --- 8 9 # packet\_device 10 11 Provides a Packet device resource. This can be used to create, 12 modify, and delete devices. 13 14 ## Example Usage 15 16 ``` 17 # Create a device and add it to tf_project_1 18 resource "packet_device" "web1" { 19 hostname = "tf.coreos2" 20 plan = "baremetal_1" 21 facility = "ewr1" 22 operating_system = "coreos_stable" 23 billing_cycle = "hourly" 24 project_id = "${packet_project.tf_project_1.id}" 25 } 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `hostname` - (Required) The device name 33 * `project_id` - (Required) The id of the project in which to create the device 34 * `operating_system` - (Required) The operating system slug 35 * `facility` - (Required) The facility in which to create the device 36 * `plan` - (Required) The config type slug 37 * `billing_cycle` - (Required) monthly or hourly 38 * `user_data` (Optional) - A string of the desired User Data for the device. 39 40 ## Attributes Reference 41 42 The following attributes are exported: 43 44 * `id` - The ID of the device 45 * `hostname`- The hostname of the device 46 * `project_id`- The Id of the project the device belonds to 47 * `facility` - The facility the device is in 48 * `plan` - The config type of the device 49 * `network` - The private and public v4 and v6 IPs assigned to the device 50 * `locked` - Is the device locked 51 * `billing_cycle` - The billing cycle of the device (monthly or hourly) 52 * `operating_system` - The operating system running on the device 53 * `status` - The status of the device 54 * `created` - The timestamp for when the device was created 55 * `updated` - The timestamp for the last time the device was udpated