powerstore_file_io_limit_rule (Resource)
This resource is used to manage the file I/O limit rule entity of PowerStore Array. We can Create, Update and Delete the file I/O limit rule using this resource. We can also import an existing file I/O limit rule from PowerStore array.
Example Usage
/*
Copyright (c) 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 plan && terraform apply
# Create, Update, Delete is supported for this resource
# To import, check import.sh for more info
# name is required attribute to create
# max_bw is optional attribute
resource "powerstore_file_io_limit_rule" "terraform-provider-test1" {
name = "test_file_io_limit_rule1"
max_bw = 100
}
Schema
Required
max_bw(Number) Maximum allowable bandwidth in MB/second for the file_system or nas_server resource. When applied to a nas_server, all the file_systems of the nas_server share the maximum bandwidth.name(String) Name of the file I/O limit rule.
Read-Only
id(String) Unique identifier of the file I/O limit rule.
Import
Import is supported using the following syntax:
#!/bin/bash
# Copyright (c) 2024-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.
# Script to import an existing file IO limit rule into Terraform
# Usage: ./import.sh <file_io_limit_rule_id>
if [ -z "$1" ]; then
echo "Usage: $0 <file_io_limit_rule_id>"
echo "Example: $0 643d8f3c-7b8c-4d1e-9f2a-1b3c4d5e6f7g"
exit 1
fi
terraform import powerstore_file_io_limit_rule.terraform-provider-test1 "$1"