published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 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
previewFeaturesEnabledfield 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.
Data source used to get details of filtered backup policies. Filtering is aligned with the current possibilities for SHOW BACKUP POLICIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection backupPolicies.
Using getBackupPolicies
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 getBackupPolicies(args: GetBackupPoliciesArgs, opts?: InvokeOptions): Promise<GetBackupPoliciesResult>
function getBackupPoliciesOutput(args: GetBackupPoliciesOutputArgs, opts?: InvokeOutputOptions): Output<GetBackupPoliciesResult>def get_backup_policies(in_: Optional[GetBackupPoliciesIn] = None,
like: Optional[str] = None,
limit: Optional[GetBackupPoliciesLimit] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupPoliciesResult
def get_backup_policies_output(in_: pulumi.Input[Optional[GetBackupPoliciesInArgs]] = None,
like: pulumi.Input[Optional[str]] = None,
limit: pulumi.Input[Optional[GetBackupPoliciesLimitArgs]] = None,
starts_with: pulumi.Input[Optional[str]] = None,
with_describe: pulumi.Input[Optional[bool]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetBackupPoliciesResult]func GetBackupPolicies(ctx *Context, args *GetBackupPoliciesArgs, opts ...InvokeOption) (*GetBackupPoliciesResult, error)
func GetBackupPoliciesOutput(ctx *Context, args *GetBackupPoliciesOutputArgs, opts ...InvokeOption) GetBackupPoliciesResultOutput> Note: This function is named GetBackupPolicies in the Go SDK.
public static class GetBackupPolicies
{
public static Task<GetBackupPoliciesResult> InvokeAsync(GetBackupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetBackupPoliciesResult> Invoke(GetBackupPoliciesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetBackupPoliciesResult> Invoke(GetBackupPoliciesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetBackupPoliciesResult> getBackupPolicies(GetBackupPoliciesArgs args, InvokeOptions options)
public static Output<GetBackupPoliciesResult> getBackupPolicies(GetBackupPoliciesArgs args, InvokeOptions options)
public static Output<GetBackupPoliciesResult> getBackupPolicies(GetBackupPoliciesArgs args, InvokeOutputOptions options)
fn::invoke:
function: snowflake:index/getBackupPolicies:getBackupPolicies
arguments:
# arguments dictionarydata "snowflake_get_backup_policies" "name" {
# arguments
}The following arguments are supported:
- In
Get
Backup 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
Backup 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. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- In
Get
Backup 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
Backup 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. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP 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. - starts_
with string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Backup 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
Backup 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. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in
Get
Backup 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
Backup 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. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- in_
Get
Backup 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
Backup 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. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP 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. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
getBackupPolicies Result
The following output properties are available:
- Backup
Policies List<GetBackup Policies Backup Policy> - Holds the aggregated output of all backup policy details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Backup 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
Backup 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. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- Backup
Policies []GetBackup Policies Backup Policy - Holds the aggregated output of all backup policy details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Backup 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
Backup 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. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- backup_
policies list(object) - Holds the aggregated output of all backup policy details queries.
- id string
- The provider-assigned unique ID for this managed resource.
- 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. - starts_
with string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- backup
Policies List<GetBackup Policies Backup Policy> - Holds the aggregated output of all backup policy details queries.
- id String
- The provider-assigned unique ID for this managed resource.
- in
Get
Backup 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
Backup 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. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- backup
Policies GetBackup Policies Backup Policy[] - Holds the aggregated output of all backup policy details queries.
- id string
- The provider-assigned unique ID for this managed resource.
- in
Get
Backup 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
Backup 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. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- backup_
policies Sequence[GetBackup Policies Backup Policy] - Holds the aggregated output of all backup policy details queries.
- id str
- The provider-assigned unique ID for this managed resource.
- in_
Get
Backup 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
Backup 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. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
- backup
Policies List<Property Map> - Holds the aggregated output of all backup policy details queries.
- id String
- The provider-assigned unique ID for this managed resource.
- 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. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC BACKUP POLICY for each backup policy returned by SHOW BACKUP POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
Supporting Types
GetBackupPoliciesBackupPolicy
- Describe
Outputs List<GetBackup Policies Backup Policy Describe Output> - Holds the output of DESCRIBE BACKUP POLICY.
- Show
Outputs List<GetBackup Policies Backup Policy Show Output> - Holds the output of SHOW BACKUP POLICIES.
- Describe
Outputs []GetBackup Policies Backup Policy Describe Output - Holds the output of DESCRIBE BACKUP POLICY.
- Show
Outputs []GetBackup Policies Backup Policy Show Output - Holds the output of SHOW BACKUP POLICIES.
- describe_
outputs list(object) - Holds the output of DESCRIBE BACKUP POLICY.
- show_
outputs list(object) - Holds the output of SHOW BACKUP POLICIES.
- describe
Outputs List<GetBackup Policies Backup Policy Describe Output> - Holds the output of DESCRIBE BACKUP POLICY.
- show
Outputs List<GetBackup Policies Backup Policy Show Output> - Holds the output of SHOW BACKUP POLICIES.
- describe
Outputs GetBackup Policies Backup Policy Describe Output[] - Holds the output of DESCRIBE BACKUP POLICY.
- show
Outputs GetBackup Policies Backup Policy Show Output[] - Holds the output of SHOW BACKUP POLICIES.
- describe_
outputs Sequence[GetBackup Policies Backup Policy Describe Output] - Holds the output of DESCRIBE BACKUP POLICY.
- show_
outputs Sequence[GetBackup Policies Backup Policy Show Output] - Holds the output of SHOW BACKUP POLICIES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE BACKUP POLICY.
- show
Outputs List<Property Map> - Holds the output of SHOW BACKUP POLICIES.
GetBackupPoliciesBackupPolicyDescribeOutput
- Comment string
- Created
On string - Database
Name string - Expire
After intDays - Has
Retention boolLock - Name string
- Owner string
- Owner
Role stringType - Schedule string
- Schema
Name string
- Comment string
- Created
On string - Database
Name string - Expire
After intDays - Has
Retention boolLock - Name string
- Owner string
- Owner
Role stringType - Schedule string
- Schema
Name string
- comment string
- created_
on string - database_
name string - expire_
after_ numberdays - has_
retention_ boollock - name string
- owner string
- owner_
role_ stringtype - schedule string
- schema_
name string
- comment String
- created
On String - database
Name String - expire
After IntegerDays - has
Retention BooleanLock - name String
- owner String
- owner
Role StringType - schedule String
- schema
Name String
- comment string
- created
On string - database
Name string - expire
After numberDays - has
Retention booleanLock - name string
- owner string
- owner
Role stringType - schedule string
- schema
Name string
- comment str
- created_
on str - database_
name str - expire_
after_ intdays - has_
retention_ boollock - name str
- owner str
- owner_
role_ strtype - schedule str
- schema_
name str
- comment String
- created
On String - database
Name String - expire
After NumberDays - has
Retention BooleanLock - name String
- owner String
- owner
Role StringType - schedule String
- schema
Name String
GetBackupPoliciesBackupPolicyShowOutput
- Comment string
- Created
On string - Database
Name string - Expire
After intDays - Has
Retention boolLock - Name string
- Owner string
- Owner
Role stringType - Schedule string
- Schema
Name string
- Comment string
- Created
On string - Database
Name string - Expire
After intDays - Has
Retention boolLock - Name string
- Owner string
- Owner
Role stringType - Schedule string
- Schema
Name string
- comment string
- created_
on string - database_
name string - expire_
after_ numberdays - has_
retention_ boollock - name string
- owner string
- owner_
role_ stringtype - schedule string
- schema_
name string
- comment String
- created
On String - database
Name String - expire
After IntegerDays - has
Retention BooleanLock - name String
- owner String
- owner
Role StringType - schedule String
- schema
Name String
- comment string
- created
On string - database
Name string - expire
After numberDays - has
Retention booleanLock - name string
- owner string
- owner
Role stringType - schedule string
- schema
Name string
- comment str
- created_
on str - database_
name str - expire_
after_ intdays - has_
retention_ boollock - name str
- owner str
- owner_
role_ strtype - schedule str
- schema_
name str
- comment String
- created
On String - database
Name String - expire
After NumberDays - has
Retention BooleanLock - name String
- owner String
- owner
Role StringType - schedule String
- schema
Name String
GetBackupPoliciesIn
GetBackupPoliciesLimit
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
published on Friday, Nov 6, 2026 by Pulumi