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 dictionary
The following arguments are supported:
getUser Result
The following output properties are available:
- Dual
Password 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because it is already specified in the URL. - Password string
- The password for the user.
- Password
Policy 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.
- Sqlserver
User 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.
- Dual
Password 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because it is already specified in the URL. - Password string
- The password for the user.
- Password
Policy 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.
- Sqlserver
User 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 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because it is already specified in the URL. - password String
- The password for the user.
- password
Policy 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.
- sqlserver
User 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 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because it is already specified in the URL. - password string
- The password for the user.
- password
Policy 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.
- sqlserver
User 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because 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.
- dual
Password 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
insert
operations, host defaults to an empty string. Forupdate
operations, 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
update
because it is already specified in the URL. - password String
- The password for the user.
- password
Policy 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.
- sqlserver
User 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
This property is required. bool - If true, user does not have login privileges.
- Password
Expiration Time This property is required. string - The expiration time of the current password.
- Locked
This property is required. bool - If true, user does not have login privileges.
- Password
Expiration Time This property is required. string - The expiration time of the current password.
- locked
This property is required. Boolean - If true, user does not have login privileges.
- password
Expiration Time This property is required. String - The expiration time of the current password.
- locked
This property is required. boolean - If true, user does not have login privileges.
- password
Expiration Time This property is required. string - The expiration time of the current password.
- locked
This property is required. bool - If true, user does not have login privileges.
- password_
expiration_ time This property is required. str - The expiration time of the current password.
- locked
This property is required. Boolean - If true, user does not have login privileges.
- password
Expiration Time This property is required. String - The expiration time of the current password.
SqlServerUserDetailsResponse
- Disabled
This property is required. bool - If the user has been disabled
- Server
Roles This property is required. List<string> - The server roles for this user
- Disabled
This property is required. bool - If the user has been disabled
- Server
Roles This property is required. []string - The server roles for this user
- disabled
This property is required. Boolean - If the user has been disabled
- server
Roles This property is required. List<String> - The server roles for this user
- disabled
This property is required. boolean - If the user has been disabled
- server
Roles This property is required. string[] - The server roles for this user
- disabled
This property is required. bool - If the user has been disabled
- server_
roles This property is required. Sequence[str] - The server roles for this user
- disabled
This property is required. Boolean - If the user has been disabled
- server
Roles This property is required. List<String> - The server roles for this user
UserPasswordValidationPolicyResponse
- Allowed
Failed Attempts This property is required. int - Number of failed login attempts allowed before user get locked.
- Enable
Failed Attempts Check This property is required. bool - If true, failed login attempts check will be enabled.
- Enable
Password Verification This property is required. bool - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- Password
Expiration Duration This property is required. string - Expiration duration after password is updated.
- Status
This property is required. Pulumi.Google Native. SQLAdmin. V1Beta4. Inputs. Password Status Response - Read-only password status.
- Allowed
Failed Attempts This property is required. int - Number of failed login attempts allowed before user get locked.
- Enable
Failed Attempts Check This property is required. bool - If true, failed login attempts check will be enabled.
- Enable
Password Verification This property is required. bool - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- Password
Expiration Duration This property is required. string - Expiration duration after password is updated.
- Status
This property is required. PasswordStatus Response - Read-only password status.
- allowed
Failed Attempts This property is required. Integer - Number of failed login attempts allowed before user get locked.
- enable
Failed Attempts Check This property is required. Boolean - If true, failed login attempts check will be enabled.
- enable
Password Verification This property is required. Boolean - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration Duration This property is required. String - Expiration duration after password is updated.
- status
This property is required. PasswordStatus Response - Read-only password status.
- allowed
Failed Attempts This property is required. number - Number of failed login attempts allowed before user get locked.
- enable
Failed Attempts Check This property is required. boolean - If true, failed login attempts check will be enabled.
- enable
Password Verification This property is required. boolean - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration Duration This property is required. string - Expiration duration after password is updated.
- status
This property is required. PasswordStatus Response - Read-only password status.
- allowed_
failed_ attempts This property is required. int - Number of failed login attempts allowed before user get locked.
- enable_
failed_ attempts_ check This property is required. bool - If true, failed login attempts check will be enabled.
- enable_
password_ verification This property is required. bool - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password_
expiration_ duration This property is required. str - Expiration duration after password is updated.
- status
This property is required. PasswordStatus Response - Read-only password status.
- allowed
Failed Attempts This property is required. Number - Number of failed login attempts allowed before user get locked.
- enable
Failed Attempts Check This property is required. Boolean - If true, failed login attempts check will be enabled.
- enable
Password Verification This property is required. Boolean - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration Duration This property is required. String - Expiration duration after password is updated.
- status
This property is required. 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