Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.88 KB

snapshot.html.md

File metadata and controls

57 lines (45 loc) · 1.88 KB
layout page_title sidebar_current description
gridscale
gridscale: storage snapshot
docs-gridscale-datasource-snapshot
Gets data of a storage snapshot.

gridscale_snapshot

Get data of a storage snapshot resource.

Example Usage

resource "gridscale_storage" "foo" {
  name   = "storage"
  capacity = 1
}
resource "gridscale_snapshot" "foo" {
  name = "snapshot"
  storage_uuid = gridscale_storage.foo.id
}

data "gridscale_snapshot" "foo" {
  resource_id   = gridscale_snapshot.foo.id
    storage_uuid = gridscale_storage.foo.id
}

Argument Reference

The following arguments are supported:

  • resource_id - (Required) ID of a resource (UUID of snapshot).

  • storage_uuid - (Required) UUID of the storage used to create this snapshot.

Attributes Reference

The following attributes are exported:

  • id - The UUID of the snapshot.
  • storage_uuid - The UUID of the storage used to create this snapshot.
  • name - The name of the snapshot.
  • status - The status of the snapshot.
  • location_uuid - The UUID of the location, that helps to identify which datacenter an object belongs to.
  • location_iata - The IATA airport code, which works as a location identifier.
  • location_country - The human-readable name of the country of the snapshot.
  • location_name - The human-readable name of the location of the snapshot.
  • create_time - The date and time the ip was initially created.
  • change_time - The date and time of the last snapshot change.
  • usage_in_minutes - Total minutes the ip has been running.
  • current_price - The price for the current period since the last bill.
  • capacity - The capacity of the snapshot in GB.
  • 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).
  • labels - The list of labels.