Skip to content

Latest commit

 

History

History
148 lines (108 loc) · 6.16 KB

File metadata and controls

148 lines (108 loc) · 6.16 KB
title linkTitle page_title subcategory description
powerstore_volumegroup data source
powerstore_volumegroup
powerstore_volumegroup Data Source - powerstore
This datasource is used to query the existing volumegroup from PowerStore array. The information fetched from this datasource can be used for getting the details for further processing in resource block.

powerstore_volumegroup (Data Source)

This datasource is used to query the existing volumegroup from PowerStore array. The information fetched from this datasource can be used for getting the details for further processing in resource block.

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

Example Usage

/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# commands to run this tf file : terraform init && terraform apply --auto-approve
# This datasource reads volume groups 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 groups
# If id or name is provided then it reads a particular volume group with that id or name
# Only one of the attribute can be provided among id and  name 

data "powerstore_volumegroup" "test1" {
  name = "test_volume_group1"
}

output "volumeGroupResult" {
  value = data.powerstore_volumegroup.test1.volume_groups
}

After the successful execution of above said block, We can see the output by executing terraform output command. Also, we can fetch information via the variable: data.powerstore_volumegroup.test1.attribute_name where attribute_name is the attribute which user wants to fetch.

Schema

Optional

  • id (String) Unique identifier of the volume group. Conflicts with name.
  • name (String) Volume group 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 description.
  • id (String) Unique identifier of the volume group.
  • 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 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.