powerflex_sds (Data Source)
This datasource is used to query the existing Storage Data Servers from PowerFlex array. The information fetched from this datasource can be used for getting the details / for further processing in resource block.
Note: Exactly one of
protection_domain_name
andprotection_domain_id
is required.
Note: Only one of
sds_names
andsds_ids
can be provided at a time.
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
# To read SDS, either protection_domain_name or protection_domain_id must be provided
# This datasource reads a specific SDS either by sds_names or sds_ids where user can provide a list of sds ids or names
# if both sds_names and sds_ids are not provided , then it will read all the sds under the protection domain
# Both sds_ids and sds_names can't be provided together .
# Both protection_domain_name and protection_domain_id can't be provided together
data "powerflex_sds" "example2" {
# require field is either of protection_domain_name or protection_domain_id
protection_domain_name = "domain1"
# protection_domain_id = "202a046600000000"
sds_names = ["SDS_01_MOD", "sds_1", "node4"]
# sds_ids = ["6adfec1000000000", "6ae14ba900000006", "6ad58bd200000002"]
}
output "allsdcresult" {
value = data.powerflex_sds.example2
}
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_sds.example2.attribute_name
where attribute_name is the attribute which user wants to fetch.
Schema
Optional
protection_domain_id
(String) Protection Domain ID. Conflicts withprotection_domain_name
.protection_domain_name
(String) Protection Domain Name. Conflicts withprotection_domain_id
.sds_ids
(List of String) List of SDS IDs. Conflicts withsds_names
.sds_names
(List of String) List of SDS names. Conflicts withsds_ids
.
Read-Only
id
(String) Placeholder identifier attribute.sds_details
(Attributes List) List of fetched SDS. (see below for nested schema)
Nested Schema for sds_details
Read-Only:
authentication_error
(String) Authentication error.certificate_info
(Attributes) Certificate Information. (see below for nested schema)configured_drl_mode
(String) Configured DRL mode.drl_mode
(String) DRL mode.fault_set_id
(String) Fault set ID.fgl_metadata_cache_size
(Number) FGL metadata cache size.fgl_metadata_cache_state
(String) FGL metadata cache state.fgl_num_concurrent_writes
(Number) FGL concurrent writes.id
(String) SDS ID.ip_list
(Attributes List) List of IPs associated with SDS. (see below for nested schema)last_upgrade_time
(Number) Last time SDS was upgraded.links
(Attributes List) Specifies the links asscociated with SDS. (see below for nested schema)maintenance_state
(String) Maintenance state.maintenance_type
(String) Maintenance type.mdm_connection_state
(String) MDM connection state.membership_state
(String) Membership state.name
(String) SDS name.num_io_buffers
(Number) Number of IO buffers.num_restarts
(Number) Number of restarts.on_vmware
(Boolean) Presence on VMware.performance_profile
(String) Performance profile.port
(Number) SDS port.raid_controllers
(Attributes List) RAID controllers information. (see below for nested schema)rfcache_enabled
(Boolean) Whether RF cache is enabled or not.rfcache_error_api_version_mismatch
(Boolean) RF cache error for API version mismatch.rfcache_error_device_does_not_exist
(Boolean) RF cache error for device does not exist.rfcache_error_inconsistent_cache_configuration
(Boolean) RF cache error for inconsistent cache configuration.rfcache_error_inconsistent_source_configuration
(Boolean) RF cache error for inconsistent source configuration.rfcache_error_invalid_driver_path
(Boolean) RF cache error for invalid driver path.rfcache_error_low_resources
(Boolean) RF cache error for low resources.rmcache_enabled
(Boolean) Whether RM cache is enabled or not.rmcache_frozen
(Boolean) Indicates whether the Read RAM Cache is currently temporarily not in use.rmcache_memory_allocation_state
(String) Indicates the state of the memory allocation process. Can be one ofin progress
anddone
.rmcache_size
(Number) Indicates the size of Read RAM Cache on the specified SDS in KB.sds_configuration_failure
(Attributes) SDS configuration failure windows. (see below for nested schema)sds_decoupled
(Attributes) SDS decoupled windows. (see below for nested schema)sds_receive_buffer_allocation_failures
(Attributes) SDS receive buffer allocation failure windows. (see below for nested schema)sds_state
(String) SDS state.software_version_info
(String) Software version information.
Nested Schema for sds_details.certificate_info
Read-Only:
issuer
(String) Certificate issuer.subject
(String) Certificate subject.thumbprint
(String) Certificate thumbprint.valid_from
(String) The start date of the certificate validity.valid_from_asn1_format
(String) The start date of the Asn1 format.valid_to
(String) The end date of the certificate validity.valid_to_asn1_format
(String) The end date of the Asn1 format.
Nested Schema for sds_details.ip_list
Read-Only:
ip
(String) SDS IP.role
(String) SDS IP role.
Nested Schema for sds_details.links
Read-Only:
href
(String) Specifies the exact path to fetch the details.rel
(String) Specifies the relationship with the SDS.
Nested Schema for sds_details.raid_controllers
Read-Only:
battery_status
(String) Battery statusdriver_name
(String) Driver name.driver_version
(String) Driver version.firmware_version
(String) Firmware version.model_name
(String) Model name.pci_address
(String) PCI address.serial_number
(String) Serial number.status
(String) RAID status.vendor_name
(String) Vendor name.
Nested Schema for sds_details.sds_configuration_failure
Read-Only:
long_window
(Attributes) Long Window Parameters. (see below for nested schema)medium_window
(Attributes) Medium Window Parameters. (see below for nested schema)short_window
(Attributes) Short Window Parameters. (see below for nested schema)
Nested Schema for sds_details.sds_configuration_failure.long_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_configuration_failure.medium_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_configuration_failure.short_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_decoupled
Read-Only:
long_window
(Attributes) Long Window Parameters. (see below for nested schema)medium_window
(Attributes) Medium Window Parameters. (see below for nested schema)short_window
(Attributes) Short Window Parameters. (see below for nested schema)
Nested Schema for sds_details.sds_decoupled.long_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_decoupled.medium_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_decoupled.short_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_receive_buffer_allocation_failures
Read-Only:
long_window
(Attributes) Long Window Parameters. (see below for nested schema)medium_window
(Attributes) Medium Window Parameters. (see below for nested schema)short_window
(Attributes) Short Window Parameters. (see below for nested schema)
Nested Schema for sds_details.sds_receive_buffer_allocation_failures.long_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_receive_buffer_allocation_failures.medium_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Nested Schema for sds_details.sds_receive_buffer_allocation_failures.short_window
Read-Only:
last_oscillation_count
(Number) Last oscillation count.last_oscillation_time
(Number) Last oscillation time.max_failures_count
(Number) Maximum failures count.threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.