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

snowflake.getWarehouses

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.getWarehouses({});
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    current = snowflake.get_warehouses()
    
    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.GetWarehouses(ctx, nil, 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.GetWarehouses.Invoke();
    
    });
    
    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 current = SnowflakeFunctions.getWarehouses();
    
        }
    }
    
    variables:
      current:
        fn::invoke:
          Function: snowflake:getWarehouses
          Arguments: {}
    

    Using getWarehouses

    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 getWarehouses(opts?: InvokeOptions): Promise<GetWarehousesResult>
    function getWarehousesOutput(opts?: InvokeOptions): Output<GetWarehousesResult>
    def get_warehouses(opts: Optional[InvokeOptions] = None) -> GetWarehousesResult
    def get_warehouses_output(opts: Optional[InvokeOptions] = None) -> Output[GetWarehousesResult]
    func GetWarehouses(ctx *Context, opts ...InvokeOption) (*GetWarehousesResult, error)
    func GetWarehousesOutput(ctx *Context, opts ...InvokeOption) GetWarehousesResultOutput

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

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

    getWarehouses Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Warehouses List<GetWarehousesWarehouse>
    The warehouses in the database
    Id string
    The provider-assigned unique ID for this managed resource.
    Warehouses []GetWarehousesWarehouse
    The warehouses in the database
    id String
    The provider-assigned unique ID for this managed resource.
    warehouses List<GetWarehousesWarehouse>
    The warehouses in the database
    id string
    The provider-assigned unique ID for this managed resource.
    warehouses GetWarehousesWarehouse[]
    The warehouses in the database
    id str
    The provider-assigned unique ID for this managed resource.
    warehouses Sequence[GetWarehousesWarehouse]
    The warehouses in the database
    id String
    The provider-assigned unique ID for this managed resource.
    warehouses List<Property Map>
    The warehouses in the database

    Supporting Types

    GetWarehousesWarehouse

    Comment string
    Name string
    ScalingPolicy string
    Size string
    State string
    Type string
    Comment string
    Name string
    ScalingPolicy string
    Size string
    State string
    Type string
    comment String
    name String
    scalingPolicy String
    size String
    state String
    type String
    comment string
    name string
    scalingPolicy string
    size string
    state string
    type string
    comment String
    name String
    scalingPolicy String
    size String
    state String
    type 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