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

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));
Copy
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]])
Copy
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
})
}
Copy
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(),
    };
});
Copy
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()));
    }
}
Copy
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>
Copy
def get_permissions_sets(opts: Optional[InvokeOptions] = None) -> GetPermissionsSetsResult
def get_permissions_sets_output(opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsSetsResult]
Copy
func LookupPermissionsSets(ctx *Context, opts ...InvokeOption) (*LookupPermissionsSetsResult, error)
func LookupPermissionsSetsOutput(ctx *Context, opts ...InvokeOption) LookupPermissionsSetsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPermissionsSetsResult> getPermissionsSets(InvokeOptions options)
public static Output<GetPermissionsSetsResult> getPermissionsSets(InvokeOptions options)
Copy
fn::invoke:
  function: aquasec:index/getPermissionsSets:getPermissionsSets
  arguments:
    # arguments dictionary
Copy

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 This property is required. List<string>
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
Author This property is required. string
The name of the user who created the Permission Set.
Description This property is required. string
Free text description for the Permission Set.
IsSuper This property is required. bool
Give the Permission Set full access, meaning all actions are allowed without restriction.
Name This property is required. string
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
UiAccess This property is required. bool
Whether to allow UI access for users with this Permission Set.
UpdatedAt This property is required. string
The date of the last modification of the Role.
Actions This property is required. []string
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
Author This property is required. string
The name of the user who created the Permission Set.
Description This property is required. string
Free text description for the Permission Set.
IsSuper This property is required. bool
Give the Permission Set full access, meaning all actions are allowed without restriction.
Name This property is required. string
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
UiAccess This property is required. bool
Whether to allow UI access for users with this Permission Set.
UpdatedAt This property is required. string
The date of the last modification of the Role.
actions This property is required. List<String>
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
author This property is required. String
The name of the user who created the Permission Set.
description This property is required. String
Free text description for the Permission Set.
isSuper This property is required. Boolean
Give the Permission Set full access, meaning all actions are allowed without restriction.
name This property is required. String
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
uiAccess This property is required. Boolean
Whether to allow UI access for users with this Permission Set.
updatedAt This property is required. String
The date of the last modification of the Role.
actions This property is required. string[]
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
author This property is required. string
The name of the user who created the Permission Set.
description This property is required. string
Free text description for the Permission Set.
isSuper This property is required. boolean
Give the Permission Set full access, meaning all actions are allowed without restriction.
name This property is required. string
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
uiAccess This property is required. boolean
Whether to allow UI access for users with this Permission Set.
updatedAt This property is required. string
The date of the last modification of the Role.
actions This property is required. Sequence[str]
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
author This property is required. str
The name of the user who created the Permission Set.
description This property is required. str
Free text description for the Permission Set.
is_super This property is required. bool
Give the Permission Set full access, meaning all actions are allowed without restriction.
name This property is required. str
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
ui_access This property is required. bool
Whether to allow UI access for users with this Permission Set.
updated_at This property is required. str
The date of the last modification of the Role.
actions This property is required. List<String>
List of allowed actions for the Permission Set (not relevant if 'is_super' is true).
author This property is required. String
The name of the user who created the Permission Set.
description This property is required. String
Free text description for the Permission Set.
isSuper This property is required. Boolean
Give the Permission Set full access, meaning all actions are allowed without restriction.
name This property is required. String
The name of the Permission Set, comprised of alphanumeric characters and '-', '_', ' ', ':', '.', '@', '!', '^'.
uiAccess This property is required. Boolean
Whether to allow UI access for users with this Permission Set.
updatedAt This property is required. 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.