1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getPermissionGroup
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getPermissionGroup

Explore with Pulumi AI

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    Retrieve information on a specific permission group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getPermissionGroup({
        name: "My Permission Group",
    });
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_permission_group(name="My Permission Group")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := prismacloud.LookupPermissionGroup(ctx, &prismacloud.LookupPermissionGroupArgs{
    			Name: pulumi.StringRef("My Permission Group"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Prismacloud = Pulumi.Prismacloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Prismacloud.GetPermissionGroup.Invoke(new()
        {
            Name = "My Permission Group",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.prismacloud.PrismacloudFunctions;
    import com.pulumi.prismacloud.inputs.GetPermissionGroupArgs;
    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 example = PrismacloudFunctions.getPermissionGroup(GetPermissionGroupArgs.builder()
                .name("My Permission Group")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getPermissionGroup
          arguments:
            name: My Permission Group
    

    Using getPermissionGroup

    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 getPermissionGroup(args: GetPermissionGroupArgs, opts?: InvokeOptions): Promise<GetPermissionGroupResult>
    function getPermissionGroupOutput(args: GetPermissionGroupOutputArgs, opts?: InvokeOptions): Output<GetPermissionGroupResult>
    def get_permission_group(id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPermissionGroupResult
    def get_permission_group_output(id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPermissionGroupResult]
    func LookupPermissionGroup(ctx *Context, args *LookupPermissionGroupArgs, opts ...InvokeOption) (*LookupPermissionGroupResult, error)
    func LookupPermissionGroupOutput(ctx *Context, args *LookupPermissionGroupOutputArgs, opts ...InvokeOption) LookupPermissionGroupResultOutput

    > Note: This function is named LookupPermissionGroup in the Go SDK.

    public static class GetPermissionGroup 
    {
        public static Task<GetPermissionGroupResult> InvokeAsync(GetPermissionGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionGroupResult> Invoke(GetPermissionGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPermissionGroupResult> getPermissionGroup(GetPermissionGroupArgs args, InvokeOptions options)
    public static Output<GetPermissionGroupResult> getPermissionGroup(GetPermissionGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getPermissionGroup:getPermissionGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Permission group id
    Name string
    Name of the permission group.
    Id string
    Permission group id
    Name string
    Name of the permission group.
    id String
    Permission group id
    name String
    Name of the permission group.
    id string
    Permission group id
    name string
    Name of the permission group.
    id str
    Permission group id
    name str
    Name of the permission group.
    id String
    Permission group id
    name String
    Name of the permission group.

    getPermissionGroup Result

    The following output properties are available:

    AcceptAccountGroups bool
    (bool) Accept account groups.
    AcceptCodeRepositories bool
    (bool) Accept code repositories.
    AcceptResourceLists bool
    (bool) Accept resource lists.
    AssociatedRoles Dictionary<string, string>
    List of associated user roles which cannot exist in the system without the permission group.
    Custom bool
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    Description string
    Description.
    Features List<GetPermissionGroupFeature>
    Collection of permitted features associated with the role, as defined below.
    Id string
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Name string
    PermissionGroupType string
    Permission group type.
    AcceptAccountGroups bool
    (bool) Accept account groups.
    AcceptCodeRepositories bool
    (bool) Accept code repositories.
    AcceptResourceLists bool
    (bool) Accept resource lists.
    AssociatedRoles map[string]string
    List of associated user roles which cannot exist in the system without the permission group.
    Custom bool
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    Description string
    Description.
    Features []GetPermissionGroupFeature
    Collection of permitted features associated with the role, as defined below.
    Id string
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Name string
    PermissionGroupType string
    Permission group type.
    acceptAccountGroups Boolean
    (bool) Accept account groups.
    acceptCodeRepositories Boolean
    (bool) Accept code repositories.
    acceptResourceLists Boolean
    (bool) Accept resource lists.
    associatedRoles Map<String,String>
    List of associated user roles which cannot exist in the system without the permission group.
    custom Boolean
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    description String
    Description.
    features List<GetPermissionGroupFeature>
    Collection of permitted features associated with the role, as defined below.
    id String
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    name String
    permissionGroupType String
    Permission group type.
    acceptAccountGroups boolean
    (bool) Accept account groups.
    acceptCodeRepositories boolean
    (bool) Accept code repositories.
    acceptResourceLists boolean
    (bool) Accept resource lists.
    associatedRoles {[key: string]: string}
    List of associated user roles which cannot exist in the system without the permission group.
    custom boolean
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    description string
    Description.
    features GetPermissionGroupFeature[]
    Collection of permitted features associated with the role, as defined below.
    id string
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    name string
    permissionGroupType string
    Permission group type.
    accept_account_groups bool
    (bool) Accept account groups.
    accept_code_repositories bool
    (bool) Accept code repositories.
    accept_resource_lists bool
    (bool) Accept resource lists.
    associated_roles Mapping[str, str]
    List of associated user roles which cannot exist in the system without the permission group.
    custom bool
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    description str
    Description.
    features Sequence[GetPermissionGroupFeature]
    Collection of permitted features associated with the role, as defined below.
    id str
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    name str
    permission_group_type str
    Permission group type.
    acceptAccountGroups Boolean
    (bool) Accept account groups.
    acceptCodeRepositories Boolean
    (bool) Accept code repositories.
    acceptResourceLists Boolean
    (bool) Accept resource lists.
    associatedRoles Map<String>
    List of associated user roles which cannot exist in the system without the permission group.
    custom Boolean
    (bool) Boolean value signifying whether this is a custom (i.e. user-defined) permission group.
    description String
    Description.
    features List<Property Map>
    Collection of permitted features associated with the role, as defined below.
    id String
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    name String
    permissionGroupType String
    Permission group type.

    Supporting Types

    GetPermissionGroupFeature

    FeatureName string
    Prisma Cloud Feature Name.
    Operations List<GetPermissionGroupFeatureOperation>
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
    FeatureName string
    Prisma Cloud Feature Name.
    Operations []GetPermissionGroupFeatureOperation
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
    featureName String
    Prisma Cloud Feature Name.
    operations List<GetPermissionGroupFeatureOperation>
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
    featureName string
    Prisma Cloud Feature Name.
    operations GetPermissionGroupFeatureOperation[]
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
    feature_name str
    Prisma Cloud Feature Name.
    operations Sequence[GetPermissionGroupFeatureOperation]
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.
    featureName String
    Prisma Cloud Feature Name.
    operations List<Property Map>
    A mapping of operations and a boolean value representing whether the privilege to perform the operation needs to be granted, as defined below.

    GetPermissionGroupFeatureOperation

    Create bool
    (bool) Create operation.
    Delete bool
    (bool) Delete operation.
    Read bool
    (bool) Read operation.
    Update bool
    (bool) Update operation.
    Create bool
    (bool) Create operation.
    Delete bool
    (bool) Delete operation.
    Read bool
    (bool) Read operation.
    Update bool
    (bool) Update operation.
    create Boolean
    (bool) Create operation.
    delete Boolean
    (bool) Delete operation.
    read Boolean
    (bool) Read operation.
    update Boolean
    (bool) Update operation.
    create boolean
    (bool) Create operation.
    delete boolean
    (bool) Delete operation.
    read boolean
    (bool) Read operation.
    update boolean
    (bool) Update operation.
    create bool
    (bool) Create operation.
    delete bool
    (bool) Delete operation.
    read bool
    (bool) Read operation.
    update bool
    (bool) Update operation.
    create Boolean
    (bool) Create operation.
    delete Boolean
    (bool) Delete operation.
    read Boolean
    (bool) Read operation.
    update Boolean
    (bool) Update operation.

    Package Details

    Repository
    prismacloud paloaltonetworks/terraform-provider-prismacloud
    License
    Notes
    This Pulumi package is based on the prismacloud Terraform Provider.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks