powerstore_remote_system (Data Source)
This datasource is used to query the existing Remote Systems from a 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
,id
orfilter_expression
can be provided at a time.
Example Usage
/*
Copyright (c) 2025 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
# fetching all Remote Systems on the array
data "powerstore_remote_system" "all_remote_systems" {
}
# fetching Remote System using id
data "powerstore_remote_system" "remote_system_by_id" {
id = "6732e829-29c9-7fed-686a-ee23cab1d298"
}
# fetching Remote System using name
data "powerstore_remote_system" "remote_system_by_name" {
name = "RT-D4538"
}
# fetching Remote Systems using filter expression
# Please refer to the guides section for filter expression syntax
# here, we are fetching a Remote System with a particular management IP
data "powerstore_remote_system" "remote_system_by_filters" {
filter_expression = "management_address=eq.10.225.225.10"
}
output "all_remote_systems" {
value = data.powerstore_remote_system.all_remote_systems.remote_systems
}
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_remote_system.remote_system_by_filters.attribute_name
where attribute_name is the attribute which user wants to fetch.
Schema
Optional
filter_expression
(String) PowerStore filter expression to filter Remote Systems by. Conflicts withid
andname
.id
(String) Unique identifier of the Remote System to be fetched. Conflicts withname
andfilter_expression
.name
(String) Name of the Remote System to be fetched. Conflicts withid
andfilter_expression
.
Read-Only
remote_systems
(Attributes List) List of Remote Systems fetched from PowerStore array. (see below for nested schema)
Nested Schema for remote_systems
Read-Only:
capabilities
(List of String) List of supported remote protection capabilities.data_connection_state
(String) Data connection state of the remote system.data_network_latency
(String) Data network latency of the remote system.description
(String) Description of the remote system instance.id
(String) Unique identifier of the remote system instance.management_address
(String) Management IP address of the remote system instance.name
(String) Name of the remote system instance.serial_number
(String) Serial number of the remote system instance.type
(String) Type of the remote system instance.