prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getUserProfile
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve information on a specific user profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getUserProfile({
profileId: "user@email.com",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_user_profile(profile_id="user@email.com")
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.LookupUserProfile(ctx, &prismacloud.LookupUserProfileArgs{
ProfileId: "user@email.com",
}, 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.GetUserProfile.Invoke(new()
{
ProfileId = "user@email.com",
});
});
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.GetUserProfileArgs;
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.getUserProfile(GetUserProfileArgs.builder()
.profileId("user@email.com")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getUserProfile
arguments:
profileId: user@email.com
Using getUserProfile
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 getUserProfile(args: GetUserProfileArgs, opts?: InvokeOptions): Promise<GetUserProfileResult>
function getUserProfileOutput(args: GetUserProfileOutputArgs, opts?: InvokeOptions): Output<GetUserProfileResult>
def get_user_profile(id: Optional[str] = None,
profile_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserProfileResult
def get_user_profile_output(id: Optional[pulumi.Input[str]] = None,
profile_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserProfileResult]
func LookupUserProfile(ctx *Context, args *LookupUserProfileArgs, opts ...InvokeOption) (*LookupUserProfileResult, error)
func LookupUserProfileOutput(ctx *Context, args *LookupUserProfileOutputArgs, opts ...InvokeOption) LookupUserProfileResultOutput
> Note: This function is named LookupUserProfile
in the Go SDK.
public static class GetUserProfile
{
public static Task<GetUserProfileResult> InvokeAsync(GetUserProfileArgs args, InvokeOptions? opts = null)
public static Output<GetUserProfileResult> Invoke(GetUserProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
public static Output<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getUserProfile:getUserProfile
arguments:
# arguments dictionary
The following arguments are supported:
- profile_
id str - Profile ID (email or username).
- id str
getUserProfile Result
The following output properties are available:
- Access
Keys boolAllowed - (bool) Access keys allowed.
- Access
Keys doubleCount - (int) Access key count.
- Account
Type string - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- Default
Role stringId - Default User Role ID.
- Display
Name string - Display name.
- Email string
- Email ID.
- Enabled bool
- (bool) Enabled.
- First
Name string - First name.
- Id string
- Last
Login doubleTs - (int) Last login timestamp.
- Last
Modified stringBy - Last modified by.
- Last
Modified doubleTs - (int) Last modified timestamp.
- Last
Name string - Last name.
- Profile
Id string - Role
Ids List<string> - List of Role IDs.
- Roles
List<Get
User Profile Role> - List of User Profile Roles Details. Each item has role information, as defined below.
- Time
Zone string - Time zone (e.g. America/Los_Angeles).
- Username string
- User email or service account name.
- Access
Keys boolAllowed - (bool) Access keys allowed.
- Access
Keys float64Count - (int) Access key count.
- Account
Type string - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- Default
Role stringId - Default User Role ID.
- Display
Name string - Display name.
- Email string
- Email ID.
- Enabled bool
- (bool) Enabled.
- First
Name string - First name.
- Id string
- Last
Login float64Ts - (int) Last login timestamp.
- Last
Modified stringBy - Last modified by.
- Last
Modified float64Ts - (int) Last modified timestamp.
- Last
Name string - Last name.
- Profile
Id string - Role
Ids []string - List of Role IDs.
- Roles
[]Get
User Profile Role - List of User Profile Roles Details. Each item has role information, as defined below.
- Time
Zone string - Time zone (e.g. America/Los_Angeles).
- Username string
- User email or service account name.
- access
Keys BooleanAllowed - (bool) Access keys allowed.
- access
Keys DoubleCount - (int) Access key count.
- account
Type String - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- default
Role StringId - Default User Role ID.
- display
Name String - Display name.
- email String
- Email ID.
- enabled Boolean
- (bool) Enabled.
- first
Name String - First name.
- id String
- last
Login DoubleTs - (int) Last login timestamp.
- last
Modified StringBy - Last modified by.
- last
Modified DoubleTs - (int) Last modified timestamp.
- last
Name String - Last name.
- profile
Id String - role
Ids List<String> - List of Role IDs.
- roles
List<Get
User Profile Role> - List of User Profile Roles Details. Each item has role information, as defined below.
- time
Zone String - Time zone (e.g. America/Los_Angeles).
- username String
- User email or service account name.
- access
Keys booleanAllowed - (bool) Access keys allowed.
- access
Keys numberCount - (int) Access key count.
- account
Type string - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- default
Role stringId - Default User Role ID.
- display
Name string - Display name.
- email string
- Email ID.
- enabled boolean
- (bool) Enabled.
- first
Name string - First name.
- id string
- last
Login numberTs - (int) Last login timestamp.
- last
Modified stringBy - Last modified by.
- last
Modified numberTs - (int) Last modified timestamp.
- last
Name string - Last name.
- profile
Id string - role
Ids string[] - List of Role IDs.
- roles
Get
User Profile Role[] - List of User Profile Roles Details. Each item has role information, as defined below.
- time
Zone string - Time zone (e.g. America/Los_Angeles).
- username string
- User email or service account name.
- access_
keys_ boolallowed - (bool) Access keys allowed.
- access_
keys_ floatcount - (int) Access key count.
- account_
type str - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- default_
role_ strid - Default User Role ID.
- display_
name str - Display name.
- email str
- Email ID.
- enabled bool
- (bool) Enabled.
- first_
name str - First name.
- id str
- last_
login_ floatts - (int) Last login timestamp.
- last_
modified_ strby - Last modified by.
- last_
modified_ floatts - (int) Last modified timestamp.
- last_
name str - Last name.
- profile_
id str - role_
ids Sequence[str] - List of Role IDs.
- roles
Sequence[Get
User Profile Role] - List of User Profile Roles Details. Each item has role information, as defined below.
- time_
zone str - Time zone (e.g. America/Los_Angeles).
- username str
- User email or service account name.
- access
Keys BooleanAllowed - (bool) Access keys allowed.
- access
Keys NumberCount - (int) Access key count.
- account
Type String - Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
- default
Role StringId - Default User Role ID.
- display
Name String - Display name.
- email String
- Email ID.
- enabled Boolean
- (bool) Enabled.
- first
Name String - First name.
- id String
- last
Login NumberTs - (int) Last login timestamp.
- last
Modified StringBy - Last modified by.
- last
Modified NumberTs - (int) Last modified timestamp.
- last
Name String - Last name.
- profile
Id String - role
Ids List<String> - List of Role IDs.
- roles List<Property Map>
- List of User Profile Roles Details. Each item has role information, as defined below.
- time
Zone String - Time zone (e.g. America/Los_Angeles).
- username String
- User email or service account name.
Supporting Types
GetUserProfileRole
- Name string
- User Role Name.
- Only
Allow boolCi Access - (bool) Allow only CI Access for Build and Deploy security roles.
- Only
Allow boolCompute Access - (bool) Allow only Compute Access for reduced system admin roles.
- Only
Allow boolRead Access - (bool) Allow only read access.
- Role
Id string - User Role ID.
- Role
Type string - User Role Type.
- Name string
- User Role Name.
- Only
Allow boolCi Access - (bool) Allow only CI Access for Build and Deploy security roles.
- Only
Allow boolCompute Access - (bool) Allow only Compute Access for reduced system admin roles.
- Only
Allow boolRead Access - (bool) Allow only read access.
- Role
Id string - User Role ID.
- Role
Type string - User Role Type.
- name String
- User Role Name.
- only
Allow BooleanCi Access - (bool) Allow only CI Access for Build and Deploy security roles.
- only
Allow BooleanCompute Access - (bool) Allow only Compute Access for reduced system admin roles.
- only
Allow BooleanRead Access - (bool) Allow only read access.
- role
Id String - User Role ID.
- role
Type String - User Role Type.
- name string
- User Role Name.
- only
Allow booleanCi Access - (bool) Allow only CI Access for Build and Deploy security roles.
- only
Allow booleanCompute Access - (bool) Allow only Compute Access for reduced system admin roles.
- only
Allow booleanRead Access - (bool) Allow only read access.
- role
Id string - User Role ID.
- role
Type string - User Role Type.
- name str
- User Role Name.
- only_
allow_ boolci_ access - (bool) Allow only CI Access for Build and Deploy security roles.
- only_
allow_ boolcompute_ access - (bool) Allow only Compute Access for reduced system admin roles.
- only_
allow_ boolread_ access - (bool) Allow only read access.
- role_
id str - User Role ID.
- role_
type str - User Role Type.
- name String
- User Role Name.
- only
Allow BooleanCi Access - (bool) Allow only CI Access for Build and Deploy security roles.
- only
Allow BooleanCompute Access - (bool) Allow only Compute Access for reduced system admin roles.
- only
Allow BooleanRead Access - (bool) Allow only read access.
- role
Id String - User Role ID.
- role
Type String - User Role Type.
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