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

     1  ---
     2  layout: "profitbricks"
     3  page_title: "ProfitBricks: profitbricks_server"
     4  sidebar_current: "docs-profitbricks-resource-volume"
     5  description: |-
     6    Creates and manages ProfitBricks Volume objects.
     7  ---
     8  
     9  # profitbricks\_volume
    10  
    11  Manages a Volumes on ProfitBricks
    12  
    13  ## Example Usage
    14  
    15  A primary volume will be created with the server. If there is a need for additional volume, this resource handles it.
    16  
    17  ```hcl
    18  resource "profitbricks_volume" "example" {
    19    datacenter_id = "${profitbricks_datacenter.example.id}"
    20    server_id     = "${profitbricks_server.example.id}"
    21    image_name    = "${var.ubuntu}"
    22    size          = 5
    23    disk_type     = "HDD"
    24    ssh_key_path  = "${var.private_key_path}"
    25    bus           = "VIRTIO"
    26  }
    27  ```
    28  
    29  ##Argument reference
    30  
    31  * `datacenter_id` - (Required) [string] <sup>[1](#myfootnote1)</sup>
    32  * `server_id` - (Required)[string] <sup>[1](#myfootnote1)</sup>
    33  * `disk_type` - (Required) [string] The volume type, HDD or SSD.
    34  * `bus` - (Required) [boolean] The bus type of the volume.
    35  * `size` -  (Required)[integer] The size of the volume in GB.
    36  * `ssh_key_path` -  (Required)[list] List of paths to files containing a public SSH key that will be injected into ProfitBricks provided Linux images. Required if `image_password` is not provided.
    37  * `image_password` - [string] Required if `sshkey_path` is not provided.
    38  * `image_name` - [string] The image or snapshot ID. It is required if `licence_type` is not provided.
    39  * `licence_type` - [string] Required if `image_name` is not provided.
    40  * `name` - (Optional) [string] The name of the volume.
    41  * `availability_zone` - (Optional) [string] The storage availability zone assigned to the volume. AUTO, ZONE_1, ZONE_2, or ZONE_3