Viewing docs for powerscale 1.8.1
published on Wednesday, Apr 1, 2026 by dell
published on Wednesday, Apr 1, 2026 by dell
Viewing docs for powerscale 1.8.1
published on Wednesday, Apr 1, 2026 by dell
published on Wednesday, Apr 1, 2026 by dell
This datasource is used to query the existing Role Privileges from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. You can designate certain privileges as no permission, read, execute, or write when adding the privilege to a role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
//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.
// This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
// Returns a list of PowerScale role privileges based on names in the filter block.
const test = powerscale.getRoleprivilege({
filter: {
names: ["Shutdown"],
},
});
export const powerscaleRoleprivilege = test;
// Returns all PowerScale role privileges on PowerScale array
const all = powerscale.getRoleprivilege({});
export const powerscaleRoleprivilegeDataAll = all;
import pulumi
import pulumi_powerscale as powerscale
#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.
# This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
# Returns a list of PowerScale role privileges based on names in the filter block.
test = powerscale.get_roleprivilege(filter={
"names": ["Shutdown"],
})
pulumi.export("powerscaleRoleprivilege", test)
# Returns all PowerScale role privileges on PowerScale array
all = powerscale.get_roleprivilege()
pulumi.export("powerscaleRoleprivilegeDataAll", all)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// 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.
// This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
// Returns a list of PowerScale role privileges based on names in the filter block.
test, err := powerscale.GetRoleprivilege(ctx, &powerscale.GetRoleprivilegeArgs{
Filter: powerscale.GetRoleprivilegeFilter{
Names: []string{
"Shutdown",
},
},
}, nil)
if err != nil {
return err
}
ctx.Export("powerscaleRoleprivilege", test)
// Returns all PowerScale role privileges on PowerScale array
all, err := powerscale.GetRoleprivilege(ctx, &powerscale.GetRoleprivilegeArgs{}, nil)
if err != nil {
return err
}
ctx.Export("powerscaleRoleprivilegeDataAll", all)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
//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.
// This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
// Returns a list of PowerScale role privileges based on names in the filter block.
var test = Powerscale.GetRoleprivilege.Invoke(new()
{
Filter = new Powerscale.Inputs.GetRoleprivilegeFilterInputArgs
{
Names = new[]
{
"Shutdown",
},
},
});
// Returns all PowerScale role privileges on PowerScale array
var all = Powerscale.GetRoleprivilege.Invoke();
return new Dictionary<string, object?>
{
["powerscaleRoleprivilege"] = test,
["powerscaleRoleprivilegeDataAll"] = all,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.PowerscaleFunctions;
import com.pulumi.powerscale.inputs.GetRoleprivilegeArgs;
import com.pulumi.powerscale.inputs.GetRoleprivilegeFilterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
//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.
// This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
// Returns a list of PowerScale role privileges based on names in the filter block.
final var test = PowerscaleFunctions.getRoleprivilege(GetRoleprivilegeArgs.builder()
.filter(GetRoleprivilegeFilterArgs.builder()
.names("Shutdown")
.build())
.build());
ctx.export("powerscaleRoleprivilege", test);
// Returns all PowerScale role privileges on PowerScale array
final var all = PowerscaleFunctions.getRoleprivilege(GetRoleprivilegeArgs.builder()
.build());
ctx.export("powerscaleRoleprivilegeDataAll", all);
}
}
variables:
# /*
# 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.
# */
# This Terraform DataSource is used to query the details of existing role privileges from PowerScale array.
# Returns a list of PowerScale role privileges based on names in the filter block.
test:
fn::invoke:
function: powerscale:getRoleprivilege
arguments:
filter:
names:
- Shutdown
# Returns all PowerScale role privileges on PowerScale array
all:
fn::invoke:
function: powerscale:getRoleprivilege
arguments: {}
outputs:
# Output value of above block by executing 'terraform output' command
# You can use the the fetched information by the variable data.powerscale_roleprivilege.test
powerscaleRoleprivilege: ${test}
# Output value of above block by executing 'terraform output' command
# You can use the the fetched information by the variable data.powerscale_roleprivilege.all
powerscaleRoleprivilegeDataAll: ${all}
Using getRoleprivilege
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 getRoleprivilege(args: GetRoleprivilegeArgs, opts?: InvokeOptions): Promise<GetRoleprivilegeResult>
function getRoleprivilegeOutput(args: GetRoleprivilegeOutputArgs, opts?: InvokeOptions): Output<GetRoleprivilegeResult>def get_roleprivilege(filter: Optional[GetRoleprivilegeFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetRoleprivilegeResult
def get_roleprivilege_output(filter: pulumi.Input[Optional[GetRoleprivilegeFilterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoleprivilegeResult]func GetRoleprivilege(ctx *Context, args *GetRoleprivilegeArgs, opts ...InvokeOption) (*GetRoleprivilegeResult, error)
func GetRoleprivilegeOutput(ctx *Context, args *GetRoleprivilegeOutputArgs, opts ...InvokeOption) GetRoleprivilegeResultOutput> Note: This function is named GetRoleprivilege in the Go SDK.
public static class GetRoleprivilege
{
public static Task<GetRoleprivilegeResult> InvokeAsync(GetRoleprivilegeArgs args, InvokeOptions? opts = null)
public static Output<GetRoleprivilegeResult> Invoke(GetRoleprivilegeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoleprivilegeResult> getRoleprivilege(GetRoleprivilegeArgs args, InvokeOptions options)
public static Output<GetRoleprivilegeResult> getRoleprivilege(GetRoleprivilegeArgs args, InvokeOptions options)
fn::invoke:
function: powerscale:index/getRoleprivilege:getRoleprivilege
arguments:
# arguments dictionaryThe following arguments are supported:
getRoleprivilege Result
The following output properties are available:
- Id string
- Unique identifier of the Role Privilege instance.
- Role
Privileges List<GetDetails Roleprivilege Role Privileges Detail> - List of Role Privileges.
- Filter
Get
Roleprivilege Filter
- Id string
- Unique identifier of the Role Privilege instance.
- Role
Privileges []GetDetails Roleprivilege Role Privileges Detail - List of Role Privileges.
- Filter
Get
Roleprivilege Filter
- id String
- Unique identifier of the Role Privilege instance.
- role
Privileges List<GetDetails Roleprivilege Role Privileges Detail> - List of Role Privileges.
- filter
Get
Roleprivilege Filter
- id string
- Unique identifier of the Role Privilege instance.
- role
Privileges GetDetails Roleprivilege Role Privileges Detail[] - List of Role Privileges.
- filter
Get
Roleprivilege Filter
- id str
- Unique identifier of the Role Privilege instance.
- role_
privileges_ Sequence[Getdetails Roleprivilege Role Privileges Detail] - List of Role Privileges.
- filter
Get
Roleprivilege Filter
- id String
- Unique identifier of the Role Privilege instance.
- role
Privileges List<Property Map>Details - List of Role Privileges.
- filter Property Map
Supporting Types
GetRoleprivilegeFilter
- Names List<string>
- Filter Role Privileges by names.
- Names []string
- Filter Role Privileges by names.
- names List<String>
- Filter Role Privileges by names.
- names string[]
- Filter Role Privileges by names.
- names Sequence[str]
- Filter Role Privileges by names.
- names List<String>
- Filter Role Privileges by names.
GetRoleprivilegeRolePrivilegesDetail
- Category string
- Specifies the general categorization of the privilege.
- Description string
- Specifies a short description of the privilege.
- Id string
- Specifies the ID of the privilege.
- Name string
- Specifies the name of the privilege.
- Parent
Id string - Specifies the parent ID of the privilege.
- Permission string
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- Privilegelevel string
- Specifies the level of the privilege.
- Uri string
- Specifies the associated uri for the privilege.
- Category string
- Specifies the general categorization of the privilege.
- Description string
- Specifies a short description of the privilege.
- Id string
- Specifies the ID of the privilege.
- Name string
- Specifies the name of the privilege.
- Parent
Id string - Specifies the parent ID of the privilege.
- Permission string
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- Privilegelevel string
- Specifies the level of the privilege.
- Uri string
- Specifies the associated uri for the privilege.
- category String
- Specifies the general categorization of the privilege.
- description String
- Specifies a short description of the privilege.
- id String
- Specifies the ID of the privilege.
- name String
- Specifies the name of the privilege.
- parent
Id String - Specifies the parent ID of the privilege.
- permission String
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- privilegelevel String
- Specifies the level of the privilege.
- uri String
- Specifies the associated uri for the privilege.
- category string
- Specifies the general categorization of the privilege.
- description string
- Specifies a short description of the privilege.
- id string
- Specifies the ID of the privilege.
- name string
- Specifies the name of the privilege.
- parent
Id string - Specifies the parent ID of the privilege.
- permission string
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- privilegelevel string
- Specifies the level of the privilege.
- uri string
- Specifies the associated uri for the privilege.
- category str
- Specifies the general categorization of the privilege.
- description str
- Specifies a short description of the privilege.
- id str
- Specifies the ID of the privilege.
- name str
- Specifies the name of the privilege.
- parent_
id str - Specifies the parent ID of the privilege.
- permission str
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- privilegelevel str
- Specifies the level of the privilege.
- uri str
- Specifies the associated uri for the privilege.
- category String
- Specifies the general categorization of the privilege.
- description String
- Specifies a short description of the privilege.
- id String
- Specifies the ID of the privilege.
- name String
- Specifies the name of the privilege.
- parent
Id String - Specifies the parent ID of the privilege.
- permission String
- Permissions the privilege has r=read , x=read-execute, w=read-execute-write.
- privilegelevel String
- Specifies the level of the privilege.
- uri String
- Specifies the associated uri for the privilege.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscaleTerraform Provider.
Viewing docs for powerscale 1.8.1
published on Wednesday, Apr 1, 2026 by dell
published on Wednesday, Apr 1, 2026 by dell
