This document version is no longer actively maintained.
The site that you are currently viewing is an archived snapshot.
For up-to-date documentation, see the latest version.
powerflex_vtree (Data Source)
This datasource is used to query the existing vtrees from PowerFlex array. The information fetched from this datasource can be used for getting the details.
Example Usage
/*
Copyright (c) 2023-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
# Get all VTrees details present on the cluster
data "powerflex_vtree" "example1" {
}
# Get VTree details using VTree IDs
data "powerflex_vtree" "example2" {
vtree_ids = ["VTree_ID1", "VTree_ID2"]
}
# Get VTree details using Volume IDs
data "powerflex_vtree" "example3" {
volume_ids = ["Volume_ID1", "Volume_ID2"]
}
# Get VTree details using Volume Names
data "powerflex_vtree" "example4" {
volume_names = ["Volume_Name1", "Volume_Name2"]
}
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.powerflex_vtree.datasource_block_name.attribute_name
where datasource_block_name is the name of the data source block and attribute_name is the attribute which user wants to fetch.
Schema
Optional
volume_ids
(Set of String) List of volume IDsvolume_names
(Set of String) List of volume namesvtree_ids
(Set of String) List of VTree IDs
Read-Only
id
(String) Placeholder identifier attribute.vtree_details
(Attributes Set) VTree details (see below for nested schema)
Nested Schema for vtree_details
Read-Only:
compression_method
(String) Compression methoddata_layout
(String) Data layoutid
(String) VTree IDin_deletion
(Boolean) In deletionlinks
(Attributes List) Specifies the links asscociated with VTree (see below for nested schema)name
(String) VTree nameroot_volumes
(Set of String) Root volumesstorage_pool_id
(String) Storage pool IDvtree_migration_info
(Attributes) Vtree migration information (see below for nested schema)
Nested Schema for vtree_details.links
Read-Only:
href
(String) Specifies the exact path to fetch the detailsrel
(String) Specifies the relationship with the VTree
Nested Schema for vtree_details.vtree_migration_info
Read-Only:
destination_storage_pool_id
(String) Destination storage pool IDmigration_pause_reason
(String) Migration pause reasonmigration_queue_position
(Number) Migration queue positionmigration_status
(String) Migration statussource_storage_pool_id
(String) Source storage pool IDthickness_conversion_type
(String) Thickness conversion type