1. Packages
  2. Snowflake
  3. API Docs
  4. getViews
Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi

snowflake.getViews

Explore with Pulumi AI

snowflake logo
Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi

    !> 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 GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    WithDescribe 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 GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    WithDescribe 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 GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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 GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    startsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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_ GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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<GetViewsView>
    Holds the aggregated output of all views details queries.
    In GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    WithDescribe 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 []GetViewsView
    Holds the aggregated output of all views details queries.
    In GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    WithDescribe 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<GetViewsView>
    Holds the aggregated output of all views details queries.
    in GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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 GetViewsView[]
    Holds the aggregated output of all views details queries.
    in GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    startsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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[GetViewsView]
    Holds the aggregated output of all views details queries.
    in_ GetViewsIn
    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 GetViewsLimit
    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 with starts_with or like.
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    withDescribe 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

    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.

    GetViewsLimit

    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Integer
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows number
    The maximum number of rows to return.
    from string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows int
    The maximum number of rows to return.
    from_ str
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Number
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.

    GetViewsView

    DescribeOutputs List<GetViewsViewDescribeOutput>
    Holds the output of DESCRIBE VIEW.
    ShowOutputs List<GetViewsViewShowOutput>
    Holds the output of SHOW VIEWS.
    DescribeOutputs []GetViewsViewDescribeOutput
    Holds the output of DESCRIBE VIEW.
    ShowOutputs []GetViewsViewShowOutput
    Holds the output of SHOW VIEWS.
    describeOutputs List<GetViewsViewDescribeOutput>
    Holds the output of DESCRIBE VIEW.
    showOutputs List<GetViewsViewShowOutput>
    Holds the output of SHOW VIEWS.
    describeOutputs GetViewsViewDescribeOutput[]
    Holds the output of DESCRIBE VIEW.
    showOutputs GetViewsViewShowOutput[]
    Holds the output of SHOW VIEWS.
    describe_outputs Sequence[GetViewsViewDescribeOutput]
    Holds the output of DESCRIBE VIEW.
    show_outputs Sequence[GetViewsViewShowOutput]
    Holds the output of SHOW VIEWS.
    describeOutputs List<Property Map>
    Holds the output of DESCRIBE VIEW.
    showOutputs List<Property Map>
    Holds the output of SHOW VIEWS.

    GetViewsViewDescribeOutput

    Check string
    Comment string
    Default string
    Expression string
    IsNullable bool
    IsPrimary bool
    IsUnique bool
    Kind string
    Name string
    PolicyName string
    PrivacyDomain string
    Type string
    Check string
    Comment string
    Default string
    Expression string
    IsNullable bool
    IsPrimary bool
    IsUnique bool
    Kind string
    Name string
    PolicyName string
    PrivacyDomain string
    Type string
    check String
    comment String
    default_ String
    expression String
    isNullable Boolean
    isPrimary Boolean
    isUnique Boolean
    kind String
    name String
    policyName String
    privacyDomain String
    type String
    check string
    comment string
    default string
    expression string
    isNullable boolean
    isPrimary boolean
    isUnique boolean
    kind string
    name string
    policyName string
    privacyDomain string
    type string
    check String
    comment String
    default String
    expression String
    isNullable Boolean
    isPrimary Boolean
    isUnique Boolean
    kind String
    name String
    policyName String
    privacyDomain String
    type String

    GetViewsViewShowOutput

    ChangeTracking string
    Comment string
    CreatedOn string
    DatabaseName string
    IsMaterialized bool
    IsSecure bool
    Kind string
    Name string
    Owner string
    OwnerRoleType string
    Reserved string
    SchemaName string
    Text string
    ChangeTracking string
    Comment string
    CreatedOn string
    DatabaseName string
    IsMaterialized bool
    IsSecure bool
    Kind string
    Name string
    Owner string
    OwnerRoleType string
    Reserved string
    SchemaName string
    Text string
    changeTracking String
    comment String
    createdOn String
    databaseName String
    isMaterialized Boolean
    isSecure Boolean
    kind String
    name String
    owner String
    ownerRoleType String
    reserved String
    schemaName String
    text String
    changeTracking string
    comment string
    createdOn string
    databaseName string
    isMaterialized boolean
    isSecure boolean
    kind string
    name string
    owner string
    ownerRoleType string
    reserved string
    schemaName string
    text string
    changeTracking String
    comment String
    createdOn String
    databaseName String
    isMaterialized Boolean
    isSecure Boolean
    kind String
    name String
    owner String
    ownerRoleType String
    reserved String
    schemaName 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.
    snowflake logo
    Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi