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 roles 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 permit and limit access to administrative areas of your cluster on a per-user basis through roles.
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 from PowerScale array.
// Returns a list of PowerScale Role based on the filters specified in the filter block.
const test = powerscale.getRole({
filter: {
names: ["SystemAdmin"],
zone: "System",
},
});
export const powerscaleRole = test;
// Returns all PowerScale Role on PowerScale array
const all = powerscale.getRole({});
export const powerscaleRoleDataAll = 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 from PowerScale array.
# Returns a list of PowerScale Role based on the filters specified in the filter block.
test = powerscale.get_role(filter={
"names": ["SystemAdmin"],
"zone": "System",
})
pulumi.export("powerscaleRole", test)
# Returns all PowerScale Role on PowerScale array
all = powerscale.get_role()
pulumi.export("powerscaleRoleDataAll", 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 from PowerScale array.
// Returns a list of PowerScale Role based on the filters specified in the filter block.
test, err := powerscale.LookupRole(ctx, &powerscale.LookupRoleArgs{
Filter: powerscale.GetRoleFilter{
Names: []string{
"SystemAdmin",
},
Zone: pulumi.StringRef("System"),
},
}, nil)
if err != nil {
return err
}
ctx.Export("powerscaleRole", test)
// Returns all PowerScale Role on PowerScale array
all, err := powerscale.LookupRole(ctx, &powerscale.LookupRoleArgs{}, nil)
if err != nil {
return err
}
ctx.Export("powerscaleRoleDataAll", 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 from PowerScale array.
// Returns a list of PowerScale Role based on the filters specified in the filter block.
var test = Powerscale.GetRole.Invoke(new()
{
Filter = new Powerscale.Inputs.GetRoleFilterInputArgs
{
Names = new[]
{
"SystemAdmin",
},
Zone = "System",
},
});
// Returns all PowerScale Role on PowerScale array
var all = Powerscale.GetRole.Invoke();
return new Dictionary<string, object?>
{
["powerscaleRole"] = test,
["powerscaleRoleDataAll"] = 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.GetRoleArgs;
import com.pulumi.powerscale.inputs.GetRoleFilterArgs;
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 from PowerScale array.
// Returns a list of PowerScale Role based on the filters specified in the filter block.
final var test = PowerscaleFunctions.getRole(GetRoleArgs.builder()
.filter(GetRoleFilterArgs.builder()
.names("SystemAdmin")
.zone("System")
.build())
.build());
ctx.export("powerscaleRole", test);
// Returns all PowerScale Role on PowerScale array
final var all = PowerscaleFunctions.getRole(GetRoleArgs.builder()
.build());
ctx.export("powerscaleRoleDataAll", 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 from PowerScale array.
# Returns a list of PowerScale Role based on the filters specified in the filter block.
test:
fn::invoke:
function: powerscale:getRole
arguments:
filter:
names:
- SystemAdmin
zone: System
# Returns all PowerScale Role on PowerScale array
all:
fn::invoke:
function: powerscale:getRole
arguments: {}
outputs:
# Output value of above block by executing 'terraform output' command
# You can use the the fetched information by the variable data.powerscale_role.test
powerscaleRole: ${test}
# Output value of above block by executing 'terraform output' command
# You can use the the fetched information by the variable data.powerscale_role.all
powerscaleRoleDataAll: ${all}
Using getRole
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 getRole(args: GetRoleArgs, opts?: InvokeOptions): Promise<GetRoleResult>
function getRoleOutput(args: GetRoleOutputArgs, opts?: InvokeOptions): Output<GetRoleResult>def get_role(filter: Optional[GetRoleFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetRoleResult
def get_role_output(filter: pulumi.Input[Optional[GetRoleFilterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput> Note: This function is named LookupRole in the Go SDK.
public static class GetRole
{
public static Task<GetRoleResult> InvokeAsync(GetRoleArgs args, InvokeOptions? opts = null)
public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
public static Output<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
fn::invoke:
function: powerscale:index/getRole:getRole
arguments:
# arguments dictionaryThe following arguments are supported:
getRole Result
The following output properties are available:
- Id string
- Unique identifier of the network pool instance.
- Roles
Details List<GetRole Roles Detail> - List of Roles.
- Filter
Get
Role Filter
- Id string
- Unique identifier of the network pool instance.
- Roles
Details []GetRole Roles Detail - List of Roles.
- Filter
Get
Role Filter
- id String
- Unique identifier of the network pool instance.
- roles
Details List<GetRole Roles Detail> - List of Roles.
- filter
Get
Role Filter
- id string
- Unique identifier of the network pool instance.
- roles
Details GetRole Roles Detail[] - List of Roles.
- filter
Get
Role Filter
- id str
- Unique identifier of the network pool instance.
- roles_
details Sequence[GetRole Roles Detail] - List of Roles.
- filter
Get
Role Filter
- id String
- Unique identifier of the network pool instance.
- roles
Details List<Property Map> - List of Roles.
- filter Property Map
Supporting Types
GetRoleFilter
GetRoleRolesDetail
- Description string
- Specifies the description of the role.
- Id string
- Specifies the ID of the role.
- Members
List<Get
Role Roles Detail Member> - Specifies the users or groups that have this role.
- Name string
- Specifies the name of the role.
- Privileges
List<Get
Role Roles Detail Privilege> - Specifies the privileges granted by this role.
- Description string
- Specifies the description of the role.
- Id string
- Specifies the ID of the role.
- Members
[]Get
Role Roles Detail Member - Specifies the users or groups that have this role.
- Name string
- Specifies the name of the role.
- Privileges
[]Get
Role Roles Detail Privilege - Specifies the privileges granted by this role.
- description String
- Specifies the description of the role.
- id String
- Specifies the ID of the role.
- members
List<Get
Role Roles Detail Member> - Specifies the users or groups that have this role.
- name String
- Specifies the name of the role.
- privileges
List<Get
Role Roles Detail Privilege> - Specifies the privileges granted by this role.
- description string
- Specifies the description of the role.
- id string
- Specifies the ID of the role.
- members
Get
Role Roles Detail Member[] - Specifies the users or groups that have this role.
- name string
- Specifies the name of the role.
- privileges
Get
Role Roles Detail Privilege[] - Specifies the privileges granted by this role.
- description str
- Specifies the description of the role.
- id str
- Specifies the ID of the role.
- members
Sequence[Get
Role Roles Detail Member] - Specifies the users or groups that have this role.
- name str
- Specifies the name of the role.
- privileges
Sequence[Get
Role Roles Detail Privilege] - Specifies the privileges granted by this role.
- description String
- Specifies the description of the role.
- id String
- Specifies the ID of the role.
- members List<Property Map>
- Specifies the users or groups that have this role.
- name String
- Specifies the name of the role.
- privileges List<Property Map>
- Specifies the privileges granted by this role.
GetRoleRolesDetailMember
GetRoleRolesDetailPrivilege
- Id string
- Specifies the ID of the privilege.
- Name string
- Specifies the name of the privilege.
- Permission string
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
- Id string
- Specifies the ID of the privilege.
- Name string
- Specifies the name of the privilege.
- Permission string
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
- id String
- Specifies the ID of the privilege.
- name String
- Specifies the name of the privilege.
- permission String
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
- id string
- Specifies the ID of the privilege.
- name string
- Specifies the name of the privilege.
- permission string
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
- id str
- Specifies the ID of the privilege.
- name str
- Specifies the name of the privilege.
- permission str
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
- id String
- Specifies the ID of the privilege.
- name String
- Specifies the name of the privilege.
- permission String
- permission of the privilege, 'r' = read , 'x' = read-execute, 'w' = read-execute-write, '-' = no permission
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
