Google Cloud Native v0.30.0, Apr 14 23
Google Cloud Native v0.30.0, Apr 14 23
google-native.sqladmin/v1.User
Explore with Pulumi AI
Creates a new user in a Cloud SQL instance.
Create User Resource
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
dual_password_type: Optional[UserDualPasswordType] = None,
etag: Optional[str] = None,
host: Optional[str] = None,
instance: 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)
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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.- 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.
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.- 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. V1. Inputs. User Password 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
update
because it is already specified on the URL.- Sqlserver
User Pulumi.Details Google Native. SQLAdmin. V1. Inputs. Sql Server User Details Args - 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
update
because 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.
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.- 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 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
update
because 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
update
because 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.
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.- 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 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
update
because 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
update
because 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.
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.- 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 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
update
because 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 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_ 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.
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.- 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 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
update
because 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
update
because 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.
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.- 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 "BUILT_IN" | "CLOUD_IAM_USER" | "CLOUD_IAM_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 str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Supporting Types
PasswordStatusResponse
- 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
- 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 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
- 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 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 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.
- User
Dual Password Type Dual Password Type Unspecified - DUAL_PASSWORD_TYPE_UNSPECIFIED
The default value.
- User
Dual Password Type No Modify Dual Password - NO_MODIFY_DUAL_PASSWORD
Do not update the user's dual password status.
- User
Dual Password Type No Dual Password - NO_DUAL_PASSWORD
No dual password usable for connecting using this user.
- User
Dual Password Type Dual Password - DUAL_PASSWORD
Dual password usable for connecting using this user.
- 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.
- 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.
- 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.
- "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.
UserPasswordValidationPolicy
- 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 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
- 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 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
- 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.
- User
Type Built In - BUILT_IN
The database's built-in user type.
- User
Type Cloud Iam User - CLOUD_IAM_USER
Cloud IAM user.
- User
Type Cloud Iam Service Account - CLOUD_IAM_SERVICE_ACCOUNT
Cloud IAM service account.
- 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.
- 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.
- 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.
- "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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0