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

prismacloud.getUserRoles

Explore with Pulumi AI

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

    Retrieve a list of user roles.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getUserRoles({});
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_user_roles()
    
    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.GetUserRoles(ctx, &prismacloud.GetUserRolesArgs{}, 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.GetUserRoles.Invoke();
    
    });
    
    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.GetUserRolesArgs;
    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.getUserRoles();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getUserRoles
          arguments: {}
    

    Using getUserRoles

    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 getUserRoles(args: GetUserRolesArgs, opts?: InvokeOptions): Promise<GetUserRolesResult>
    function getUserRolesOutput(args: GetUserRolesOutputArgs, opts?: InvokeOptions): Output<GetUserRolesResult>
    def get_user_roles(id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetUserRolesResult
    def get_user_roles_output(id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetUserRolesResult]
    func GetUserRoles(ctx *Context, args *GetUserRolesArgs, opts ...InvokeOption) (*GetUserRolesResult, error)
    func GetUserRolesOutput(ctx *Context, args *GetUserRolesOutputArgs, opts ...InvokeOption) GetUserRolesResultOutput

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

    public static class GetUserRoles 
    {
        public static Task<GetUserRolesResult> InvokeAsync(GetUserRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetUserRolesResult> Invoke(GetUserRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserRolesResult> getUserRoles(GetUserRolesArgs args, InvokeOptions options)
    public static Output<GetUserRolesResult> getUserRoles(GetUserRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getUserRoles:getUserRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getUserRoles Result

    The following output properties are available:

    Id string
    Listings List<GetUserRolesListing>
    List of user roles returned, as defined below.
    Total double
    (int) Total number of user roles.
    Id string
    Listings []GetUserRolesListing
    List of user roles returned, as defined below.
    Total float64
    (int) Total number of user roles.
    id String
    listings List<GetUserRolesListing>
    List of user roles returned, as defined below.
    total Double
    (int) Total number of user roles.
    id string
    listings GetUserRolesListing[]
    List of user roles returned, as defined below.
    total number
    (int) Total number of user roles.
    id str
    listings Sequence[GetUserRolesListing]
    List of user roles returned, as defined below.
    total float
    (int) Total number of user roles.
    id String
    listings List<Property Map>
    List of user roles returned, as defined below.
    total Number
    (int) Total number of user roles.

    Supporting Types

    GetUserRolesListing

    AccountGroups List<GetUserRolesListingAccountGroup>
    List of associated account groups, as defined below.
    AdditionalAttributes List<GetUserRolesListingAdditionalAttribute>
    An Additional attributes spec, as defined below.
    AssociatedUsers List<string>
    List of associated application users which cannot exist in the system without the user role.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Name string
    Group name.
    RestrictDismissalAccess bool
    (bool) Restrict dismissal access.
    RoleId string
    Role Id
    RoleType string
    User role type.
    AccountGroups []GetUserRolesListingAccountGroup
    List of associated account groups, as defined below.
    AdditionalAttributes []GetUserRolesListingAdditionalAttribute
    An Additional attributes spec, as defined below.
    AssociatedUsers []string
    List of associated application users which cannot exist in the system without the user role.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Name string
    Group name.
    RestrictDismissalAccess bool
    (bool) Restrict dismissal access.
    RoleId string
    Role Id
    RoleType string
    User role type.
    accountGroups List<GetUserRolesListingAccountGroup>
    List of associated account groups, as defined below.
    additionalAttributes List<GetUserRolesListingAdditionalAttribute>
    An Additional attributes spec, as defined below.
    associatedUsers List<String>
    List of associated application users which cannot exist in the system without the user role.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    name String
    Group name.
    restrictDismissalAccess Boolean
    (bool) Restrict dismissal access.
    roleId String
    Role Id
    roleType String
    User role type.
    accountGroups GetUserRolesListingAccountGroup[]
    List of associated account groups, as defined below.
    additionalAttributes GetUserRolesListingAdditionalAttribute[]
    An Additional attributes spec, as defined below.
    associatedUsers string[]
    List of associated application users which cannot exist in the system without the user role.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    name string
    Group name.
    restrictDismissalAccess boolean
    (bool) Restrict dismissal access.
    roleId string
    Role Id
    roleType string
    User role type.
    account_groups Sequence[GetUserRolesListingAccountGroup]
    List of associated account groups, as defined below.
    additional_attributes Sequence[GetUserRolesListingAdditionalAttribute]
    An Additional attributes spec, as defined below.
    associated_users Sequence[str]
    List of associated application users which cannot exist in the system without the user role.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    name str
    Group name.
    restrict_dismissal_access bool
    (bool) Restrict dismissal access.
    role_id str
    Role Id
    role_type str
    User role type.
    accountGroups List<Property Map>
    List of associated account groups, as defined below.
    additionalAttributes List<Property Map>
    An Additional attributes spec, as defined below.
    associatedUsers List<String>
    List of associated application users which cannot exist in the system without the user role.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    name String
    Group name.
    restrictDismissalAccess Boolean
    (bool) Restrict dismissal access.
    roleId String
    Role Id
    roleType String
    User role type.

    GetUserRolesListingAccountGroup

    GroupId string
    The group ID.
    Name string
    Group name.
    GroupId string
    The group ID.
    Name string
    Group name.
    groupId String
    The group ID.
    name String
    Group name.
    groupId string
    The group ID.
    name string
    Group name.
    group_id str
    The group ID.
    name str
    Group name.
    groupId String
    The group ID.
    name String
    Group name.

    GetUserRolesListingAdditionalAttribute

    HasDefenderPermissions bool
    (bool) - Has defender Permissions.
    OnlyAllowCiAccess bool
    (bool) - Allows only CI Access.
    OnlyAllowComputeAccess bool
    (bool) - Access to only Compute tab and Access keys.
    OnlyAllowReadAccess bool
    (bool) - Allow read only access.
    HasDefenderPermissions bool
    (bool) - Has defender Permissions.
    OnlyAllowCiAccess bool
    (bool) - Allows only CI Access.
    OnlyAllowComputeAccess bool
    (bool) - Access to only Compute tab and Access keys.
    OnlyAllowReadAccess bool
    (bool) - Allow read only access.
    hasDefenderPermissions Boolean
    (bool) - Has defender Permissions.
    onlyAllowCiAccess Boolean
    (bool) - Allows only CI Access.
    onlyAllowComputeAccess Boolean
    (bool) - Access to only Compute tab and Access keys.
    onlyAllowReadAccess Boolean
    (bool) - Allow read only access.
    hasDefenderPermissions boolean
    (bool) - Has defender Permissions.
    onlyAllowCiAccess boolean
    (bool) - Allows only CI Access.
    onlyAllowComputeAccess boolean
    (bool) - Access to only Compute tab and Access keys.
    onlyAllowReadAccess boolean
    (bool) - Allow read only access.
    has_defender_permissions bool
    (bool) - Has defender Permissions.
    only_allow_ci_access bool
    (bool) - Allows only CI Access.
    only_allow_compute_access bool
    (bool) - Access to only Compute tab and Access keys.
    only_allow_read_access bool
    (bool) - Allow read only access.
    hasDefenderPermissions Boolean
    (bool) - Has defender Permissions.
    onlyAllowCiAccess Boolean
    (bool) - Allows only CI Access.
    onlyAllowComputeAccess Boolean
    (bool) - Access to only Compute tab and Access keys.
    onlyAllowReadAccess Boolean
    (bool) - Allow read only access.

    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