1. Packages
  2. Google Cloud Native
  3. API Docs
  4. alloydb
  5. alloydb/v1alpha
  6. getUser

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.alloydb/v1alpha.getUser

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Gets details of a single User.

    Using getUser

    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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
    function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
    def get_user(cluster_id: Optional[str] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 user_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(cluster_id: Optional[pulumi.Input[str]] = None,
                 location: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 user_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
    func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
    func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput

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

    public static class GetUser 
    {
        public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
        public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:alloydb/v1alpha:getUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Location string
    UserId string
    Project string
    ClusterId string
    Location string
    UserId string
    Project string
    clusterId String
    location String
    userId String
    project String
    clusterId string
    location string
    userId string
    project string
    clusterId String
    location String
    userId String
    project String

    getUser Result

    The following output properties are available:

    DatabaseRoles List<string>
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    Name string
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    Password string
    Input only. Password for the user.
    UserType string
    Optional. Type of this user.
    DatabaseRoles []string
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    Name string
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    Password string
    Input only. Password for the user.
    UserType string
    Optional. Type of this user.
    databaseRoles List<String>
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    name String
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    password String
    Input only. Password for the user.
    userType String
    Optional. Type of this user.
    databaseRoles string[]
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    name string
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    password string
    Input only. Password for the user.
    userType string
    Optional. Type of this user.
    database_roles Sequence[str]
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    name str
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    password str
    Input only. Password for the user.
    user_type str
    Optional. Type of this user.
    databaseRoles List<String>
    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
    name String
    Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
    password String
    Input only. Password for the user.
    userType String
    Optional. Type of this user.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi