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.sqladmin/v1beta4.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
Retrieves a resource containing information about a 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(host: Optional[str] = None,
             instance: Optional[str] = None,
             name: Optional[str] = None,
             project: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(host: Optional[pulumi.Input[str]] = None,
             instance: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             project: 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:sqladmin/v1beta4:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
getUser Result
The following output properties are available:
- DualPassword stringType 
- Dual password status for the user.
- Etag string
- This field is deprecated and will be removed from a future version of the API.
- Host string
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- Instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- Kind string
- This is always sql#user.
- Name string
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- Password string
- The password for the user.
- PasswordPolicy Pulumi.Google Native. SQLAdmin. V1Beta4. Outputs. User Password Validation Policy Response 
- User level password validation policy.
- Project string
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- SqlserverUser Pulumi.Details Google Native. SQLAdmin. V1Beta4. Outputs. Sql Server User Details Response 
- Type string
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- DualPassword stringType 
- Dual password status for the user.
- Etag string
- This field is deprecated and will be removed from a future version of the API.
- Host string
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- Instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- Kind string
- This is always sql#user.
- Name string
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- Password string
- The password for the user.
- PasswordPolicy UserPassword Validation Policy Response 
- User level password validation policy.
- Project string
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- SqlserverUser SqlDetails Server User Details Response 
- Type string
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- dualPassword StringType 
- Dual password status for the user.
- etag String
- This field is deprecated and will be removed from a future version of the API.
- host String
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- instance String
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- kind String
- This is always sql#user.
- name String
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- password String
- The password for the user.
- passwordPolicy UserPassword Validation Policy Response 
- User level password validation policy.
- project String
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- sqlserverUser SqlDetails Server User Details Response 
- type String
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- dualPassword stringType 
- Dual password status for the user.
- etag string
- This field is deprecated and will be removed from a future version of the API.
- host string
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- kind string
- This is always sql#user.
- name string
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- password string
- The password for the user.
- passwordPolicy UserPassword Validation Policy Response 
- User level password validation policy.
- project string
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- sqlserverUser SqlDetails Server User Details Response 
- type string
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- dual_password_ strtype 
- Dual password status for the user.
- etag str
- This field is deprecated and will be removed from a future version of the API.
- host str
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- instance str
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- kind str
- This is always sql#user.
- name str
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- password str
- The password for the user.
- password_policy UserPassword Validation Policy Response 
- User level password validation policy.
- project str
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- sqlserver_user_ Sqldetails Server User Details Response 
- type str
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- dualPassword StringType 
- Dual password status for the user.
- etag String
- This field is deprecated and will be removed from a future version of the API.
- host String
- Optional. The host from which the user can connect. For insertoperations, host defaults to an empty string. Forupdateoperations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
- instance String
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update because it is already specified on the URL.
- kind String
- This is always sql#user.
- name String
- The name of the user in the Cloud SQL instance. Can be omitted for updatebecause it is already specified in the URL.
- password String
- The password for the user.
- passwordPolicy Property Map
- User level password validation policy.
- project String
- The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update because it is already specified on the URL.
- sqlserverUser Property MapDetails 
- type String
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
Supporting Types
PasswordStatusResponse  
- Locked bool
- If true, user does not have login privileges.
- PasswordExpiration stringTime 
- The expiration time of the current password.
- Locked bool
- If true, user does not have login privileges.
- PasswordExpiration stringTime 
- The expiration time of the current password.
- locked Boolean
- If true, user does not have login privileges.
- passwordExpiration StringTime 
- The expiration time of the current password.
- locked boolean
- If true, user does not have login privileges.
- passwordExpiration stringTime 
- The expiration time of the current password.
- locked bool
- If true, user does not have login privileges.
- password_expiration_ strtime 
- The expiration time of the current password.
- locked Boolean
- If true, user does not have login privileges.
- passwordExpiration StringTime 
- The expiration time of the current password.
SqlServerUserDetailsResponse    
- Disabled bool
- If the user has been disabled
- ServerRoles List<string>
- The server roles for this user
- Disabled bool
- If the user has been disabled
- ServerRoles []string
- The server roles for this user
- disabled Boolean
- If the user has been disabled
- serverRoles List<String>
- The server roles for this user
- disabled boolean
- If the user has been disabled
- serverRoles string[]
- The server roles for this user
- disabled bool
- If the user has been disabled
- server_roles Sequence[str]
- The server roles for this user
- disabled Boolean
- If the user has been disabled
- serverRoles List<String>
- The server roles for this user
UserPasswordValidationPolicyResponse    
- AllowedFailed intAttempts 
- Number of failed login attempts allowed before user get locked.
- EnableFailed boolAttempts Check 
- If true, failed login attempts check will be enabled.
- EnablePassword boolVerification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- PasswordExpiration stringDuration 
- Expiration duration after password is updated.
- Status
Pulumi.Google Native. SQLAdmin. V1Beta4. Inputs. Password Status Response 
- Read-only password status.
- AllowedFailed intAttempts 
- Number of failed login attempts allowed before user get locked.
- EnableFailed boolAttempts Check 
- If true, failed login attempts check will be enabled.
- EnablePassword boolVerification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- PasswordExpiration stringDuration 
- Expiration duration after password is updated.
- Status
PasswordStatus Response 
- Read-only password status.
- allowedFailed IntegerAttempts 
- Number of failed login attempts allowed before user get locked.
- enableFailed BooleanAttempts Check 
- If true, failed login attempts check will be enabled.
- enablePassword BooleanVerification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- passwordExpiration StringDuration 
- Expiration duration after password is updated.
- status
PasswordStatus Response 
- Read-only password status.
- allowedFailed numberAttempts 
- Number of failed login attempts allowed before user get locked.
- enableFailed booleanAttempts Check 
- If true, failed login attempts check will be enabled.
- enablePassword booleanVerification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- passwordExpiration stringDuration 
- Expiration duration after password is updated.
- status
PasswordStatus Response 
- Read-only password status.
- allowed_failed_ intattempts 
- Number of failed login attempts allowed before user get locked.
- enable_failed_ boolattempts_ check 
- If true, failed login attempts check will be enabled.
- enable_password_ boolverification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password_expiration_ strduration 
- Expiration duration after password is updated.
- status
PasswordStatus Response 
- Read-only password status.
- allowedFailed NumberAttempts 
- Number of failed login attempts allowed before user get locked.
- enableFailed BooleanAttempts Check 
- If true, failed login attempts check will be enabled.
- enablePassword BooleanVerification 
- If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- passwordExpiration StringDuration 
- Expiration duration after password is updated.
- status Property Map
- Read-only password status.
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