Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse
aquasec.getPermissionsSets
Explore with Pulumi AI
The data source aquasec.PermissionsSets provides a method to query all permissions within the Aqua CSPMThe fields returned from this query are detailed in the Schema section below.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";
const testpermissionsset = aquasec.getPermissionsSets({});
export const permissionsSets = testpermissionsset;
export const permissionsSetsNames = [testpermissionsset].map(__item => _arg0_.permissionsSets.map(__item => __item.name));
import pulumi
import pulumi_aquasec as aquasec
testpermissionsset = aquasec.get_permissions_sets()
pulumi.export("permissionsSets", testpermissionsset)
pulumi.export("permissionsSetsNames", [[__item.name for __item in __item.permissions_sets] for __item in [testpermissionsset]])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testpermissionsset, err := aquasec.LookupPermissionsSets(ctx, nil, nil);
if err != nil {
return err
}
ctx.Export("permissionsSets", testpermissionsset)
var splat0 [][]*string
for _, val0 := range []aquasec.GetPermissionsSetsResult{
testpermissionsset,
} {
splat0 = append(splat0, %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-aquasec:index-getPermissionsSets:getPermissionsSets.pp:5,31-58))
}
ctx.Export("permissionsSetsNames", splat0)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumi.Aquasec;
return await Deployment.RunAsync(() => 
{
    var testpermissionsset = Aquasec.GetPermissionsSets.Invoke();
    return new Dictionary<string, object?>
    {
        ["permissionsSets"] = testpermissionsset,
        ["permissionsSetsNames"] = new[]
        {
            testpermissionsset,
        }.Select(__item => _arg0_.PermissionsSets.Select(__item => __item.Name).ToList()).ToList(),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
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) {
        final var testpermissionsset = AquasecFunctions.getPermissionsSets();
        ctx.export("permissionsSets", testpermissionsset.applyValue(getPermissionsSetsResult -> getPermissionsSetsResult));
        ctx.export("permissionsSetsNames", testpermissionsset.applyValue(getPermissionsSetsResult -> getPermissionsSetsResult).stream().map(element -> element.permissionsSets().stream().map(element -> element.name()).collect(toList())).collect(toList()));
    }
}
Coming soon!
Using getPermissionsSets
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 getPermissionsSets(opts?: InvokeOptions): Promise<GetPermissionsSetsResult>
function getPermissionsSetsOutput(opts?: InvokeOptions): Output<GetPermissionsSetsResult>def get_permissions_sets(opts: Optional[InvokeOptions] = None) -> GetPermissionsSetsResult
def get_permissions_sets_output(opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsSetsResult]func LookupPermissionsSets(ctx *Context, opts ...InvokeOption) (*LookupPermissionsSetsResult, error)
func LookupPermissionsSetsOutput(ctx *Context, opts ...InvokeOption) LookupPermissionsSetsResultOutput> Note: This function is named LookupPermissionsSets in the Go SDK.
public static class GetPermissionsSets 
{
    public static Task<GetPermissionsSetsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetPermissionsSetsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetPermissionsSetsResult> getPermissionsSets(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aquasec:index/getPermissionsSets:getPermissionsSets
  arguments:
    # arguments dictionarygetPermissionsSets Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Permissions
Sets List<Pulumiverse.Aquasec. Outputs. Get Permissions Sets Permissions Set>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Permissions
Sets []GetPermissions Sets Permissions Set  
- id String
 - The provider-assigned unique ID for this managed resource.
 - permissions
Sets List<GetPermissions Sets Permissions Set>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - permissions
Sets GetPermissions Sets Permissions Set[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - permissions_
sets Sequence[GetPermissions Sets Permissions Set]  
- id String
 - The provider-assigned unique ID for this managed resource.
 - permissions
Sets List<Property Map> 
Supporting Types
GetPermissionsSetsPermissionsSet    
- Actions List<string>
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - string
 - The name of the user who created the Permission Set.
 - Description string
 - Free text description for the Permission Set.
 - Is
Super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - Name string
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - Ui
Access bool - Whether to allow UI access for users with this Permission Set.
 - Updated
At string - The date of the last modification of the Role.
 
- Actions []string
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - string
 - The name of the user who created the Permission Set.
 - Description string
 - Free text description for the Permission Set.
 - Is
Super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - Name string
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - Ui
Access bool - Whether to allow UI access for users with this Permission Set.
 - Updated
At string - The date of the last modification of the Role.
 
- actions List<String>
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - String
 - The name of the user who created the Permission Set.
 - description String
 - Free text description for the Permission Set.
 - is
Super Boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name String
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - ui
Access Boolean - Whether to allow UI access for users with this Permission Set.
 - updated
At String - The date of the last modification of the Role.
 
- actions string[]
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - string
 - The name of the user who created the Permission Set.
 - description string
 - Free text description for the Permission Set.
 - is
Super boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name string
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - ui
Access boolean - Whether to allow UI access for users with this Permission Set.
 - updated
At string - The date of the last modification of the Role.
 
- actions Sequence[str]
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - str
 - The name of the user who created the Permission Set.
 - description str
 - Free text description for the Permission Set.
 - is_
super bool - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name str
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - ui_
access bool - Whether to allow UI access for users with this Permission Set.
 - updated_
at str - The date of the last modification of the Role.
 
- actions List<String>
 - List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
 - String
 - The name of the user who created the Permission Set.
 - description String
 - Free text description for the Permission Set.
 - is
Super Boolean - Give the Permission Set full access, meaning all actions are allowed without restriction.
 - name String
 - The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
 - ui
Access Boolean - Whether to allow UI access for users with this Permission Set.
 - updated
At String - The date of the last modification of the Role.
 
Package Details
- Repository
 - aquasec pulumiverse/pulumi-aquasec
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
aquasecTerraform Provider.