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
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)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:alloydb/v1alpha:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- cluster_
id str - location str
 - user_
id str - project str
 
getUser Result
The following output properties are available:
- Database
Roles 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.
 - User
Type string - Optional. Type of this user.
 
- Database
Roles []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.
 - User
Type string - Optional. Type of this user.
 
- database
Roles 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.
 - user
Type String - Optional. Type of this user.
 
- database
Roles 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.
 - user
Type 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.
 
- database
Roles 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.
 - user
Type 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
