1. Packages
  2. Packages
  3. Snowflake Provider
  4. API Docs
  5. getStorageLifecyclePolicies
Viewing docs for Snowflake v2.18.0
published on Wednesday, Jul 8, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.18.0
published on Wednesday, Jul 8, 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.

    Data source used to get details of filtered storage lifecycle policies. Filtering is aligned with the current possibilities for SHOW STORAGE LIFECYCLE POLICIES query. The results of SHOW and DESCRIBE are encapsulated in one output collection storageLifecyclePolicies.

    Using getStorageLifecyclePolicies

    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 getStorageLifecyclePolicies(args: GetStorageLifecyclePoliciesArgs, opts?: InvokeOptions): Promise<GetStorageLifecyclePoliciesResult>
    function getStorageLifecyclePoliciesOutput(args: GetStorageLifecyclePoliciesOutputArgs, opts?: InvokeOptions): Output<GetStorageLifecyclePoliciesResult>
    def get_storage_lifecycle_policies(in_: Optional[GetStorageLifecyclePoliciesIn] = None,
                                       like: Optional[str] = None,
                                       with_describe: Optional[bool] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetStorageLifecyclePoliciesResult
    def get_storage_lifecycle_policies_output(in_: pulumi.Input[Optional[GetStorageLifecyclePoliciesInArgs]] = None,
                                       like: pulumi.Input[Optional[str]] = None,
                                       with_describe: pulumi.Input[Optional[bool]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetStorageLifecyclePoliciesResult]
    func GetStorageLifecyclePolicies(ctx *Context, args *GetStorageLifecyclePoliciesArgs, opts ...InvokeOption) (*GetStorageLifecyclePoliciesResult, error)
    func GetStorageLifecyclePoliciesOutput(ctx *Context, args *GetStorageLifecyclePoliciesOutputArgs, opts ...InvokeOption) GetStorageLifecyclePoliciesResultOutput

    > Note: This function is named GetStorageLifecyclePolicies in the Go SDK.

    public static class GetStorageLifecyclePolicies 
    {
        public static Task<GetStorageLifecyclePoliciesResult> InvokeAsync(GetStorageLifecyclePoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageLifecyclePoliciesResult> Invoke(GetStorageLifecyclePoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageLifecyclePoliciesResult> getStorageLifecyclePolicies(GetStorageLifecyclePoliciesArgs args, InvokeOptions options)
    public static Output<GetStorageLifecyclePoliciesResult> getStorageLifecyclePolicies(GetStorageLifecyclePoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: snowflake:index/getStorageLifecyclePolicies:getStorageLifecyclePolicies
      arguments:
        # arguments dictionary
    data "snowflake_getstoragelifecyclepolicies" "name" {
        # arguments
    }

    The following arguments are supported:

    In GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithDescribe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    In GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithDescribe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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 _).
    with_describe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withDescribe Boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withDescribe boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in_ GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    with_describe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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 _).
    withDescribe Boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.

    getStorageLifecyclePolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    StorageLifecyclePolicies List<GetStorageLifecyclePoliciesStorageLifecyclePolicy>
    Holds the aggregated output of all storage lifecycle policy details queries.
    In GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithDescribe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    StorageLifecyclePolicies []GetStorageLifecyclePoliciesStorageLifecyclePolicy
    Holds the aggregated output of all storage lifecycle policy details queries.
    In GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    WithDescribe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    storage_lifecycle_policies list(object)
    Holds the aggregated output of all storage lifecycle 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 _).
    with_describe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    storageLifecyclePolicies List<GetStorageLifecyclePoliciesStorageLifecyclePolicy>
    Holds the aggregated output of all storage lifecycle policy details queries.
    in GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withDescribe Boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    storageLifecyclePolicies GetStorageLifecyclePoliciesStorageLifecyclePolicy[]
    Holds the aggregated output of all storage lifecycle policy details queries.
    in GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    withDescribe boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    storage_lifecycle_policies Sequence[GetStorageLifecyclePoliciesStorageLifecyclePolicy]
    Holds the aggregated output of all storage lifecycle policy details queries.
    in_ GetStorageLifecyclePoliciesIn
    IN clause to filter the list of objects
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    with_describe bool
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE 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.
    storageLifecyclePolicies List<Property Map>
    Holds the aggregated output of all storage lifecycle 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 _).
    withDescribe Boolean
    (Default: true) Runs DESC STORAGE LIFECYCLE POLICY for each storage lifecycle policy returned by SHOW STORAGE LIFECYCLE POLICIES. The output of describe is saved to the describeOutput field. By default this value is set to true.

    Supporting Types

    GetStorageLifecyclePoliciesIn

    Account bool
    Returns records for the entire account.
    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.
    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.
    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.
    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.
    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.
    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.
    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.

    GetStorageLifecyclePoliciesStorageLifecyclePolicy

    DescribeOutputs List<GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput>
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    ShowOutputs List<GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput>
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
    DescribeOutputs []GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    ShowOutputs []GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
    describe_outputs list(object)
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    show_outputs list(object)
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
    describeOutputs List<GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput>
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    showOutputs List<GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput>
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
    describeOutputs GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput[]
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    showOutputs GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput[]
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.
    describeOutputs List<Property Map>
    Holds the output of DESCRIBE STORAGE LIFECYCLE POLICY.
    showOutputs List<Property Map>
    Holds the output of SHOW STORAGE LIFECYCLE POLICIES.

    GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutput

    GetStorageLifecyclePoliciesStorageLifecyclePolicyDescribeOutputSignature

    Name string
    Type string
    Name string
    Type string
    name string
    type string
    name String
    type String
    name string
    type string
    name str
    type str
    name String
    type String

    GetStorageLifecyclePoliciesStorageLifecyclePolicyShowOutput

    Comment string
    CreatedOn string
    DatabaseName string
    Kind string
    Name string
    Options string
    Owner string
    OwnerRoleType string
    SchemaName string
    Comment string
    CreatedOn string
    DatabaseName string
    Kind string
    Name string
    Options string
    Owner string
    OwnerRoleType string
    SchemaName string
    comment string
    created_on string
    database_name string
    kind string
    name string
    options string
    owner string
    owner_role_type string
    schema_name string
    comment String
    createdOn String
    databaseName String
    kind String
    name String
    options String
    owner String
    ownerRoleType String
    schemaName String
    comment string
    createdOn string
    databaseName string
    kind string
    name string
    options string
    owner string
    ownerRoleType string
    schemaName string
    comment String
    createdOn String
    databaseName String
    kind String
    name String
    options String
    owner String
    ownerRoleType String
    schemaName String

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.18.0
    published on Wednesday, Jul 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial