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 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>
Copy
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]
Copy
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:alloydb/v1alpha:getUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Location This property is required. string
UserId This property is required. string
Project string
ClusterId This property is required. string
Location This property is required. string
UserId This property is required. string
Project string
clusterId This property is required. String
location This property is required. String
userId This property is required. String
project String
clusterId This property is required. string
location This property is required. string
userId This property is required. string
project string
cluster_id This property is required. str
location This property is required. str
user_id This property is required. str
project str
clusterId This property is required. String
location This property is required. String
userId This property is required. 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 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