github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    17  # Create a device and add it to cool_project
    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.cool_project.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 hardware config 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 belongs to
    47  * `facility` - The facility the device is in
    48  * `plan` - The hardware config of the device
    49  * `network` - The private and public v4 and v6 IPs assigned to the device
    50  * `locked` - Whether the device is 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 updated