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. |
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
orid
can be provided at a time.
/*
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.
id
(String) Unique identifier of the volume group. Conflicts withname
.name
(String) Volume group name. Conflicts withid
.
volume_groups
(Attributes List) List of volume groups. (see below for nested schema)
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 typevolumes
(Attributes List) List of the volumes that are associated with this volume_group. (see below for nested schema)
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.
Read-Only:
id
(String)name
(String)
Read-Only:
creator_type
(String)expiration_timestamp
(String)source_id
(String)
Read-Only:
description
(String)id
(String)name
(String)
Read-Only:
description
(String) Description of the volume.id
(String) Unique identifier of the volume instance.name
(String) Name of the volume.