title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerflex_protection_domain data source |
powerflex_protection_domain |
powerflex_protection_domain Data Source - powerflex |
This datasource is used to query the existing protection domain 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 protection domain from the PowerFlex 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
andid
can be provided at a time.
/*
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
data "powerflex_protection_domain" "all" {
}
output "inputAll" {
value = data.powerflex_protection_domain.all.protection_domains
}
# if a filter is of type string it has the ability to allow regular expressions
# data "powerflex_protection_domain" "protection_domain_filter_regex" {
# filter{
# name = ["^System_.*$"]
# rf_cache_opertional_mode = ["^.*Write.*$"]
# }
# }
# output "protectionDomainFilterRegexResult"{
# value = data.powerflex_protection_domain.protection_domain_filter_regex.protection_domains
# }
# 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_protection_domain" "filter" {
filter {
# system_id = ["systemID1", "systemID2"]
# replication_capacity_max_ratio = [1,2]
# rebuild_network_throttling_in_kbps = [1,2]
# rebalance_network_throttling_in_kbps = [1,2]
# overall_io_network_throttling_in_kbps = [1,2]
# vtree_migration_network_throttling_in_kbps = [1,2]
# protected_maintenance_mode_network_throttling_in_kbps = [1,2]
# overall_io_network_throttling_enabled = false
# rebuild_network_throttling_enabled = false
# rebalance_network_throttling_enabled = false
# vtree_migration_network_throttling_enabled = false
# protected_maintenance_mode_network_throttling_enabled = false
# fgl_default_num_concurrent_writes = [1,2]
# fgl_metadata_cache_enabled = false
# fgl_default_metadata_cache_size = [1,2]
# rf_cache_enabled = false
# rf_cache_accp_id = ["rfcache_accp_id1", "rfcache_accp_id2"]
# rf_cache_opertional_mode = ["rfcache_opertional_mode1", "rfcache_opertional_mode2"]
# rf_cache_page_size_kb = [1,2]
# rf_cache_max_io_size_kb = [1,2]
# state = ["state1", "state2"]
# name = ["name1", "name2"]
# id = ["id1", "id2"]
}
}
output "inputAll" {
value = data.powerflex_protection_domain.filter.protection_domains
}
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_protection_domain.pd.attribute_name
where attribute_name is the attribute which user wants to fetch.
filter
(Block, Optional) (see below for nested schema)id
(String) Unique identifier of the protection domain instance. Conflicts withname
.
protection_domains
(Attributes List) List of protection domains fetched. (see below for nested schema)
Optional:
fgl_default_metadata_cache_size
(Set of Number) List of fgl_default_metadata_cache_sizefgl_default_num_concurrent_writes
(Set of Number) List of fgl_default_num_concurrent_writesfgl_metadata_cache_enabled
(Boolean) Value for fgl_metadata_cache_enabledid
(Set of String) List of idname
(Set of String) List of nameoverall_io_network_throttling_enabled
(Boolean) Value for overall_io_network_throttling_enabledoverall_io_network_throttling_in_kbps
(Set of Number) List of overall_io_network_throttling_in_kbpsprotected_maintenance_mode_network_throttling_enabled
(Boolean) Value for protected_maintenance_mode_network_throttling_enabledprotected_maintenance_mode_network_throttling_in_kbps
(Set of Number) List of protected_maintenance_mode_network_throttling_in_kbpsrebalance_network_throttling_enabled
(Boolean) Value for rebalance_network_throttling_enabledrebalance_network_throttling_in_kbps
(Set of Number) List of rebalance_network_throttling_in_kbpsrebuild_network_throttling_enabled
(Boolean) Value for rebuild_network_throttling_enabledrebuild_network_throttling_in_kbps
(Set of Number) List of rebuild_network_throttling_in_kbpsreplication_capacity_max_ratio
(Set of Number) List of replication_capacity_max_ratiorf_cache_accp_id
(Set of String) List of rf_cache_accp_idrf_cache_enabled
(Boolean) Value for rf_cache_enabledrf_cache_max_io_size_kb
(Set of Number) List of rf_cache_max_io_size_kbrf_cache_opertional_mode
(Set of String) List of rf_cache_opertional_moderf_cache_page_size_kb
(Set of Number) List of rf_cache_page_size_kbstate
(Set of String) List of statesystem_id
(Set of String) List of system_idvtree_migration_network_throttling_enabled
(Boolean) Value for vtree_migration_network_throttling_enabledvtree_migration_network_throttling_in_kbps
(Set of Number) List of vtree_migration_network_throttling_in_kbps
Read-Only:
fgl_default_metadata_cache_size
(Number) Fine Granularity Metadata Cache size.fgl_default_num_concurrent_writes
(Number) Fine Granularity default number of concurrent writes.fgl_metadata_cache_enabled
(Boolean) Whether Fine Granularity Metadata Cache is enabled or not.id
(String) Unique identifier of the protection domain instance.links
(Attributes List) Underlying REST API links. (see below for nested schema)mdm_sds_network_disconnections_counter
(Attributes) MDM-SDS Network Disconnection Counter windows. (see below for nested schema)name
(String) Unique name of the protection domain instance.overall_io_network_throttling_enabled
(Boolean) Whether network throttling is enabled for overall io.overall_io_network_throttling_in_kbps
(Number) Maximum allowed io for protected maintenance mode in KBps. Must be greater than any other network throttling parameter.protected_maintenance_mode_network_throttling_enabled
(Boolean) Whether network throttling is enabled for protected maintenance mode.protected_maintenance_mode_network_throttling_in_kbps
(Number) Maximum allowed io for protected maintenance mode in KBps.rebalance_network_throttling_enabled
(Boolean) Whether network throttling is enabled for rebalancing.rebalance_network_throttling_in_kbps
(Number) Maximum allowed io for rebalancing in KBps.rebuild_network_throttling_enabled
(Boolean) Whether network throttling is enabled for rebuilding.rebuild_network_throttling_in_kbps
(Number) Maximum allowed io for rebuilding in KBps.replication_capacity_max_ratio
(Number) Maximum Replication Capacity Ratio.rf_cache_accp_id
(String) ID of the Rf Cache Acceleration Pool attached to the PD.rf_cache_enabled
(Boolean) Whether SDS Rf Cache is enabled or not.rf_cache_max_io_size_kb
(Number) Maximum io of the SDS RF Cache in KB.rf_cache_opertional_mode
(String) Operational Mode of the SDS RF Cache.rf_cache_page_size_kb
(Number) Page size of the SDS RF Cache in KB.sdr_sds_connectivity
(Attributes) SDR-SDS Connectivity information. (see below for nested schema)sds_configuration_failure_counter
(Attributes) SDS Configuration Failure Counter windows. (see below for nested schema)sds_decoupled_counter
(Attributes) SDS Decoupled Counter windows. (see below for nested schema)sds_receive_buffer_allocation_failures_counter
(Attributes) SDS receive Buffer Allocation Failure Counter windows. (see below for nested schema)sds_sds_network_disconnections_counter
(Attributes) SDS-SDS Network Disconnection Counter windows. (see below for nested schema)state
(String) State of a PD. Valid values areActive
,ActivePending
,Inactive
orInactivePending
.system_id
(String) System ID of the PD.vtree_migration_network_throttling_enabled
(Boolean) Whether network throttling is enabled for vtree migration.vtree_migration_network_throttling_in_kbps
(Number) Maximum allowed io for vtree migration in KBps.
Read-Only:
href
(String) Specifies the exact path to fetch the details.rel
(String) Specifies the relationship with the Protection Domain.
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:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
client_server_conn_status
(String) Connectivity Status.disconnected_client_id
(String) ID of the disconnected client.disconnected_client_name
(String) Name of the disconnected client.disconnected_server_id
(String) ID of the disconnected server.disconnected_server_ip
(String) IP address of the disconnected server.disconnected_server_name
(String) Name of the disconnected server.
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:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
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:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
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:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
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:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.
Read-Only:
threshold
(Number) Threshold.window_size_in_sec
(Number) Window Size in seconds.