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

Snowflake

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

getSchemas

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetSchemas.InvokeAsync(new Snowflake.GetSchemasArgs
        {
            Database = "MYDB",
        }));
    }

}
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.GetSchemas(ctx, &GetSchemasArgs{
			Database: "MYDB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

current = snowflake.get_schemas(database="MYDB")
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

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

Using getSchemas

function getSchemas(args: GetSchemasArgs, opts?: InvokeOptions): Promise<GetSchemasResult>
def get_schemas(database: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSchemasResult
func GetSchemas(ctx *Context, args *GetSchemasArgs, opts ...InvokeOption) (*GetSchemasResult, error)

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

public static class GetSchemas {
    public static Task<GetSchemasResult> InvokeAsync(GetSchemasArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

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

getSchemas 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.
Schemas List<GetSchemasSchema>
The schemas in the database
Database string
The database from which to return the schemas from.
Id string
The provider-assigned unique ID for this managed resource.
Schemas []GetSchemasSchema
The schemas in the database
database string
The database from which to return the schemas from.
id string
The provider-assigned unique ID for this managed resource.
schemas GetSchemasSchema[]
The schemas in the database
database str
The database from which to return the schemas from.
id str
The provider-assigned unique ID for this managed resource.
schemas Sequence[GetSchemasSchema]
The schemas in the database

Supporting Types

GetSchemasSchema

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

Package Details

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