!> 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 preview_features_enabled 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 notebooks. Filtering is aligned with the current possibilities for SHOW NOTEBOOKS query. The results of SHOW and DESCRIBE are encapsulated in one output collection notebooks.
Using getNotebooks
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 getNotebooks(args: GetNotebooksArgs, opts?: InvokeOptions): Promise<GetNotebooksResult>
function getNotebooksOutput(args: GetNotebooksOutputArgs, opts?: InvokeOptions): Output<GetNotebooksResult>def get_notebooks(like: Optional[str] = None,
limit: Optional[GetNotebooksLimit] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetNotebooksResult
def get_notebooks_output(like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetNotebooksLimitArgs]] = None,
starts_with: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNotebooksResult]func GetNotebooks(ctx *Context, args *GetNotebooksArgs, opts ...InvokeOption) (*GetNotebooksResult, error)
func GetNotebooksOutput(ctx *Context, args *GetNotebooksOutputArgs, opts ...InvokeOption) GetNotebooksResultOutput> Note: This function is named GetNotebooks in the Go SDK.
public static class GetNotebooks
{
public static Task<GetNotebooksResult> InvokeAsync(GetNotebooksArgs args, InvokeOptions? opts = null)
public static Output<GetNotebooksResult> Invoke(GetNotebooksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNotebooksResult> getNotebooks(GetNotebooksArgs args, InvokeOptions options)
public static Output<GetNotebooksResult> getNotebooks(GetNotebooksArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getNotebooks:getNotebooks
arguments:
# arguments dictionaryThe following arguments are supported:
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Notebooks 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 withstarts_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Notebooks 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 withstarts_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
- 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 withstarts_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
getNotebooks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Notebooks
List<Get
Notebooks Notebook> - Holds the aggregated output of all notebooks details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Notebooks 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 withstarts_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. 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.
- Notebooks
[]Get
Notebooks Notebook - Holds the aggregated output of all notebooks details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - Limit
Get
Notebooks 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 withstarts_withorlike. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. 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.
- notebooks
List<Get
Notebooks Notebook> - Holds the aggregated output of all notebooks details queries.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. 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.
- notebooks
Get
Notebooks Notebook[] - Holds the aggregated output of all notebooks details queries.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. 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.
- notebooks
Sequence[Get
Notebooks Notebook] - Holds the aggregated output of all notebooks details queries.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%and_). - limit
Get
Notebooks 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 withstarts_withorlike. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. 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.
- notebooks List<Property Map>
- Holds the aggregated output of all notebooks details queries.
- 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 withstarts_withorlike. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true) Runs DESC NOTEBOOK for each notebook returned by SHOW NOTEBOOKS. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetNotebooksLimit
GetNotebooksNotebook
- Describe
Outputs List<GetNotebooks Notebook Describe Output> - Holds the output of DESCRIBE NOTEBOOK
- Show
Outputs List<GetNotebooks Notebook Show Output> - Holds the output of SHOW NOTEBOOKS.
- Describe
Outputs []GetNotebooks Notebook Describe Output - Holds the output of DESCRIBE NOTEBOOK
- Show
Outputs []GetNotebooks Notebook Show Output - Holds the output of SHOW NOTEBOOKS.
- describe
Outputs List<GetNotebooks Notebook Describe Output> - Holds the output of DESCRIBE NOTEBOOK
- show
Outputs List<GetNotebooks Notebook Show Output> - Holds the output of SHOW NOTEBOOKS.
- describe
Outputs GetNotebooks Notebook Describe Output[] - Holds the output of DESCRIBE NOTEBOOK
- show
Outputs GetNotebooks Notebook Show Output[] - Holds the output of SHOW NOTEBOOKS.
- describe_
outputs Sequence[GetNotebooks Notebook Describe Output] - Holds the output of DESCRIBE NOTEBOOK
- show_
outputs Sequence[GetNotebooks Notebook Show Output] - Holds the output of SHOW NOTEBOOKS.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE NOTEBOOK
- show
Outputs List<Property Map> - Holds the output of SHOW NOTEBOOKS.
GetNotebooksNotebookDescribeOutput
- Code
Warehouse string - Comment string
- Compute
Pool string - Default
Packages string - Default
Version string - Default
Version stringAlias - Default
Version stringGit Commit Hash - Default
Version stringLocation Uri - Default
Version stringName - Default
Version stringSource Location Uri - External
Access stringIntegrations - External
Access stringSecrets - Idle
Auto intShutdown Time Seconds - Import
Urls string - Last
Version stringAlias - Last
Version stringGit Commit Hash - Last
Version stringLocation Uri - Last
Version stringName - Last
Version stringSource Location Uri - Live
Version stringLocation Uri - Main
File string - Name string
- Owner string
- Query
Warehouse string - Runtime
Environment stringVersion - Runtime
Name string - Title string
- Url
Id string - User
Packages string
- Code
Warehouse string - Comment string
- Compute
Pool string - Default
Packages string - Default
Version string - Default
Version stringAlias - Default
Version stringGit Commit Hash - Default
Version stringLocation Uri - Default
Version stringName - Default
Version stringSource Location Uri - External
Access stringIntegrations - External
Access stringSecrets - Idle
Auto intShutdown Time Seconds - Import
Urls string - Last
Version stringAlias - Last
Version stringGit Commit Hash - Last
Version stringLocation Uri - Last
Version stringName - Last
Version stringSource Location Uri - Live
Version stringLocation Uri - Main
File string - Name string
- Owner string
- Query
Warehouse string - Runtime
Environment stringVersion - Runtime
Name string - Title string
- Url
Id string - User
Packages string
- code
Warehouse String - comment String
- compute
Pool String - default
Packages String - default
Version String - default
Version StringAlias - default
Version StringGit Commit Hash - default
Version StringLocation Uri - default
Version StringName - default
Version StringSource Location Uri - external
Access StringIntegrations - external
Access StringSecrets - idle
Auto IntegerShutdown Time Seconds - import
Urls String - last
Version StringAlias - last
Version StringGit Commit Hash - last
Version StringLocation Uri - last
Version StringName - last
Version StringSource Location Uri - live
Version StringLocation Uri - main
File String - name String
- owner String
- query
Warehouse String - runtime
Environment StringVersion - runtime
Name String - title String
- url
Id String - user
Packages String
- code
Warehouse string - comment string
- compute
Pool string - default
Packages string - default
Version string - default
Version stringAlias - default
Version stringGit Commit Hash - default
Version stringLocation Uri - default
Version stringName - default
Version stringSource Location Uri - external
Access stringIntegrations - external
Access stringSecrets - idle
Auto numberShutdown Time Seconds - import
Urls string - last
Version stringAlias - last
Version stringGit Commit Hash - last
Version stringLocation Uri - last
Version stringName - last
Version stringSource Location Uri - live
Version stringLocation Uri - main
File string - name string
- owner string
- query
Warehouse string - runtime
Environment stringVersion - runtime
Name string - title string
- url
Id string - user
Packages string
- code_
warehouse str - comment str
- compute_
pool str - default_
packages str - default_
version str - default_
version_ stralias - default_
version_ strgit_ commit_ hash - default_
version_ strlocation_ uri - default_
version_ strname - default_
version_ strsource_ location_ uri - external_
access_ strintegrations - external_
access_ strsecrets - idle_
auto_ intshutdown_ time_ seconds - import_
urls str - last_
version_ stralias - last_
version_ strgit_ commit_ hash - last_
version_ strlocation_ uri - last_
version_ strname - last_
version_ strsource_ location_ uri - live_
version_ strlocation_ uri - main_
file str - name str
- owner str
- query_
warehouse str - runtime_
environment_ strversion - runtime_
name str - title str
- url_
id str - user_
packages str
- code
Warehouse String - comment String
- compute
Pool String - default
Packages String - default
Version String - default
Version StringAlias - default
Version StringGit Commit Hash - default
Version StringLocation Uri - default
Version StringName - default
Version StringSource Location Uri - external
Access StringIntegrations - external
Access StringSecrets - idle
Auto NumberShutdown Time Seconds - import
Urls String - last
Version StringAlias - last
Version StringGit Commit Hash - last
Version StringLocation Uri - last
Version StringName - last
Version StringSource Location Uri - live
Version StringLocation Uri - main
File String - name String
- owner String
- query
Warehouse String - runtime
Environment StringVersion - runtime
Name String - title String
- url
Id String - user
Packages String
GetNotebooksNotebookShowOutput
- Code
Warehouse string - Comment string
- Created
On string - Database
Name string - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Schema
Name string - Url
Id string
- Code
Warehouse string - Comment string
- Created
On string - Database
Name string - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Schema
Name string - Url
Id string
- code
Warehouse String - comment String
- created
On String - database
Name String - name String
- owner String
- owner
Role StringType - query
Warehouse String - schema
Name String - url
Id String
- code
Warehouse string - comment string
- created
On string - database
Name string - name string
- owner string
- owner
Role stringType - query
Warehouse string - schema
Name string - url
Id string
- code_
warehouse str - comment str
- created_
on str - database_
name str - name str
- owner str
- owner_
role_ strtype - query_
warehouse str - schema_
name str - url_
id str
- code
Warehouse String - comment String
- created
On String - database
Name String - name String
- owner String
- owner
Role StringType - query
Warehouse String - schema
Name String - url
Id String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
