snowflake.getViews
Explore with Pulumi AI
!> V1 release candidate This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for SHOW VIEWS query (only like
is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection views
.
Using getViews
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 getViews(args: GetViewsArgs, opts?: InvokeOptions): Promise<GetViewsResult>
function getViewsOutput(args: GetViewsOutputArgs, opts?: InvokeOptions): Output<GetViewsResult>
def get_views(in_: Optional[GetViewsIn] = None,
like: Optional[str] = None,
limit: Optional[GetViewsLimit] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetViewsResult
def get_views_output(in_: Optional[pulumi.Input[GetViewsInArgs]] = None,
like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetViewsLimitArgs]] = None,
starts_with: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetViewsResult]
func GetViews(ctx *Context, args *GetViewsArgs, opts ...InvokeOption) (*GetViewsResult, error)
func GetViewsOutput(ctx *Context, args *GetViewsOutputArgs, opts ...InvokeOption) GetViewsResultOutput
> Note: This function is named GetViews
in the Go SDK.
public static class GetViews
{
public static Task<GetViewsResult> InvokeAsync(GetViewsArgs args, InvokeOptions? opts = null)
public static Output<GetViewsResult> Invoke(GetViewsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetViewsResult> getViews(GetViewsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getViews:getViews
arguments:
# arguments dictionary
The following arguments are supported:
- In
Get
Views In - IN clause to filter the list of views
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- In
Get
Views In - IN clause to filter the list of views
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Views In - IN clause to filter the list of views
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Views In - IN clause to filter the list of views
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- in_
Get
Views In - IN clause to filter the list of views
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- in Property Map
- IN clause to filter the list of views
- 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.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
getViews Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Views
List<Get
Views View> - Holds the aggregated output of all views details queries.
- In
Get
Views In - IN clause to filter the list of views
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Views
[]Get
Views View - Holds the aggregated output of all views details queries.
- In
Get
Views In - IN clause to filter the list of views
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- views
List<Get
Views View> - Holds the aggregated output of all views details queries.
- in
Get
Views In - IN clause to filter the list of views
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- views
Get
Views View[] - Holds the aggregated output of all views details queries.
- in
Get
Views In - IN clause to filter the list of views
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- views
Sequence[Get
Views View] - Holds the aggregated output of all views details queries.
- in_
Get
Views In - IN clause to filter the list of views
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Views Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- views List<Property Map>
- Holds the aggregated output of all views details queries.
- in Property Map
- IN clause to filter the list of views
- 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.from
is set, then the limit wll 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 withstarts_with
orlike
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetViewsIn
GetViewsLimit
GetViewsView
- Describe
Outputs List<GetViews View Describe Output> - Holds the output of DESCRIBE VIEW.
- Show
Outputs List<GetViews View Show Output> - Holds the output of SHOW VIEWS.
- Describe
Outputs []GetViews View Describe Output - Holds the output of DESCRIBE VIEW.
- Show
Outputs []GetViews View Show Output - Holds the output of SHOW VIEWS.
- describe
Outputs List<GetViews View Describe Output> - Holds the output of DESCRIBE VIEW.
- show
Outputs List<GetViews View Show Output> - Holds the output of SHOW VIEWS.
- describe
Outputs GetViews View Describe Output[] - Holds the output of DESCRIBE VIEW.
- show
Outputs GetViews View Show Output[] - Holds the output of SHOW VIEWS.
- describe_
outputs Sequence[GetViews View Describe Output] - Holds the output of DESCRIBE VIEW.
- show_
outputs Sequence[GetViews View Show Output] - Holds the output of SHOW VIEWS.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE VIEW.
- show
Outputs List<Property Map> - Holds the output of SHOW VIEWS.
GetViewsViewDescribeOutput
- Check string
- Comment string
- Default string
- Expression string
- Is
Nullable bool - Is
Primary bool - Is
Unique bool - Kind string
- Name string
- Policy
Name string - Privacy
Domain string - Type string
- Check string
- Comment string
- Default string
- Expression string
- Is
Nullable bool - Is
Primary bool - Is
Unique bool - Kind string
- Name string
- Policy
Name string - Privacy
Domain string - Type string
- check String
- comment String
- default_ String
- expression String
- is
Nullable Boolean - is
Primary Boolean - is
Unique Boolean - kind String
- name String
- policy
Name String - privacy
Domain String - type String
- check string
- comment string
- default string
- expression string
- is
Nullable boolean - is
Primary boolean - is
Unique boolean - kind string
- name string
- policy
Name string - privacy
Domain string - type string
- check str
- comment str
- default str
- expression str
- is_
nullable bool - is_
primary bool - is_
unique bool - kind str
- name str
- policy_
name str - privacy_
domain str - type str
- check String
- comment String
- default String
- expression String
- is
Nullable Boolean - is
Primary Boolean - is
Unique Boolean - kind String
- name String
- policy
Name String - privacy
Domain String - type String
GetViewsViewShowOutput
- Change
Tracking string - Comment string
- Created
On string - Database
Name string - Is
Materialized bool - Is
Secure bool - Kind string
- Name string
- Owner string
- Owner
Role stringType - Reserved string
- Schema
Name string - Text string
- Change
Tracking string - Comment string
- Created
On string - Database
Name string - Is
Materialized bool - Is
Secure bool - Kind string
- Name string
- Owner string
- Owner
Role stringType - Reserved string
- Schema
Name string - Text string
- change
Tracking String - comment String
- created
On String - database
Name String - is
Materialized Boolean - is
Secure Boolean - kind String
- name String
- owner String
- owner
Role StringType - reserved String
- schema
Name String - text String
- change
Tracking string - comment string
- created
On string - database
Name string - is
Materialized boolean - is
Secure boolean - kind string
- name string
- owner string
- owner
Role stringType - reserved string
- schema
Name string - text string
- change_
tracking str - comment str
- created_
on str - database_
name str - is_
materialized bool - is_
secure bool - kind str
- name str
- owner str
- owner_
role_ strtype - reserved str
- schema_
name str - text str
- change
Tracking String - comment String
- created
On String - database
Name String - is
Materialized Boolean - is
Secure Boolean - kind String
- name String
- owner String
- owner
Role StringType - reserved String
- schema
Name String - text String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.