powerflex_storage_node_v2 (Data Source)
This datasource is used to query Storage Nodes from a PowerFlex Gen2 system (5.0+). Storage Nodes are the Gen2 replacement for SDS.
Example Usage
# Copyright (c) 2024-2026 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.
# List all storage nodes
data "powerflex_storage_node_v2" "all" {
}
output "all_storage_nodes" {
value = data.powerflex_storage_node_v2.all.storage_nodes
}
# Get storage node by ID
data "powerflex_storage_node_v2" "by_id" {
id = "abc123def456"
}
# Filter by name
data "powerflex_storage_node_v2" "by_name" {
name = "storage-node-1"
}
# Filter by protection domain
data "powerflex_storage_node_v2" "by_pd" {
protection_domain_id = "pd-123456"
}
Schema
Optional
id(String) Storage Node ID to query. Mutually exclusive withname.name(String) Storage Node name to query. Mutually exclusive withid.protection_domain_id(String) Filter storage nodes by protection domain ID.
Read-Only
storage_nodes(Attributes List) List of storage nodes. (see below for nested schema)
Nested Schema for storage_nodes
Read-Only:
fault_set_id(String) Fault Set ID.id(String) Storage Node ID.maintenance_state(String) Maintenance state.mdm_connection_state(String) MDM connection state.membership_state(String) Membership state.name(String) Storage Node name.num_of_devices(Number) Number of devices.performance_profile(String) Performance profile.port(Number) Port number.protection_domain_id(String) Protection Domain ID.software_version(String) Software version.state(String) State of the storage node.status(String) Status of the storage node.total_capacity_in_kb(Number) Total capacity in KB.used_capacity_in_kb(Number) Used capacity in KB.
Argument Reference
The following arguments are supported:
id- (Optional) The ID of the storage node to query. If not specified, all storage nodes are returned.name- (Optional) The name of the storage node to query.protection_domain_id- (Optional) The protection domain ID to filter storage nodes.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
storage_nodes- List of storage nodes with the following attributes:id- The ID of the storage node.name- The name of the storage node.protection_domain_id- The protection domain ID.media_type- The media type (SSD, PMEM).health- The health status.state- The state.num_of_devices- The number of devices.total_capacity_in_kb- The total capacity in KB.used_capacity_in_kb- The used capacity in KB.maintenance_state- The maintenance state.mdm_connection_state- The MDM connection state.membership_state- The membership state.performance_profile- The performance profile.port- The port number.fault_set_id- The fault set ID.