title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerflex_fault_set data source |
powerflex_fault_set |
powerflex_fault_set Data Source - powerflex |
This datasource is used to query the existing fault set from the PowerFlex array. The information fetched from this datasource can be used for getting the details / for further processing in resource block. |
This datasource is used to query the existing fault set from the PowerFlex array. The information fetched from this datasource can be used for getting the details / for further processing in resource block.
/*
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 fault set details present on the cluster
data "powerflex_fault_set" "all" {
}
output "fault_set_result_all" {
value = data.powerflex_fault_set.all.fault_set_details
}
# if a filter is of type string it has the ability to allow regular expressions
# data "powerflex_fault_set" "fault_set_filter_regex" {
# filter{
# name = ["^System_.*$"]
# id = ["^.*0f$"]
# }
# }
# output "faultSetFilterRegexResult"{
# value = data.powerflex_fault_set.fault_set_filter_regex.fault_set_details
# }
// If multiple filter fields are provided then it will show the intersection of all of those fields.
// 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_fault_set" "filtered" {
filter {
# protection_domain_id = ["protection_domain_id", "protection_domain_id2"]
# name = ["name", "name2"]
# id = ["id", "id2"]
}
}
output "fault_set_result_filtered" {
value = data.powerflex_fault_set.filtered.fault_set_details
}
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_fault_set.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.
filter
(Block, Optional) (see below for nested schema)
fault_set_details
(Attributes Set) Fault set details (see below for nested schema)id
(String) Placeholder for fault set datasource attribute.
Optional:
id
(Set of String) List of idname
(Set of String) List of nameprotection_domain_id
(Set of String) List of protection_domain_id
Read-Only:
id
(String) Fault set IDlinks
(Attributes List) Specifies the links associated with fault set (see below for nested schema)name
(String) Fault set nameprotection_domain_id
(String) Protection Domain IDsds_details
(Attributes List) List of fetched SDS. (see below for nested schema)
Read-Only:
href
(String) Specifies the exact path to fetch the detailsrel
(String) Specifies the relationship with the fault set
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 associated 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.
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.
Read-Only:
ip
(String) SDS IP.role
(String) SDS IP role.
Read-Only:
href
(String) Specifies the exact path to fetch the details.rel
(String) Specifies the relationship with the SDS.
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.
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)
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.
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.
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.
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)
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.
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.
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.
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)
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 fault_set_details.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.
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.