Class PasswordValidationPolicy
Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1.Data
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class PasswordValidationPolicy : IDirectResponseSchema
Properties
Complexity
The complexity of the password.
Declaration
[JsonProperty("complexity")]
public virtual string Complexity { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisallowCompromisedCredentials
This field is deprecated and will be removed in a future version of the API.
Declaration
[JsonProperty("disallowCompromisedCredentials")]
public virtual bool? DisallowCompromisedCredentials { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
DisallowUsernameSubstring
Disallow username as a part of the password.
Declaration
[JsonProperty("disallowUsernameSubstring")]
public virtual bool? DisallowUsernameSubstring { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EnablePasswordPolicy
Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
Declaration
[JsonProperty("enablePasswordPolicy")]
public virtual bool? EnablePasswordPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
MinLength
Minimum number of characters allowed.
Declaration
[JsonProperty("minLength")]
public virtual int? MinLength { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PasswordChangeInterval
Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
Declaration
[JsonProperty("passwordChangeInterval")]
public virtual object PasswordChangeInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
ReuseInterval
Number of previous passwords that cannot be reused.
Declaration
[JsonProperty("reuseInterval")]
public virtual int? ReuseInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |