published on Saturday, May 9, 2026 by Pulumi
published on Saturday, May 9, 2026 by Pulumi
!> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to previewFeaturesEnabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
!> Warning When using on.account or on.user filtering option without having any user-defined authentication policy, the data source skips the output of the Snowflake’s BUILT-IN authentication policy.
Data source used to get details of filtered password policies. Filtering is aligned with the current possibilities for SHOW PASSWORD POLICIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection passwordPolicies.
Using getPasswordPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPasswordPolicies(args: GetPasswordPoliciesArgs, opts?: InvokeOptions): Promise<GetPasswordPoliciesResult>
function getPasswordPoliciesOutput(args: GetPasswordPoliciesOutputArgs, opts?: InvokeOptions): Output<GetPasswordPoliciesResult>def get_password_policies(in_: Optional[GetPasswordPoliciesIn] = None,
like: Optional[str] = None,
limit: Optional[GetPasswordPoliciesLimit] = None,
on: Optional[GetPasswordPoliciesOn] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetPasswordPoliciesResult
def get_password_policies_output(in_: pulumi.Input[Optional[GetPasswordPoliciesInArgs]] = None,
like: pulumi.Input[Optional[str]] = None,
limit: pulumi.Input[Optional[GetPasswordPoliciesLimitArgs]] = None,
on: pulumi.Input[Optional[GetPasswordPoliciesOnArgs]] = None,
starts_with: pulumi.Input[Optional[str]] = None,
with_describe: pulumi.Input[Optional[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPasswordPoliciesResult]func GetPasswordPolicies(ctx *Context, args *GetPasswordPoliciesArgs, opts ...InvokeOption) (*GetPasswordPoliciesResult, error)
func GetPasswordPoliciesOutput(ctx *Context, args *GetPasswordPoliciesOutputArgs, opts ...InvokeOption) GetPasswordPoliciesResultOutput> Note: This function is named GetPasswordPolicies in the Go SDK.
public static class GetPasswordPolicies
{
public static Task<GetPasswordPoliciesResult> InvokeAsync(GetPasswordPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetPasswordPoliciesResult> Invoke(GetPasswordPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPasswordPoliciesResult> getPasswordPolicies(GetPasswordPoliciesArgs args, InvokeOptions options)
public static Output<GetPasswordPoliciesResult> getPasswordPolicies(GetPasswordPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getPasswordPolicies:getPasswordPolicies
arguments:
# arguments dictionarydata "snowflake_getpasswordpolicies" "name" {
# arguments
}The following arguments are supported:
- In
Get
Password Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - On
Get
Password Policies On - Lists the policies that are effective on the specified object.
- Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- In
Get
Password Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - On
Get
Password Policies On - Lists the policies that are effective on the specified object.
- Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in object
- IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit object
- Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on object
- Lists the policies that are effective on the specified object.
- starts_
with string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Password Policies In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Password Policies In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in_
Get
Password Policies In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit Property Map
- Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on Property Map
- Lists the policies that are effective on the specified object.
- starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
getPasswordPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Password
Policies List<GetPassword Policies Password Policy> - Holds the aggregated output of all password policy details queries.
- In
Get
Password Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - On
Get
Password Policies On - Lists the policies that are effective on the specified object.
- Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Password
Policies []GetPassword Policies Password Policy - Holds the aggregated output of all password policy details queries.
- In
Get
Password Policies In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - On
Get
Password Policies On - Lists the policies that are effective on the specified object.
- Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- password_
policies list(object) - Holds the aggregated output of all password policy details queries.
- in object
- IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit object
- Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on object
- Lists the policies that are effective on the specified object.
- starts_
with string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- password
Policies List<GetPassword Policies Password Policy> - Holds the aggregated output of all password policy details queries.
- in
Get
Password Policies In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- password
Policies GetPassword Policies Password Policy[] - Holds the aggregated output of all password policy details queries.
- in
Get
Password Policies In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- password_
policies Sequence[GetPassword Policies Password Policy] - Holds the aggregated output of all password policy details queries.
- in_
Get
Password Policies In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Password Policies Limit - Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on
Get
Password Policies On - Lists the policies that are effective on the specified object.
- starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- password
Policies List<Property Map> - Holds the aggregated output of all password policy details queries.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit Property Map
- Limits the number of rows returned. If the
limit.fromis set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstartsWithorlike. - on Property Map
- Lists the policies that are effective on the specified object.
- starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC PASSWORD POLICY for each password policy returned by SHOW PASSWORD POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
Supporting Types
GetPasswordPoliciesIn
- Account bool
- Returns records for the entire account.
- Application string
- Returns records for the specified application.
- Application
Package string - Returns records for the specified application package.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- Account bool
- Returns records for the entire account.
- Application string
- Returns records for the specified application.
- Application
Package string - Returns records for the specified application package.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account bool
- Returns records for the entire account.
- application string
- Returns records for the specified application.
- application_
package string - Returns records for the specified application package.
- database string
- Returns records for the current database in use or for a specified database.
- schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- application String
- Returns records for the specified application.
- application
Package String - Returns records for the specified application package.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account boolean
- Returns records for the entire account.
- application string
- Returns records for the specified application.
- application
Package string - Returns records for the specified application package.
- database string
- Returns records for the current database in use or for a specified database.
- schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account bool
- Returns records for the entire account.
- application str
- Returns records for the specified application.
- application_
package str - Returns records for the specified application package.
- database str
- Returns records for the current database in use or for a specified database.
- schema str
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- application String
- Returns records for the specified application.
- application
Package String - Returns records for the specified application package.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
GetPasswordPoliciesLimit
GetPasswordPoliciesOn
GetPasswordPoliciesPasswordPolicy
- Describe
Outputs List<GetPassword Policies Password Policy Describe Output> - Holds the output of DESCRIBE PASSWORD POLICY.
- Show
Outputs List<GetPassword Policies Password Policy Show Output> - Holds the output of SHOW PASSWORD POLICIES.
- Describe
Outputs []GetPassword Policies Password Policy Describe Output - Holds the output of DESCRIBE PASSWORD POLICY.
- Show
Outputs []GetPassword Policies Password Policy Show Output - Holds the output of SHOW PASSWORD POLICIES.
- describe_
outputs list(object) - Holds the output of DESCRIBE PASSWORD POLICY.
- show_
outputs list(object) - Holds the output of SHOW PASSWORD POLICIES.
- describe
Outputs List<GetPassword Policies Password Policy Describe Output> - Holds the output of DESCRIBE PASSWORD POLICY.
- show
Outputs List<GetPassword Policies Password Policy Show Output> - Holds the output of SHOW PASSWORD POLICIES.
- describe
Outputs GetPassword Policies Password Policy Describe Output[] - Holds the output of DESCRIBE PASSWORD POLICY.
- show
Outputs GetPassword Policies Password Policy Show Output[] - Holds the output of SHOW PASSWORD POLICIES.
- describe_
outputs Sequence[GetPassword Policies Password Policy Describe Output] - Holds the output of DESCRIBE PASSWORD POLICY.
- show_
outputs Sequence[GetPassword Policies Password Policy Show Output] - Holds the output of SHOW PASSWORD POLICIES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE PASSWORD POLICY.
- show
Outputs List<Property Map> - Holds the output of SHOW PASSWORD POLICIES.
GetPasswordPoliciesPasswordPolicyDescribeOutput
- Comment string
- Name string
- Owner string
- Password
History int - Password
Lockout intTime Mins - Password
Max intAge Days - Password
Max intLength - Password
Max intRetries - Password
Min intAge Days - Password
Min intLength - Password
Min intLower Case Chars - Password
Min intNumeric Chars - Password
Min intSpecial Chars - Password
Min intUpper Case Chars
- Comment string
- Name string
- Owner string
- Password
History int - Password
Lockout intTime Mins - Password
Max intAge Days - Password
Max intLength - Password
Max intRetries - Password
Min intAge Days - Password
Min intLength - Password
Min intLower Case Chars - Password
Min intNumeric Chars - Password
Min intSpecial Chars - Password
Min intUpper Case Chars
- comment string
- name string
- owner string
- password_
history number - password_
lockout_ numbertime_ mins - password_
max_ numberage_ days - password_
max_ numberlength - password_
max_ numberretries - password_
min_ numberage_ days - password_
min_ numberlength - password_
min_ numberlower_ case_ chars - password_
min_ numbernumeric_ chars - password_
min_ numberspecial_ chars - password_
min_ numberupper_ case_ chars
- comment String
- name String
- owner String
- password
History Integer - password
Lockout IntegerTime Mins - password
Max IntegerAge Days - password
Max IntegerLength - password
Max IntegerRetries - password
Min IntegerAge Days - password
Min IntegerLength - password
Min IntegerLower Case Chars - password
Min IntegerNumeric Chars - password
Min IntegerSpecial Chars - password
Min IntegerUpper Case Chars
- comment string
- name string
- owner string
- password
History number - password
Lockout numberTime Mins - password
Max numberAge Days - password
Max numberLength - password
Max numberRetries - password
Min numberAge Days - password
Min numberLength - password
Min numberLower Case Chars - password
Min numberNumeric Chars - password
Min numberSpecial Chars - password
Min numberUpper Case Chars
- comment str
- name str
- owner str
- password_
history int - password_
lockout_ inttime_ mins - password_
max_ intage_ days - password_
max_ intlength - password_
max_ intretries - password_
min_ intage_ days - password_
min_ intlength - password_
min_ intlower_ case_ chars - password_
min_ intnumeric_ chars - password_
min_ intspecial_ chars - password_
min_ intupper_ case_ chars
- comment String
- name String
- owner String
- password
History Number - password
Lockout NumberTime Mins - password
Max NumberAge Days - password
Max NumberLength - password
Max NumberRetries - password
Min NumberAge Days - password
Min NumberLength - password
Min NumberLower Case Chars - password
Min NumberNumeric Chars - password
Min NumberSpecial Chars - password
Min NumberUpper Case Chars
GetPasswordPoliciesPasswordPolicyShowOutput
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- Comment string
- Created
On string - Database
Name string - Kind string
- Name string
- Options string
- Owner string
- Owner
Role stringType - Schema
Name string
- comment string
- created_
on string - database_
name string - kind string
- name string
- options string
- owner string
- owner_
role_ stringtype - schema_
name string
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
- comment string
- created
On string - database
Name string - kind string
- name string
- options string
- owner string
- owner
Role stringType - schema
Name string
- comment str
- created_
on str - database_
name str - kind str
- name str
- options str
- owner str
- owner_
role_ strtype - schema_
name str
- comment String
- created
On String - database
Name String - kind String
- name String
- options String
- owner String
- owner
Role StringType - schema
Name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
published on Saturday, May 9, 2026 by Pulumi
