1. Packages
  2. Snowflake
  3. API Docs
  4. getStages
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

snowflake.getStages

Explore with Pulumi AI

snowflake logo
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const current = snowflake.getStages({
        database: "MYDB",
        schema: "MYSCHEMA",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    current = snowflake.get_stages(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.GetStages(ctx, &snowflake.GetStagesArgs{
    			Database: "MYDB",
    			Schema:   "MYSCHEMA",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Snowflake.GetStages.Invoke(new()
        {
            Database = "MYDB",
            Schema = "MYSCHEMA",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.SnowflakeFunctions;
    import com.pulumi.snowflake.inputs.GetStagesArgs;
    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 current = SnowflakeFunctions.getStages(GetStagesArgs.builder()
                .database("MYDB")
                .schema("MYSCHEMA")
                .build());
    
        }
    }
    
    variables:
      current:
        fn::invoke:
          Function: snowflake:getStages
          Arguments:
            database: MYDB
            schema: MYSCHEMA
    

    Using getStages

    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 getStages(args: GetStagesArgs, opts?: InvokeOptions): Promise<GetStagesResult>
    function getStagesOutput(args: GetStagesOutputArgs, opts?: InvokeOptions): Output<GetStagesResult>
    def get_stages(database: Optional[str] = None,
                   schema: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStagesResult
    def get_stages_output(database: Optional[pulumi.Input[str]] = None,
                   schema: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetStagesResult]
    func GetStages(ctx *Context, args *GetStagesArgs, opts ...InvokeOption) (*GetStagesResult, error)
    func GetStagesOutput(ctx *Context, args *GetStagesOutputArgs, opts ...InvokeOption) GetStagesResultOutput

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

    public static class GetStages 
    {
        public static Task<GetStagesResult> InvokeAsync(GetStagesArgs args, InvokeOptions? opts = null)
        public static Output<GetStagesResult> Invoke(GetStagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStagesResult> getStages(GetStagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getStages:getStages
      arguments:
        # arguments dictionary

    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 stages from.
    Database string
    The database from which to return the schemas from.
    Schema string
    The schema from which to return the stages from.
    database String
    The database from which to return the schemas from.
    schema String
    The schema from which to return the stages from.
    database string
    The database from which to return the schemas from.
    schema string
    The schema from which to return the stages from.
    database str
    The database from which to return the schemas from.
    schema str
    The schema from which to return the stages from.
    database String
    The database from which to return the schemas from.
    schema String
    The schema from which to return the stages from.

    getStages 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 stages from.
    Stages List<GetStagesStage>
    The stages 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 stages from.
    Stages []GetStagesStage
    The stages 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 stages from.
    stages List<GetStagesStage>
    The stages 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 stages from.
    stages GetStagesStage[]
    The stages 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 stages from.
    stages Sequence[GetStagesStage]
    The stages 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 stages from.
    stages List<Property Map>
    The stages in the schema

    Supporting Types

    GetStagesStage

    Comment string
    Database string
    Name string
    Schema string
    StorageIntegration string
    Comment string
    Database string
    Name string
    Schema string
    StorageIntegration string
    comment String
    database String
    name String
    schema String
    storageIntegration String
    comment string
    database string
    name string
    schema string
    storageIntegration string
    comment String
    database String
    name String
    schema String
    storageIntegration String

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi