layout | page_title | sidebar_current | description |
---|---|---|---|
gridscale |
gridscale: gridscale_storage_import |
docs-gridscale-resource-storage-import |
Make a clone of an existing storage instance. |
Create a new storage via a storage backup. This can be used to create, modify, and delete the imported storages.
The following example shows how to clone a storage instance in gridscale:
resource "gridscale_storage_import" "foo" {
storage_backup_id = "xxx-xxx-xxx-xxx-xxx"
name = "imported storage"
storage_type = "storage_high"
capacity = 20
}
The following arguments are supported:
-
storage_backup_id
- (Required) ID of the storage backup that will be used to create a new storage from. -
name
- (Required) The human-readable name of the object. It supports the full UTF-8 character set, with a maximum of 64 characters. -
capacity
- (Optional) The default value is inherited from the source storage instance. A desired capacity is possible. Required (integer - minimum: 1 - maximum: 4096). -
storage_type
- (Optional) The default value is inherited from the source storage instance. A desired storage type is possible. (one of storage, storage_high, storage_insane). -
labels
- (Optional) List of labels in the format [ "label1", "label2" ].
Timeouts configuration options (in seconds): More info: terraform.io/docs/configuration/resources.html#operation-timeouts
create
- (Default value is "5m" - 5 minutes) Used for creating a resource.update
- (Default value is "5m" - 5 minutes) Used for updating a resource.delete
- (Default value is "5m" - 5 minutes) Used for deleting a resource.
This resource exports the following attributes:
name
- See Argument Reference above.capacity
- See Argument Reference above.storage_type
- See Argument Reference above.location_uuid
- The location this resource is placed. The location of a resource is determined by it's project.labels
- See Argument Reference above.status
- status indicates the status of the object.create_time
- The time the object was created.change_time
- Defines the date and time of the last object change.location_country
- Two digit country code (ISO 3166-2) of the location where this object is placed.location_iata
- Uses IATA airport code, which works as a location identifier.location_name
- The location name.license_product_no
- If a template has been used that requires a license key (e.g. Windows Servers) this shows the product_no of the license (see the /prices endpoint for more details).last_used_template
- Indicates the UUID of the last used template on this storage (inherited from snapshots).usage_in_minutes
- The amount of minutes the IP address has been in use.current_price
- The price for the current period since the last bill.