powerflex_peer_system (Data Source)
This datasource is used to read the Peer System entity of the PowerFlex Array. This feature is only supported for PowerFlex 4.5 and above.
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 feature is only supported for PowerFlex 4.5 and above.
# Get all Peer System details present on the cluster
data "powerflex_peer_system" "example1" {
}
# Get Peer System details using filter with all values
# If there is no intersection between the filters then an empty datasource will be returned
# For more information about how we do our datasource filtering check out our guides: https://dell.github.io/terraform-docs/docs/storage/platforms/powerflex/product_guide/examples
# data "powerflex_peer_system" "example2" {
# filter {
# id = ["b27112300000000"]
# coupling_rc = ["SUCCESS"]
# membership_state = ["Joined"]
# name = ["10654"]
# peer_system_id = ["89980fe50ff2243f"]
# perf_profile = ["HighPerformance"]
# network_type = ["External"]
# port = [9091]
# software_version_info = ["R4_6.2134.0"]
# system_id = ["7d2f6023117d93f0"]
# }
# }
output "peer_system_result" {
value = data.powerflex_peer_system.example1
}
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_peer_system.example1.attribute_name
where attribute_name is the attribute which user wants to fetch.
Schema
Optional
filter
(Block, Optional) (see below for nested schema)
Read-Only
id
(String) default datasource idpeer_system_details
(Attributes List) List of Peer MDMs (see below for nested schema)
Nested Schema for filter
Optional:
coupling_rc
(Set of String) List of coupling_rcid
(Set of String) List of idmembership_state
(Set of String) List of membership_statename
(Set of String) List of namenetwork_type
(Set of String) List of network_typepeer_system_id
(Set of String) List of peer_system_idperf_profile
(Set of String) List of perf_profileport
(Set of Number) List of portsoftware_version_info
(Set of String) List of software_version_infosystem_id
(Set of String) List of system_id
Nested Schema for peer_system_details
Read-Only:
coupling_rc
(String) Coupling return code number of the peer mdm system.id
(String) Unique identifier of the peer mdm instance.ip_list
(Attributes List) List of ips for the peer mdm system. (see below for nested schema)membership_state
(String) membership state of the peer mdm instance.name
(String) Name of the peer mdm instance.network_type
(String) Network type of the peer mdm system.peer_system_id
(String) Unique identifier of the peer mdm system.perf_profile
(String) Performance profile of the peer mdm instance.port
(Number) Port of the peer mdm instance.software_version_info
(String) Software version details of the peer mdm instance.system_id
(String) Unique identifier of the peer mdm system.
Nested Schema for peer_system_details.ip_list
Read-Only:
ip
(String) Specifies the ip.