Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell
This datasource is used to query file I/O limit rule(s) from PowerStore array.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerstore from "@pulumi/powerstore";
//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 && pulumi up --auto-approve
// This datasource reads file 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 file I/O limit rules
// If id or name is provided then it reads a particular file I/O limit rule with that id or name
// Only one of the attribute can be provided among id and name
const test1 = powerstore.getFileIoLimitRule({
name: "tf_acc_file_io_limit_rule",
});
export const fileIoLimitRuleAllDetails = test1.then(test1 => test1.fileIoLimitRules);
export const fileIoLimitRuleIDsOnly = test1.then(test1 => test1.fileIoLimitRules.map(__item => __item.id));
export const fileIoLimitRuleIdAndMaxBw = test1.then(test1 => .reduce((__obj, rule) => ({ ...__obj, [rule.name]: {
id: rule.id,
maxBw: rule.maxBw,
} })));
import pulumi
import pulumi_powerstore as powerstore
#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 && pulumi up --auto-approve
# This datasource reads file 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 file I/O limit rules
# If id or name is provided then it reads a particular file I/O limit rule with that id or name
# Only one of the attribute can be provided among id and name
test1 = powerstore.get_file_io_limit_rule(name="tf_acc_file_io_limit_rule")
pulumi.export("fileIoLimitRuleAllDetails", test1.file_io_limit_rules)
pulumi.export("fileIoLimitRuleIDsOnly", [__item.id for __item in test1.file_io_limit_rules])
pulumi.export("fileIoLimitRuleIdAndMaxBw", {rule.name: {
"id": rule.id,
"maxBw": rule.max_bw,
} for rule in test1.file_io_limit_rules})
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerstore = Pulumi.Powerstore;
return await Deployment.RunAsync(() =>
{
//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 && pulumi up --auto-approve
// This datasource reads file 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 file I/O limit rules
// If id or name is provided then it reads a particular file I/O limit rule with that id or name
// Only one of the attribute can be provided among id and name
var test1 = Powerstore.GetFileIoLimitRule.Invoke(new()
{
Name = "tf_acc_file_io_limit_rule",
});
return new Dictionary<string, object?>
{
["fileIoLimitRuleAllDetails"] = test1.Apply(getFileIoLimitRuleResult => getFileIoLimitRuleResult.FileIoLimitRules),
["fileIoLimitRuleIDsOnly"] = test1.Apply(getFileIoLimitRuleResult => getFileIoLimitRuleResult.FileIoLimitRules).Select(__item => __item.Id).ToList(),
["fileIoLimitRuleIdAndMaxBw"] = .ToDictionary(item => {
var rule = item.Value;
return rule.Name;
}, item => {
var rule = item.Value;
return
{
{ "id", rule.Id },
{ "maxBw", rule.MaxBw },
};
}),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getFileIoLimitRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFileIoLimitRule(args: GetFileIoLimitRuleArgs, opts?: InvokeOptions): Promise<GetFileIoLimitRuleResult>
function getFileIoLimitRuleOutput(args: GetFileIoLimitRuleOutputArgs, opts?: InvokeOptions): Output<GetFileIoLimitRuleResult>def get_file_io_limit_rule(filter_expression: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFileIoLimitRuleResult
def get_file_io_limit_rule_output(filter_expression: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFileIoLimitRuleResult]func LookupFileIoLimitRule(ctx *Context, args *LookupFileIoLimitRuleArgs, opts ...InvokeOption) (*LookupFileIoLimitRuleResult, error)
func LookupFileIoLimitRuleOutput(ctx *Context, args *LookupFileIoLimitRuleOutputArgs, opts ...InvokeOption) LookupFileIoLimitRuleResultOutput> Note: This function is named LookupFileIoLimitRule in the Go SDK.
public static class GetFileIoLimitRule
{
public static Task<GetFileIoLimitRuleResult> InvokeAsync(GetFileIoLimitRuleArgs args, InvokeOptions? opts = null)
public static Output<GetFileIoLimitRuleResult> Invoke(GetFileIoLimitRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFileIoLimitRuleResult> getFileIoLimitRule(GetFileIoLimitRuleArgs args, InvokeOptions options)
public static Output<GetFileIoLimitRuleResult> getFileIoLimitRule(GetFileIoLimitRuleArgs args, InvokeOptions options)
fn::invoke:
function: powerstore:index/getFileIoLimitRule:getFileIoLimitRule
arguments:
# arguments dictionarydata "powerstore_getfileiolimitrule" "name" {
# arguments
}The following arguments are supported:
- Filter
Expression string - Filter expression to query file I/O limit rules.
- Id string
- Unique identifier of the file I/O limit rule.
- Name string
- Name of the file I/O limit rule.
- Filter
Expression string - Filter expression to query file I/O limit rules.
- Id string
- Unique identifier of the file I/O limit rule.
- Name string
- Name of the file I/O limit rule.
- filter_
expression string - Filter expression to query file I/O limit rules.
- id string
- Unique identifier of the file I/O limit rule.
- name string
- Name of the file I/O limit rule.
- filter
Expression String - Filter expression to query file I/O limit rules.
- id String
- Unique identifier of the file I/O limit rule.
- name String
- Name of the file I/O limit rule.
- filter
Expression string - Filter expression to query file I/O limit rules.
- id string
- Unique identifier of the file I/O limit rule.
- name string
- Name of the file I/O limit rule.
- filter_
expression str - Filter expression to query file I/O limit rules.
- id str
- Unique identifier of the file I/O limit rule.
- name str
- Name of the file I/O limit rule.
- filter
Expression String - Filter expression to query file I/O limit rules.
- id String
- Unique identifier of the file I/O limit rule.
- name String
- Name of the file I/O limit rule.
getFileIoLimitRule Result
The following output properties are available:
- File
Io List<GetLimit Rules File Io Limit Rule File Io Limit Rule> - List of file I/O limit rules.
- Id string
- Unique identifier of the file I/O limit rule.
- Name string
- Name of the file I/O limit rule.
- Filter
Expression string - Filter expression to query file I/O limit rules.
- File
Io []GetLimit Rules File Io Limit Rule File Io Limit Rule - List of file I/O limit rules.
- Id string
- Unique identifier of the file I/O limit rule.
- Name string
- Name of the file I/O limit rule.
- Filter
Expression string - Filter expression to query file I/O limit rules.
- file_
io_ list(object)limit_ rules - List of file I/O limit rules.
- id string
- Unique identifier of the file I/O limit rule.
- name string
- Name of the file I/O limit rule.
- filter_
expression string - Filter expression to query file I/O limit rules.
- file
Io List<GetLimit Rules File Io Limit Rule File Io Limit Rule> - List of file I/O limit rules.
- id String
- Unique identifier of the file I/O limit rule.
- name String
- Name of the file I/O limit rule.
- filter
Expression String - Filter expression to query file I/O limit rules.
- file
Io GetLimit Rules File Io Limit Rule File Io Limit Rule[] - List of file I/O limit rules.
- id string
- Unique identifier of the file I/O limit rule.
- name string
- Name of the file I/O limit rule.
- filter
Expression string - Filter expression to query file I/O limit rules.
- file_
io_ Sequence[Getlimit_ rules File Io Limit Rule File Io Limit Rule] - List of file I/O limit rules.
- id str
- Unique identifier of the file I/O limit rule.
- name str
- Name of the file I/O limit rule.
- filter_
expression str - Filter expression to query file I/O limit rules.
- file
Io List<Property Map>Limit Rules - List of file I/O limit rules.
- id String
- Unique identifier of the file I/O limit rule.
- name String
- Name of the file I/O limit rule.
- filter
Expression String - Filter expression to query file I/O limit rules.
Supporting Types
GetFileIoLimitRuleFileIoLimitRule
Package Details
- Repository
- powerstore dell/terraform-provider-powerstore
- License
- Notes
- This Pulumi package is based on the
powerstoreTerraform Provider.
Viewing docs for powerstore 1.3.0
published on Wednesday, Jun 24, 2026 by dell
published on Wednesday, Jun 24, 2026 by dell