This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a new user in a Cloud SQL instance.
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
dual_password_type: Optional[UserDualPasswordType] = None,
etag: Optional[str] = None,
host: Optional[str] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
password_policy: Optional[UserPasswordValidationPolicyArgs] = None,
project: Optional[str] = None,
sqlserver_user_details: Optional[SqlServerUserDetailsArgs] = None,
type: Optional[UserType] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: google-native:sqladmin/v1:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_sqladmin_v1_user" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleuserResourceResourceFromSqladminv1 = new GoogleNative.SQLAdmin.V1.User("exampleuserResourceResourceFromSqladminv1", new()
{
Instance = "string",
DualPasswordType = GoogleNative.SQLAdmin.V1.UserDualPasswordType.DualPasswordTypeUnspecified,
Host = "string",
Kind = "string",
Name = "string",
Password = "string",
PasswordPolicy = new GoogleNative.SQLAdmin.V1.Inputs.UserPasswordValidationPolicyArgs
{
AllowedFailedAttempts = 0,
EnableFailedAttemptsCheck = false,
EnablePasswordVerification = false,
PasswordExpirationDuration = "string",
},
Project = "string",
SqlserverUserDetails = new GoogleNative.SQLAdmin.V1.Inputs.SqlServerUserDetailsArgs
{
Disabled = false,
ServerRoles = new[]
{
"string",
},
},
Type = GoogleNative.SQLAdmin.V1.UserType.BuiltIn,
});
example, err := sqladmin.NewUser(ctx, "exampleuserResourceResourceFromSqladminv1", &sqladmin.UserArgs{
Instance: pulumi.String("string"),
DualPasswordType: sqladmin.UserDualPasswordTypeDualPasswordTypeUnspecified,
Host: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
PasswordPolicy: &sqladmin.UserPasswordValidationPolicyArgs{
AllowedFailedAttempts: pulumi.Int(0),
EnableFailedAttemptsCheck: pulumi.Bool(false),
EnablePasswordVerification: pulumi.Bool(false),
PasswordExpirationDuration: pulumi.String("string"),
},
Project: pulumi.String("string"),
SqlserverUserDetails: &sqladmin.SqlServerUserDetailsArgs{
Disabled: pulumi.Bool(false),
ServerRoles: pulumi.StringArray{
pulumi.String("string"),
},
},
Type: sqladmin.UserTypeBuiltIn,
})
resource "google-native_sqladmin_v1_user" "exampleuserResourceResourceFromSqladminv1" {
lifecycle {
create_before_destroy = true
}
instance = "string"
dual_password_type = "DUAL_PASSWORD_TYPE_UNSPECIFIED"
host = "string"
kind = "string"
name = "string"
password = "string"
password_policy = {
allowed_failed_attempts = 0
enable_failed_attempts_check = false
enable_password_verification = false
password_expiration_duration = "string"
}
project = "string"
sqlserver_user_details = {
disabled = false
server_roles = ["string"]
}
type = "BUILT_IN"
}
var exampleuserResourceResourceFromSqladminv1 = new com.pulumi.googlenative.sqladmin_v1.User("exampleuserResourceResourceFromSqladminv1", com.pulumi.googlenative.sqladmin_v1.UserArgs.builder()
.instance("string")
.dualPasswordType(com.pulumi.googlenative.sqladmin_v1.enums.UserDualPasswordType.DualPasswordTypeUnspecified)
.host("string")
.kind("string")
.name("string")
.password("string")
.passwordPolicy(com.pulumi.googlenative.sqladmin_v1.inputs.UserPasswordValidationPolicyArgs.builder()
.allowedFailedAttempts(0)
.enableFailedAttemptsCheck(false)
.enablePasswordVerification(false)
.passwordExpirationDuration("string")
.build())
.project("string")
.sqlserverUserDetails(com.pulumi.googlenative.sqladmin_v1.inputs.SqlServerUserDetailsArgs.builder()
.disabled(false)
.serverRoles("string")
.build())
.type(com.pulumi.googlenative.sqladmin_v1.enums.UserType.BuiltIn)
.build());
exampleuser_resource_resource_from_sqladminv1 = google_native.sqladmin.v1.User("exampleuserResourceResourceFromSqladminv1",
instance="string",
dual_password_type=google_native.sqladmin.v1.UserDualPasswordType.DUAL_PASSWORD_TYPE_UNSPECIFIED,
host="string",
kind="string",
name="string",
password="string",
password_policy={
"allowed_failed_attempts": 0,
"enable_failed_attempts_check": False,
"enable_password_verification": False,
"password_expiration_duration": "string",
},
project="string",
sqlserver_user_details={
"disabled": False,
"server_roles": ["string"],
},
type=google_native.sqladmin.v1.UserType.BUILT_IN)
const exampleuserResourceResourceFromSqladminv1 = new google_native.sqladmin.v1.User("exampleuserResourceResourceFromSqladminv1", {
instance: "string",
dualPasswordType: google_native.sqladmin.v1.UserDualPasswordType.DualPasswordTypeUnspecified,
host: "string",
kind: "string",
name: "string",
password: "string",
passwordPolicy: {
allowedFailedAttempts: 0,
enableFailedAttemptsCheck: false,
enablePasswordVerification: false,
passwordExpirationDuration: "string",
},
project: "string",
sqlserverUserDetails: {
disabled: false,
serverRoles: ["string"],
},
type: google_native.sqladmin.v1.UserType.BuiltIn,
});
type: google-native:sqladmin/v1:User
properties:
dualPasswordType: DUAL_PASSWORD_TYPE_UNSPECIFIED
host: string
instance: string
kind: string
name: string
password: string
passwordPolicy:
allowedFailedAttempts: 0
enableFailedAttemptsCheck: false
enablePasswordVerification: false
passwordExpirationDuration: string
project: string
sqlserverUserDetails:
disabled: false
serverRoles:
- string
type: BUILT_IN
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- Instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - Dual
Password Pulumi.Type Google Native. SQLAdmin. V1. User Dual Password Type - 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. - 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.
- Password
Policy Pulumi.Google Native. SQLAdmin. V1. Inputs. User Password Validation Policy - 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
updatebecause it is already specified on the URL. - Sqlserver
User Pulumi.Details Google Native. SQLAdmin. V1. Inputs. Sql Server User Details - Type
Pulumi.
Google Native. SQLAdmin. V1. User Type - The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- Instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - Dual
Password UserType Dual Password Type - 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. - 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.
- Password
Policy UserPassword Validation Policy Args - 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
updatebecause it is already specified on the URL. - Sqlserver
User SqlDetails Server User Details Args - Type
User
Type - The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - dual_
password_ "DUAL_PASSWORD_TYPE_UNSPECIFIED" | "NO_MODIFY_DUAL_PASSWORD" | "NO_DUAL_PASSWORD" | "DUAL_PASSWORD"type - 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. - 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.
- password_
policy object - 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
updatebecause it is already specified on the URL. - sqlserver_
user_ objectdetails - type "BUILT_IN" | "CLOUD_IAM_USER" | "CLOUD_IAM_SERVICE_ACCOUNT" | "CLOUD_IAM_GROUP" | "CLOUD_IAM_GROUP_USER" | "CLOUD_IAM_GROUP_SERVICE_ACCOUNT"
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- instance String
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - dual
Password UserType Dual Password Type - 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. - 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.
- password
Policy UserPassword Validation Policy - 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
updatebecause it is already specified on the URL. - sqlserver
User SqlDetails Server User Details - type
User
Type - The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- instance string
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - dual
Password UserType Dual Password Type - 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. - 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.
- password
Policy UserPassword Validation Policy - 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
updatebecause it is already specified on the URL. - sqlserver
User SqlDetails Server User Details - type
User
Type - The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- instance str
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - dual_
password_ Usertype Dual Password Type - 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. - 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 Args - 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
updatebecause it is already specified on the URL. - sqlserver_
user_ Sqldetails Server User Details Args - type
User
Type - The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
- instance String
- The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
updatebecause it is already specified on the URL. - dual
Password "DUAL_PASSWORD_TYPE_UNSPECIFIED" | "NO_MODIFY_DUAL_PASSWORD" | "NO_DUAL_PASSWORD" | "DUAL_PASSWORD"Type - 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. - 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.
- 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
updatebecause it is already specified on the URL. - sqlserver
User Property MapDetails - type "BUILT_IN" | "CLOUD_IAM_USER" | "CLOUD_IAM_SERVICE_ACCOUNT" | "CLOUD_IAM_GROUP" | "CLOUD_IAM_GROUP_USER" | "CLOUD_IAM_GROUP_SERVICE_ACCOUNT"
- The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing User Resource
Get an existing User resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): User@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Userfunc GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)public static User Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static User get(String name, Output<String> id, CustomResourceOptions options)resources: existingUser: type: google-native:sqladmin/v1:User get: id: ${id}import {
to = google-native_sqladmin_v1_user.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state UserState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
PasswordStatusResponse
Read-only password status.
- Locked bool
- If true, user does not have login privileges.
- Password
Expiration stringTime - The expiration time of the current password.
- Locked bool
- If true, user does not have login privileges.
- Password
Expiration stringTime - The expiration time of the current password.
- locked bool
- If true, user does not have login privileges.
- password_
expiration_ stringtime - The expiration time of the current password.
- locked Boolean
- If true, user does not have login privileges.
- password
Expiration StringTime - The expiration time of the current password.
- locked boolean
- If true, user does not have login privileges.
- password
Expiration 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.
- password
Expiration StringTime - The expiration time of the current password.
SqlServerUserDetails, SqlServerUserDetailsArgs
Represents a Sql Server user on the Cloud SQL instance.
- Disabled bool
- If the user has been disabled
- Server
Roles List<string> - The server roles for this user
- Disabled bool
- If the user has been disabled
- Server
Roles []string - The server roles for this user
- disabled bool
- If the user has been disabled
- server_
roles list(string) - The server roles for this user
- disabled Boolean
- If the user has been disabled
- server
Roles List<String> - The server roles for this user
- disabled boolean
- If the user has been disabled
- server
Roles 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
- server
Roles List<String> - The server roles for this user
SqlServerUserDetailsResponse
Represents a Sql Server user on the Cloud SQL instance.
- Disabled bool
- If the user has been disabled
- Server
Roles List<string> - The server roles for this user
- Disabled bool
- If the user has been disabled
- Server
Roles []string - The server roles for this user
- disabled bool
- If the user has been disabled
- server_
roles list(string) - The server roles for this user
- disabled Boolean
- If the user has been disabled
- server
Roles List<String> - The server roles for this user
- disabled boolean
- If the user has been disabled
- server
Roles 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
- server
Roles List<String> - The server roles for this user
UserDualPasswordType
Dual password status for the user.
| Name | Value | Description |
|---|---|---|
| Dual | DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
| No | NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
| No | NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
| Dual | DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Name | Value | Description |
|---|---|---|
| User | DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
| User | NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
| User | NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
| User | DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Value | Description |
|---|---|
DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Name | Value | Description |
|---|---|---|
| Dual | DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
| No | NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
| No | NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
| Dual | DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Name | Value | Description |
|---|---|---|
| Dual | DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
| No | NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
| No | NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
| Dual | DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Name | Value | Description |
|---|---|---|
| DUAL_PASSWORD_TYPE_UNSPECIFIED | DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
| NO_MODIFY_DUAL_PASSWORD | NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
| NO_DUAL_PASSWORD | NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
| DUAL_PASSWORD | DUAL_PASSWORD | Dual password usable for connecting using this user. |
| Value | Description |
|---|---|
DUAL_PASSWORD_TYPE_UNSPECIFIED | The default value. |
NO_MODIFY_DUAL_PASSWORD | Do not update the user's dual password status. |
NO_DUAL_PASSWORD | No dual password usable for connecting using this user. |
DUAL_PASSWORD | Dual password usable for connecting using this user. |
UserPasswordValidationPolicy, UserPasswordValidationPolicyArgs
User level password validation policy.
- 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 stringDuration - Expiration duration after password is updated.
- 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 stringDuration - Expiration duration after password is updated.
- allowed_
failed_ numberattempts - 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_ stringduration - Expiration duration after password is updated.
- allowed
Failed IntegerAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed BooleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password BooleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration StringDuration - Expiration duration after password is updated.
- allowed
Failed numberAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed booleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password booleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration stringDuration - Expiration duration after password is updated.
- 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.
- allowed
Failed NumberAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed BooleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password BooleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration StringDuration - Expiration duration after password is updated.
UserPasswordValidationPolicyResponse
User level password validation policy.
- 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 stringDuration - Expiration duration after password is updated.
- Status
Pulumi.
Google Native. SQLAdmin. V1. Inputs. Password Status 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 stringDuration - Expiration duration after password is updated.
- Status
Password
Status Response - Read-only password status.
- allowed_
failed_ numberattempts - 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_ stringduration - Expiration duration after password is updated.
- status object
- Read-only password status.
- allowed
Failed IntegerAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed BooleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password BooleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration StringDuration - Expiration duration after password is updated.
- status
Password
Status Response - Read-only password status.
- allowed
Failed numberAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed booleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password booleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration stringDuration - Expiration duration after password is updated.
- status
Password
Status 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
Password
Status Response - Read-only password status.
- allowed
Failed NumberAttempts - Number of failed login attempts allowed before user get locked.
- enable
Failed BooleanAttempts Check - If true, failed login attempts check will be enabled.
- enable
Password BooleanVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
- password
Expiration StringDuration - Expiration duration after password is updated.
- status Property Map
- Read-only password status.
UserType
The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
| Name | Value | Description |
|---|---|---|
| Built | BUILT_IN | The database's built-in user type. |
| Cloud | CLOUD_IAM_USER | Cloud IAM user. |
| Cloud | CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
| Cloud | CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
| Cloud | CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
| Cloud | CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Name | Value | Description |
|---|---|---|
| User | BUILT_IN | The database's built-in user type. |
| User | CLOUD_IAM_USER | Cloud IAM user. |
| User | CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
| User | CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
| User | CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
| User | CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Value | Description |
|---|---|
BUILT_IN | The database's built-in user type. |
CLOUD_IAM_USER | Cloud IAM user. |
CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Name | Value | Description |
|---|---|---|
| Built | BUILT_IN | The database's built-in user type. |
| Cloud | CLOUD_IAM_USER | Cloud IAM user. |
| Cloud | CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
| Cloud | CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
| Cloud | CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
| Cloud | CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Name | Value | Description |
|---|---|---|
| Built | BUILT_IN | The database's built-in user type. |
| Cloud | CLOUD_IAM_USER | Cloud IAM user. |
| Cloud | CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
| Cloud | CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
| Cloud | CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
| Cloud | CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Name | Value | Description |
|---|---|---|
| BUILT_IN | BUILT_IN | The database's built-in user type. |
| CLOUD_IAM_USER | CLOUD_IAM_USER | Cloud IAM user. |
| CLOUD_IAM_SERVICE_ACCOUNT | CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
| CLOUD_IAM_GROUP | CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
| CLOUD_IAM_GROUP_USER | CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
| CLOUD_IAM_GROUP_SERVICE_ACCOUNT | CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
| Value | Description |
|---|---|
BUILT_IN | The database's built-in user type. |
CLOUD_IAM_USER | Cloud IAM user. |
CLOUD_IAM_SERVICE_ACCOUNT | Cloud IAM service account. |
CLOUD_IAM_GROUP | Cloud IAM Group non-login user. |
CLOUD_IAM_GROUP_USER | Cloud IAM Group login user. |
CLOUD_IAM_GROUP_SERVICE_ACCOUNT | Cloud IAM Group login service account. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi