1. Packages
  2. Aquasec
  3. API Docs
  4. getPermissionsSets
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

aquasec.getPermissionsSets

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

    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 dictionary

    getPermissionsSets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionsSets List<Pulumiverse.Aquasec.Outputs.GetPermissionsSetsPermissionsSet>
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionsSets []GetPermissionsSetsPermissionsSet
    id String
    The provider-assigned unique ID for this managed resource.
    permissionsSets List<GetPermissionsSetsPermissionsSet>
    id string
    The provider-assigned unique ID for this managed resource.
    permissionsSets GetPermissionsSetsPermissionsSet[]
    id str
    The provider-assigned unique ID for this managed resource.
    permissions_sets Sequence[GetPermissionsSetsPermissionsSet]
    id String
    The provider-assigned unique ID for this managed resource.
    permissionsSets List<Property Map>

    Supporting Types

    GetPermissionsSetsPermissionsSet

    Actions List<string>
    List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
    Author string
    The name of the user who created the Permission Set.
    Description string
    Free text description for the Permission Set.
    IsSuper 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 '-', '_', ' ', ':', '.', '@', '!', '^'.
    UiAccess bool
    Whether to allow UI access for users with this Permission Set.
    UpdatedAt 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).
    Author string
    The name of the user who created the Permission Set.
    Description string
    Free text description for the Permission Set.
    IsSuper 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 '-', '_', ' ', ':', '.', '@', '!', '^'.
    UiAccess bool
    Whether to allow UI access for users with this Permission Set.
    UpdatedAt 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).
    author String
    The name of the user who created the Permission Set.
    description String
    Free text description for the Permission Set.
    isSuper 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 '-', '_', ' ', ':', '.', '@', '!', '^'.
    uiAccess Boolean
    Whether to allow UI access for users with this Permission Set.
    updatedAt 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).
    author string
    The name of the user who created the Permission Set.
    description string
    Free text description for the Permission Set.
    isSuper 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 '-', '_', ' ', ':', '.', '@', '!', '^'.
    uiAccess boolean
    Whether to allow UI access for users with this Permission Set.
    updatedAt 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).
    author 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).
    author String
    The name of the user who created the Permission Set.
    description String
    Free text description for the Permission Set.
    isSuper 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 '-', '_', ' ', ':', '.', '@', '!', '^'.
    uiAccess Boolean
    Whether to allow UI access for users with this Permission Set.
    updatedAt 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 aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse