1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. sqladmin
  6. sqladmin/v1
  7. User

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
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)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    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 update because it is already specified on the URL.
    DualPasswordType Pulumi.GoogleNative.SQLAdmin.V1.UserDualPasswordType
    Dual password status for the user.
    Etag string
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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.
    PasswordPolicy Pulumi.GoogleNative.SQLAdmin.V1.Inputs.UserPasswordValidationPolicy
    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.
    SqlserverUserDetails Pulumi.GoogleNative.SQLAdmin.V1.Inputs.SqlServerUserDetails
    Type Pulumi.GoogleNative.SQLAdmin.V1.UserType
    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 update because it is already specified on the URL.
    DualPasswordType UserDualPasswordType
    Dual password status for the user.
    Etag string
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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.
    PasswordPolicy UserPasswordValidationPolicyArgs
    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.
    SqlserverUserDetails SqlServerUserDetailsArgs
    Type UserType
    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 update because it is already specified on the URL.
    dual_password_type "DUAL_PASSWORD_TYPE_UNSPECIFIED" | "NO_MODIFY_DUAL_PASSWORD" | "NO_DUAL_PASSWORD" | "DUAL_PASSWORD"
    Dual password status for the user.
    etag string
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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 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 update because it is already specified on the URL.
    sqlserver_user_details object
    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 update because it is already specified on the URL.
    dualPasswordType UserDualPasswordType
    Dual password status for the user.
    etag String
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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.
    passwordPolicy UserPasswordValidationPolicy
    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.
    sqlserverUserDetails SqlServerUserDetails
    type UserType
    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 update because it is already specified on the URL.
    dualPasswordType UserDualPasswordType
    Dual password status for the user.
    etag string
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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.
    passwordPolicy UserPasswordValidationPolicy
    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.
    sqlserverUserDetails SqlServerUserDetails
    type UserType
    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 update because it is already specified on the URL.
    dual_password_type UserDualPasswordType
    Dual password status for the user.
    etag str
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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 UserPasswordValidationPolicyArgs
    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_details SqlServerUserDetailsArgs
    type UserType
    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 update because it is already specified on the URL.
    dualPasswordType "DUAL_PASSWORD_TYPE_UNSPECIFIED" | "NO_MODIFY_DUAL_PASSWORD" | "NO_DUAL_PASSWORD" | "DUAL_PASSWORD"
    Dual password status for the user.
    etag String
    This field is deprecated and will be removed from a future version of the API.

    Deprecated: 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. For update 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.
    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.
    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.
    sqlserverUserDetails Property Map
    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) -> User
    func 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.
    PasswordExpirationTime string
    The expiration time of the current password.
    Locked bool
    If true, user does not have login privileges.
    PasswordExpirationTime string
    The expiration time of the current password.
    locked bool
    If true, user does not have login privileges.
    password_expiration_time string
    The expiration time of the current password.
    locked Boolean
    If true, user does not have login privileges.
    passwordExpirationTime String
    The expiration time of the current password.
    locked boolean
    If true, user does not have login privileges.
    passwordExpirationTime string
    The expiration time of the current password.
    locked bool
    If true, user does not have login privileges.
    password_expiration_time str
    The expiration time of the current password.
    locked Boolean
    If true, user does not have login privileges.
    passwordExpirationTime String
    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
    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 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
    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

    SqlServerUserDetailsResponse

    Represents a Sql Server user on the Cloud SQL instance.

    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 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
    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

    UserDualPasswordType

    Dual password status for the user.

    NameValueDescription
    DualPasswordTypeUnspecifiedDUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NoModifyDualPasswordNO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NoDualPasswordNO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DualPasswordDUAL_PASSWORDDual password usable for connecting using this user.
    NameValueDescription
    UserDualPasswordTypeDualPasswordTypeUnspecifiedDUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    UserDualPasswordTypeNoModifyDualPasswordNO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    UserDualPasswordTypeNoDualPasswordNO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    UserDualPasswordTypeDualPasswordDUAL_PASSWORDDual password usable for connecting using this user.
    ValueDescription
    DUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DUAL_PASSWORDDual password usable for connecting using this user.
    NameValueDescription
    DualPasswordTypeUnspecifiedDUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NoModifyDualPasswordNO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NoDualPasswordNO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DualPasswordDUAL_PASSWORDDual password usable for connecting using this user.
    NameValueDescription
    DualPasswordTypeUnspecifiedDUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NoModifyDualPasswordNO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NoDualPasswordNO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DualPasswordDUAL_PASSWORDDual password usable for connecting using this user.
    NameValueDescription
    DUAL_PASSWORD_TYPE_UNSPECIFIEDDUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NO_MODIFY_DUAL_PASSWORDNO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NO_DUAL_PASSWORDNO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DUAL_PASSWORDDUAL_PASSWORDDual password usable for connecting using this user.
    ValueDescription
    DUAL_PASSWORD_TYPE_UNSPECIFIEDThe default value.
    NO_MODIFY_DUAL_PASSWORDDo not update the user's dual password status.
    NO_DUAL_PASSWORDNo dual password usable for connecting using this user.
    DUAL_PASSWORDDual password usable for connecting using this user.

    UserPasswordValidationPolicy, UserPasswordValidationPolicyArgs

    User level password validation policy.

    AllowedFailedAttempts int
    Number of failed login attempts allowed before user get locked.
    EnableFailedAttemptsCheck bool
    If true, failed login attempts check will be enabled.
    EnablePasswordVerification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    PasswordExpirationDuration string
    Expiration duration after password is updated.
    AllowedFailedAttempts int
    Number of failed login attempts allowed before user get locked.
    EnableFailedAttemptsCheck bool
    If true, failed login attempts check will be enabled.
    EnablePasswordVerification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    PasswordExpirationDuration string
    Expiration duration after password is updated.
    allowed_failed_attempts number
    Number of failed login attempts allowed before user get locked.
    enable_failed_attempts_check bool
    If true, failed login attempts check will be enabled.
    enable_password_verification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    password_expiration_duration string
    Expiration duration after password is updated.
    allowedFailedAttempts Integer
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck Boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification Boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration String
    Expiration duration after password is updated.
    allowedFailedAttempts number
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration string
    Expiration duration after password is updated.
    allowed_failed_attempts int
    Number of failed login attempts allowed before user get locked.
    enable_failed_attempts_check bool
    If true, failed login attempts check will be enabled.
    enable_password_verification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    password_expiration_duration str
    Expiration duration after password is updated.
    allowedFailedAttempts Number
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck Boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification Boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration String
    Expiration duration after password is updated.

    UserPasswordValidationPolicyResponse

    User level password validation policy.

    AllowedFailedAttempts int
    Number of failed login attempts allowed before user get locked.
    EnableFailedAttemptsCheck bool
    If true, failed login attempts check will be enabled.
    EnablePasswordVerification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    PasswordExpirationDuration string
    Expiration duration after password is updated.
    Status Pulumi.GoogleNative.SQLAdmin.V1.Inputs.PasswordStatusResponse
    Read-only password status.
    AllowedFailedAttempts int
    Number of failed login attempts allowed before user get locked.
    EnableFailedAttemptsCheck bool
    If true, failed login attempts check will be enabled.
    EnablePasswordVerification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    PasswordExpirationDuration string
    Expiration duration after password is updated.
    Status PasswordStatusResponse
    Read-only password status.
    allowed_failed_attempts number
    Number of failed login attempts allowed before user get locked.
    enable_failed_attempts_check bool
    If true, failed login attempts check will be enabled.
    enable_password_verification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    password_expiration_duration string
    Expiration duration after password is updated.
    status object
    Read-only password status.
    allowedFailedAttempts Integer
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck Boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification Boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration String
    Expiration duration after password is updated.
    status PasswordStatusResponse
    Read-only password status.
    allowedFailedAttempts number
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration string
    Expiration duration after password is updated.
    status PasswordStatusResponse
    Read-only password status.
    allowed_failed_attempts int
    Number of failed login attempts allowed before user get locked.
    enable_failed_attempts_check bool
    If true, failed login attempts check will be enabled.
    enable_password_verification bool
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    password_expiration_duration str
    Expiration duration after password is updated.
    status PasswordStatusResponse
    Read-only password status.
    allowedFailedAttempts Number
    Number of failed login attempts allowed before user get locked.
    enableFailedAttemptsCheck Boolean
    If true, failed login attempts check will be enabled.
    enablePasswordVerification Boolean
    If true, the user must specify the current password before changing the password. This flag is supported only for MySQL.
    passwordExpirationDuration String
    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.

    NameValueDescription
    BuiltInBUILT_INThe database's built-in user type.
    CloudIamUserCLOUD_IAM_USERCloud IAM user.
    CloudIamServiceAccountCLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CloudIamGroupCLOUD_IAM_GROUPCloud IAM Group non-login user.
    CloudIamGroupUserCLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CloudIamGroupServiceAccountCLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    NameValueDescription
    UserTypeBuiltInBUILT_INThe database's built-in user type.
    UserTypeCloudIamUserCLOUD_IAM_USERCloud IAM user.
    UserTypeCloudIamServiceAccountCLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    UserTypeCloudIamGroupCLOUD_IAM_GROUPCloud IAM Group non-login user.
    UserTypeCloudIamGroupUserCLOUD_IAM_GROUP_USERCloud IAM Group login user.
    UserTypeCloudIamGroupServiceAccountCLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    ValueDescription
    BUILT_INThe database's built-in user type.
    CLOUD_IAM_USERCloud IAM user.
    CLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CLOUD_IAM_GROUPCloud IAM Group non-login user.
    CLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    NameValueDescription
    BuiltInBUILT_INThe database's built-in user type.
    CloudIamUserCLOUD_IAM_USERCloud IAM user.
    CloudIamServiceAccountCLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CloudIamGroupCLOUD_IAM_GROUPCloud IAM Group non-login user.
    CloudIamGroupUserCLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CloudIamGroupServiceAccountCLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    NameValueDescription
    BuiltInBUILT_INThe database's built-in user type.
    CloudIamUserCLOUD_IAM_USERCloud IAM user.
    CloudIamServiceAccountCLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CloudIamGroupCLOUD_IAM_GROUPCloud IAM Group non-login user.
    CloudIamGroupUserCLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CloudIamGroupServiceAccountCLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    NameValueDescription
    BUILT_INBUILT_INThe database's built-in user type.
    CLOUD_IAM_USERCLOUD_IAM_USERCloud IAM user.
    CLOUD_IAM_SERVICE_ACCOUNTCLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CLOUD_IAM_GROUPCLOUD_IAM_GROUPCloud IAM Group non-login user.
    CLOUD_IAM_GROUP_USERCLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CLOUD_IAM_GROUP_SERVICE_ACCOUNTCLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.
    ValueDescription
    BUILT_INThe database's built-in user type.
    CLOUD_IAM_USERCloud IAM user.
    CLOUD_IAM_SERVICE_ACCOUNTCloud IAM service account.
    CLOUD_IAM_GROUPCloud IAM Group non-login user.
    CLOUD_IAM_GROUP_USERCloud IAM Group login user.
    CLOUD_IAM_GROUP_SERVICE_ACCOUNTCloud IAM Group login service account.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial