1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getUiPassword
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Identity.getUiPassword

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Ui Password resource in Oracle Cloud Infrastructure Identity service.

    Gets the specified user’s console password information. The returned object contains the user’s OCID, but not the password itself. The actual password is returned only when created or reset.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUiPassword = oci.Identity.getUiPassword({
        userId: oci_identity_user.test_user.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ui_password = oci.Identity.get_ui_password(user_id=oci_identity_user["test_user"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Identity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Identity.GetUiPassword(ctx, &identity.GetUiPasswordArgs{
    			UserId: oci_identity_user.Test_user.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testUiPassword = Oci.Identity.GetUiPassword.Invoke(new()
        {
            UserId = oci_identity_user.Test_user.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Identity.IdentityFunctions;
    import com.pulumi.oci.Identity.inputs.GetUiPasswordArgs;
    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 testUiPassword = IdentityFunctions.getUiPassword(GetUiPasswordArgs.builder()
                .userId(oci_identity_user.test_user().id())
                .build());
    
        }
    }
    
    variables:
      testUiPassword:
        fn::invoke:
          Function: oci:Identity:getUiPassword
          Arguments:
            userId: ${oci_identity_user.test_user.id}
    

    Using getUiPassword

    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 getUiPassword(args: GetUiPasswordArgs, opts?: InvokeOptions): Promise<GetUiPasswordResult>
    function getUiPasswordOutput(args: GetUiPasswordOutputArgs, opts?: InvokeOptions): Output<GetUiPasswordResult>
    def get_ui_password(user_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetUiPasswordResult
    def get_ui_password_output(user_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetUiPasswordResult]
    func GetUiPassword(ctx *Context, args *GetUiPasswordArgs, opts ...InvokeOption) (*GetUiPasswordResult, error)
    func GetUiPasswordOutput(ctx *Context, args *GetUiPasswordOutputArgs, opts ...InvokeOption) GetUiPasswordResultOutput

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

    public static class GetUiPassword 
    {
        public static Task<GetUiPasswordResult> InvokeAsync(GetUiPasswordArgs args, InvokeOptions? opts = null)
        public static Output<GetUiPasswordResult> Invoke(GetUiPasswordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUiPasswordResult> getUiPassword(GetUiPasswordArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Identity/getUiPassword:getUiPassword
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserId string
    The OCID of the user.
    UserId string
    The OCID of the user.
    userId String
    The OCID of the user.
    userId string
    The OCID of the user.
    user_id str
    The OCID of the user.
    userId String
    The OCID of the user.

    getUiPassword Result

    The following output properties are available:

    Id string
    InactiveStatus string
    Password string
    State string
    The password's current state.
    TimeCreated string
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    UserId string
    The OCID of the user.
    Id string
    InactiveStatus string
    Password string
    State string
    The password's current state.
    TimeCreated string
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    UserId string
    The OCID of the user.
    id String
    inactiveStatus String
    password String
    state String
    The password's current state.
    timeCreated String
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    userId String
    The OCID of the user.
    id string
    inactiveStatus string
    password string
    state string
    The password's current state.
    timeCreated string
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    userId string
    The OCID of the user.
    id str
    inactive_status str
    password str
    state str
    The password's current state.
    time_created str
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    user_id str
    The OCID of the user.
    id String
    inactiveStatus String
    password String
    state String
    The password's current state.
    timeCreated String
    Date and time the password was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    userId String
    The OCID of the user.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi