Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Snowflake

v0.2.1 published on Monday, Sep 27, 2021 by Pulumi

getTables

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetTables.InvokeAsync(new Snowflake.GetTablesArgs
        {
            Database = "MYDB",
            Schema = "MYSCHEMA",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetTables(ctx, &GetTablesArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

current = snowflake.get_tables(database="MYDB",
    schema="MYSCHEMA")
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const current = pulumi.output(snowflake.getTables({
    database: "MYDB",
    schema: "MYSCHEMA",
}));

Using getTables

function getTables(args: GetTablesArgs, opts?: InvokeOptions): Promise<GetTablesResult>
def get_tables(database: Optional[str] = None,
               schema: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetTablesResult
func GetTables(ctx *Context, args *GetTablesArgs, opts ...InvokeOption) (*GetTablesResult, error)

Note: This function is named GetTables in the Go SDK.

public static class GetTables {
    public static Task<GetTablesResult> InvokeAsync(GetTablesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the tables from.
Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the tables from.
database string
The database from which to return the schemas from.
schema string
The schema from which to return the tables from.
database str
The database from which to return the schemas from.
schema str
The schema from which to return the tables from.

getTables Result

The following output properties are available:

Database string
The database from which to return the schemas from.
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the tables from.
Tables List<GetTablesTable>
The tables in the schema
Database string
The database from which to return the schemas from.
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the tables from.
Tables []GetTablesTable
The tables in the schema
database string
The database from which to return the schemas from.
id string
The provider-assigned unique ID for this managed resource.
schema string
The schema from which to return the tables from.
tables GetTablesTable[]
The tables in the schema
database str
The database from which to return the schemas from.
id str
The provider-assigned unique ID for this managed resource.
schema str
The schema from which to return the tables from.
tables Sequence[GetTablesTable]
The tables in the schema

Supporting Types

GetTablesTable

Comment string
Database string
The database from which to return the schemas from.
Name string
Schema string
The schema from which to return the tables from.
Comment string
Database string
The database from which to return the schemas from.
Name string
Schema string
The schema from which to return the tables from.
comment string
database string
The database from which to return the schemas from.
name string
schema string
The schema from which to return the tables from.
comment str
database str
The database from which to return the schemas from.
name str
schema str
The schema from which to return the tables from.

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.