powerstore_volumegroup_snapshot (Data Source)

VolumeGroup Snapshot DataSource.

Note: Only one of name or id can be provided at a time.

Example Usage

# commands to run this tf file : terraform init && terraform apply --auto-approve
# This datasource reads volume group snapshots either by id or name where user can provide a value to any one of them
# If it is a empty datsource block , then it will read all the volume group snapshots
# If id or name is provided then it reads a particular volume group snapshot with that id or name
# Only one of the attribute can be provided among id and name

data "powerstore_volumegroup_snapshot" "test1" {
#  name = "test_volumegroup_snap"
}

output "volumeGroupSnapshotResult" {
  value = data.powerstore_volumegroup_snapshot.test1.volume_groups
}

Schema

Optional

  • id (String) Unique identifier of the volume group snapshot. Conflicts with name.
  • name (String) Volume group snapshot name. Conflicts with id.

Read-Only

Nested Schema for volume_groups

Read-Only:

  • creation_timestamp (String) The time at which the volume group was created.
  • description (String) Volume group snapshot description.
  • id (String) Unique identifier of the volume group snapshot.
  • is_importing (Boolean) Indicates whether the volume group is being imported.
  • is_protectable (Boolean) This is a derived field that is set internally.
  • is_replication_destination (Boolean) Indicates whether this volume group is a replication destination.
  • is_write_order_consistent (Boolean) For a primary or a clone volume group, this property determines whether snapshot sets of the group will be write order consistent.
  • location_history (Attributes List) Storage resource location history. (see below for nested schema)
  • migration_session (Object) Properties of a migration session. (see below for nested schema)
  • migration_session_id (String) Unique identifier of the migration session assigned to the volume group when it is part of a migration activity.
  • name (String) Volume group snapshot name.
  • placement_rule (String) This is set during creation, and determines resource balancer recommendations.
  • protection_data (Object) Specifies the ProtectionData associated with a volume group. (see below for nested schema)
  • protection_policy (Object) Specifies the Protection Policy associated with a volume group. (see below for nested schema)
  • protection_policy_id (String) Unique identifier of the protection policy assigned to the volume group.
  • type (String) Type of volume.
  • type_l10n (String) Localized message string corresponding to type
  • volumes (Attributes List) List of the volumes that are associated with this volume_group. (see below for nested schema)

Nested Schema for volume_groups.location_history

Read-Only:

  • from_appliance_id (String) Unique identifier of the appliance from which the volume was relocated.
  • to_appliance_id (String) Unique identifier of the appliance to which the volume was relocated.

Nested Schema for volume_groups.migration_session

Read-Only:

  • id (String)
  • name (String)

Nested Schema for volume_groups.protection_data

Read-Only:

  • creator_type (String)
  • expiration_timestamp (String)
  • source_id (String)

Nested Schema for volume_groups.protection_policy

Read-Only:

  • description (String)
  • id (String)
  • name (String)

Nested Schema for volume_groups.volumes

Read-Only:

  • description (String) Description of the volume.
  • id (String) Unique identifier of the volume instance.
  • name (String) Name of the volume.