Snowflake

Pulumi Official
Package maintained by Pulumi
v0.12.0 published on Wednesday, Jul 20, 2022 by Pulumi

getDatabases

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = Output.Create(Snowflake.GetDatabases.InvokeAsync());
    }

}
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.GetDatabases(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var this = Output.of(SnowflakeFunctions.getDatabases());

    }
}
import pulumi
import pulumi_snowflake as snowflake

this = snowflake.get_databases()
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const thisDatabases = pulumi.output(snowflake.getDatabases());
variables:
  this:
    Fn::Invoke:
      Function: snowflake:getDatabases
      Arguments: {}

Using getDatabases

function getDatabases(opts?: InvokeOptions): Promise<GetDatabasesResult>
def get_databases(opts: Optional[InvokeOptions] = None) -> GetDatabasesResult
func GetDatabases(ctx *Context, opts ...InvokeOption) (*GetDatabasesResult, error)

> Note: This function is named GetDatabases in the Go SDK.

public static class GetDatabases 
{
    public static Task<GetDatabasesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabasesResult> getDatabases(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: snowflake:index/getDatabases:getDatabases
  Arguments:
    # Arguments dictionary

getDatabases Result

The following output properties are available:

Databases List<GetDatabasesDatabase>
Id string

The provider-assigned unique ID for this managed resource.

Databases []GetDatabasesDatabase
Id string

The provider-assigned unique ID for this managed resource.

databases List<GetDatabasesDatabase>
id String

The provider-assigned unique ID for this managed resource.

databases GetDatabasesDatabase[]
id string

The provider-assigned unique ID for this managed resource.

databases Sequence[GetDatabasesDatabase]
id str

The provider-assigned unique ID for this managed resource.

databases List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetDatabasesDatabase

GetDatabasesDatabaseReplicationConfiguration

Accounts List<string>
IgnoreEditionCheck bool
accounts List<String>
ignoreEditionCheck Boolean
accounts Sequence[str]
ignore_edition_check bool
accounts List<String>
ignoreEditionCheck Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes

This Pulumi package is based on the snowflake Terraform Provider.