Snowflake

v0.14.0 published on Thursday, Sep 29, 2022 by Pulumi

getDatabases

Example Usage

using System.Collections.Generic;
using Pulumi;
using Snowflake = Pulumi.Snowflake;

return await Deployment.RunAsync(() => 
{
    var @this = Snowflake.GetDatabases.Invoke();

});
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.SnowflakeFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

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

    public static void stack(Context ctx) {
        final var this = 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>

Snowflake databases

Id string

The provider-assigned unique ID for this managed resource.

Databases []GetDatabasesDatabase

Snowflake databases

Id string

The provider-assigned unique ID for this managed resource.

databases List<GetDatabasesDatabase>

Snowflake databases

id String

The provider-assigned unique ID for this managed resource.

databases GetDatabasesDatabase[]

Snowflake databases

id string

The provider-assigned unique ID for this managed resource.

databases Sequence[GetDatabasesDatabase]

Snowflake databases

id str

The provider-assigned unique ID for this managed resource.

databases List<Property Map>

Snowflake databases

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.