prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getUserRole
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve information on a specific user role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getUserRole({
name: "My Role",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_user_role(name="My Role")
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.LookupUserRole(ctx, &prismacloud.LookupUserRoleArgs{
Name: pulumi.StringRef("My Role"),
}, 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.GetUserRole.Invoke(new()
{
Name = "My Role",
});
});
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.GetUserRoleArgs;
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.getUserRole(GetUserRoleArgs.builder()
.name("My Role")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getUserRole
arguments:
name: My Role
Additional Attributes
only_allow_ci_access
- (bool) - Allows only CI Access.only_allow_read_access
- (bool) - Allow read only access.has_defender_permissions
- (bool) - Has defender Permissions.only_allow_compute_access
- (bool) - Access to only Compute tab and Access keys.
Using getUserRole
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 getUserRole(args: GetUserRoleArgs, opts?: InvokeOptions): Promise<GetUserRoleResult>
function getUserRoleOutput(args: GetUserRoleOutputArgs, opts?: InvokeOptions): Output<GetUserRoleResult>
def get_user_role(backoff_retry: Optional[bool] = None,
id: Optional[str] = None,
max_retries: Optional[float] = None,
name: Optional[str] = None,
role_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserRoleResult
def get_user_role_output(backoff_retry: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
max_retries: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
role_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserRoleResult]
func LookupUserRole(ctx *Context, args *LookupUserRoleArgs, opts ...InvokeOption) (*LookupUserRoleResult, error)
func LookupUserRoleOutput(ctx *Context, args *LookupUserRoleOutputArgs, opts ...InvokeOption) LookupUserRoleResultOutput
> Note: This function is named LookupUserRole
in the Go SDK.
public static class GetUserRole
{
public static Task<GetUserRoleResult> InvokeAsync(GetUserRoleArgs args, InvokeOptions? opts = null)
public static Output<GetUserRoleResult> Invoke(GetUserRoleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserRoleResult> getUserRole(GetUserRoleArgs args, InvokeOptions options)
public static Output<GetUserRoleResult> getUserRole(GetUserRoleArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getUserRole:getUserRole
arguments:
# arguments dictionary
The following arguments are supported:
- Backoff
Retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- Id string
- Max
Retries double - (int) (Default: 10) Maximum number of retries.
- Name string
- Name of the role.
- Role
Id string - Role Id
- Backoff
Retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- Id string
- Max
Retries float64 - (int) (Default: 10) Maximum number of retries.
- Name string
- Name of the role.
- Role
Id string - Role Id
- backoff
Retry Boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- id String
- max
Retries Double - (int) (Default: 10) Maximum number of retries.
- name String
- Name of the role.
- role
Id String - Role Id
- backoff
Retry boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- id string
- max
Retries number - (int) (Default: 10) Maximum number of retries.
- name string
- Name of the role.
- role
Id string - Role Id
- backoff_
retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- id str
- max_
retries float - (int) (Default: 10) Maximum number of retries.
- name str
- Name of the role.
- role_
id str - Role Id
- backoff
Retry Boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- id String
- max
Retries Number - (int) (Default: 10) Maximum number of retries.
- name String
- Name of the role.
- role
Id String - Role Id
getUserRole Result
The following output properties are available:
- Account
Group List<string>Ids - List of accessible account group IDs.
- Additional
Attributes List<GetUser Role Additional Attribute> - An Additional attributes spec, as defined below.
- Associated
Users List<string> - List of associated application users which cannot exist in the system without the user role.
- Code
Repository List<string>Ids - List of code repository IDs.
- Description string
- Description.
- Id string
- Last
Modified stringBy - Last modified by.
- Last
Modified doubleTs - (int) Last modified timestamp.
- Name string
- Resource
List List<string>Ids - List of resource list IDs.
- Restrict
Dismissal boolAccess - (bool) Restrict dismissal access.
- Role
Id string - Role
Type string - User role type.
- Backoff
Retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- Max
Retries double - (int) (Default: 10) Maximum number of retries.
- Account
Group []stringIds - List of accessible account group IDs.
- Additional
Attributes []GetUser Role Additional Attribute - An Additional attributes spec, as defined below.
- Associated
Users []string - List of associated application users which cannot exist in the system without the user role.
- Code
Repository []stringIds - List of code repository IDs.
- Description string
- Description.
- Id string
- Last
Modified stringBy - Last modified by.
- Last
Modified float64Ts - (int) Last modified timestamp.
- Name string
- Resource
List []stringIds - List of resource list IDs.
- Restrict
Dismissal boolAccess - (bool) Restrict dismissal access.
- Role
Id string - Role
Type string - User role type.
- Backoff
Retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- Max
Retries float64 - (int) (Default: 10) Maximum number of retries.
- account
Group List<String>Ids - List of accessible account group IDs.
- additional
Attributes List<GetUser Role Additional Attribute> - An Additional attributes spec, as defined below.
- associated
Users List<String> - List of associated application users which cannot exist in the system without the user role.
- code
Repository List<String>Ids - List of code repository IDs.
- description String
- Description.
- id String
- last
Modified StringBy - Last modified by.
- last
Modified DoubleTs - (int) Last modified timestamp.
- name String
- resource
List List<String>Ids - List of resource list IDs.
- restrict
Dismissal BooleanAccess - (bool) Restrict dismissal access.
- role
Id String - role
Type String - User role type.
- backoff
Retry Boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- max
Retries Double - (int) (Default: 10) Maximum number of retries.
- account
Group string[]Ids - List of accessible account group IDs.
- additional
Attributes GetUser Role Additional Attribute[] - An Additional attributes spec, as defined below.
- associated
Users string[] - List of associated application users which cannot exist in the system without the user role.
- code
Repository string[]Ids - List of code repository IDs.
- description string
- Description.
- id string
- last
Modified stringBy - Last modified by.
- last
Modified numberTs - (int) Last modified timestamp.
- name string
- resource
List string[]Ids - List of resource list IDs.
- restrict
Dismissal booleanAccess - (bool) Restrict dismissal access.
- role
Id string - role
Type string - User role type.
- backoff
Retry boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- max
Retries number - (int) (Default: 10) Maximum number of retries.
- account_
group_ Sequence[str]ids - List of accessible account group IDs.
- additional_
attributes Sequence[GetUser Role Additional Attribute] - 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.
- code_
repository_ Sequence[str]ids - List of code repository IDs.
- description str
- Description.
- id str
- last_
modified_ strby - Last modified by.
- last_
modified_ floatts - (int) Last modified timestamp.
- name str
- resource_
list_ Sequence[str]ids - List of resource list IDs.
- restrict_
dismissal_ boolaccess - (bool) Restrict dismissal access.
- role_
id str - role_
type str - User role type.
- backoff_
retry bool - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- max_
retries float - (int) (Default: 10) Maximum number of retries.
- account
Group List<String>Ids - List of accessible account group IDs.
- additional
Attributes List<Property Map> - An Additional attributes spec, as defined below.
- associated
Users List<String> - List of associated application users which cannot exist in the system without the user role.
- code
Repository List<String>Ids - List of code repository IDs.
- description String
- Description.
- id String
- last
Modified StringBy - Last modified by.
- last
Modified NumberTs - (int) Last modified timestamp.
- name String
- resource
List List<String>Ids - List of resource list IDs.
- restrict
Dismissal BooleanAccess - (bool) Restrict dismissal access.
- role
Id String - role
Type String - User role type.
- backoff
Retry Boolean - (bool) Backoff retry parameter manages retries when the API fails, using exponential backoff.
- max
Retries Number - (int) (Default: 10) Maximum number of retries.
Supporting Types
GetUserRoleAdditionalAttribute
- Has
Defender boolPermissions - Only
Allow boolCi Access - Only
Allow boolCompute Access - Only
Allow boolRead Access
- Has
Defender boolPermissions - Only
Allow boolCi Access - Only
Allow boolCompute Access - Only
Allow boolRead Access
- has
Defender BooleanPermissions - only
Allow BooleanCi Access - only
Allow BooleanCompute Access - only
Allow BooleanRead Access
- has
Defender booleanPermissions - only
Allow booleanCi Access - only
Allow booleanCompute Access - only
Allow booleanRead Access
- has
Defender BooleanPermissions - only
Allow BooleanCi Access - only
Allow BooleanCompute Access - only
Allow BooleanRead Access
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks