powerstore_io_limit_rule (Data Source)
This datasource is used to query I/O limit rule(s) from PowerStore array.
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
# This datasource reads I/O limit rules either by id or name where user can provide a value to any one of them
# If it is a empty datasource block , then it will read all the I/O limit rules
# If id or name is provided then it reads a particular I/O limit rule with that id or name
# Only one of the attribute can be provided among id and name
data "powerstore_io_limit_rule" "test1" {
name = "tf_acc_io_limit_rule"
}
# Output all I/O Limit Rule Details
output "io_limit_rule_all_details" {
value = data.powerstore_io_limit_rule.test1.io_limit_rules
}
# Output only I/O Limit Rule IDs
output "io_limit_rule_IDs_only" {
value = data.powerstore_io_limit_rule.test1.io_limit_rules.*.id
}
# Output I/O Limit Rule IDs and max_iops with name as key
output "io_limit_rule_id_and_max_iops" {
value = {
for rule in data.powerstore_io_limit_rule.test1.io_limit_rules : rule.name => {
id = rule.id
max_iops = rule.max_iops
}
}
}
Schema
Optional
filter_expression(String) Filter expression to query I/O limit rules.id(String) Unique identifier of the I/O limit rule.name(String) Name of the I/O limit rule.type(String) Type of the I/O limit rule (Absolute or Density).
Read-Only
io_limit_rules(Attributes List) List of I/O limit rules. (see below for nested schema)
Nested Schema for io_limit_rules
Read-Only:
burst_percentage(Number) Percentage indicating by how much the limit may be exceeded.id(String) Unique identifier of the I/O limit rule.max_bw(Number) Maximum I/O bandwidth in Kilobytes per second or Kilobytes per second / per GB.max_iops(Number) Maximum I/O operations in IOPS or IOPS per GB.name(String) Name of the I/O limit rule.type(String) Type of bandwidth limit (Absolute or Density).type_l10n(String) Localized message string corresponding to type.