Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi
snowflake.getWarehouses
Explore with Pulumi AI
Data source used to get details of filtered warehouses. Filtering is aligned with the current possibilities for SHOW WAREHOUSES query (only like
is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
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(args: GetWarehousesArgs, opts?: InvokeOptions): Promise<GetWarehousesResult>
function getWarehousesOutput(args: GetWarehousesOutputArgs, opts?: InvokeOptions): Output<GetWarehousesResult>
def get_warehouses(like: Optional[str] = None,
with_describe: Optional[bool] = None,
with_parameters: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetWarehousesResult
def get_warehouses_output(like: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
with_parameters: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWarehousesResult]
func GetWarehouses(ctx *Context, args *GetWarehousesArgs, opts ...InvokeOption) (*GetWarehousesResult, error)
func GetWarehousesOutput(ctx *Context, args *GetWarehousesOutputArgs, opts ...InvokeOption) GetWarehousesResultOutput
> Note: This function is named GetWarehouses
in the Go SDK.
public static class GetWarehouses
{
public static Task<GetWarehousesResult> InvokeAsync(GetWarehousesArgs args, InvokeOptions? opts = null)
public static Output<GetWarehousesResult> Invoke(GetWarehousesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWarehousesResult> getWarehouses(GetWarehousesArgs args, InvokeOptions options)
public static Output<GetWarehousesResult> getWarehouses(GetWarehousesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getWarehouses:getWarehouses
arguments:
# arguments dictionary
The following arguments are supported:
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - With
Parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - With
Parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters Boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with_
describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with_
parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters Boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
getWarehouses Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Warehouses
List<Get
Warehouses Warehouse> - Holds the aggregated output of all warehouse details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - With
Parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Warehouses
[]Get
Warehouses Warehouse - Holds the aggregated output of all warehouse details queries.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - With
Describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - With
Parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- warehouses
List<Get
Warehouses Warehouse> - Holds the aggregated output of all warehouse details queries.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters Boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- warehouses
Get
Warehouses Warehouse[] - Holds the aggregated output of all warehouse details queries.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- warehouses
Sequence[Get
Warehouses Warehouse] - Holds the aggregated output of all warehouse details queries.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with_
describe bool - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with_
parameters bool - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- warehouses List<Property Map>
- Holds the aggregated output of all warehouse details queries.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - with
Describe Boolean - (Default:
true
) Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true. - with
Parameters Boolean - (Default:
true
) Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
Supporting Types
GetWarehousesWarehouse
- Describe
Outputs This property is required. List<GetWarehouses Warehouse Describe Output> - Holds the output of DESCRIBE WAREHOUSE.
- Parameters
This property is required. List<GetWarehouses Warehouse Parameter> - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- Show
Outputs This property is required. List<GetWarehouses Warehouse Show Output> - Holds the output of SHOW WAREHOUSES.
- Describe
Outputs This property is required. []GetWarehouses Warehouse Describe Output - Holds the output of DESCRIBE WAREHOUSE.
- Parameters
This property is required. []GetWarehouses Warehouse Parameter - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- Show
Outputs This property is required. []GetWarehouses Warehouse Show Output - Holds the output of SHOW WAREHOUSES.
- describe
Outputs This property is required. List<GetWarehouses Warehouse Describe Output> - Holds the output of DESCRIBE WAREHOUSE.
- parameters
This property is required. List<GetWarehouses Warehouse Parameter> - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs This property is required. List<GetWarehouses Warehouse Show Output> - Holds the output of SHOW WAREHOUSES.
- describe
Outputs This property is required. GetWarehouses Warehouse Describe Output[] - Holds the output of DESCRIBE WAREHOUSE.
- parameters
This property is required. GetWarehouses Warehouse Parameter[] - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs This property is required. GetWarehouses Warehouse Show Output[] - Holds the output of SHOW WAREHOUSES.
- describe_
outputs This property is required. Sequence[GetWarehouses Warehouse Describe Output] - Holds the output of DESCRIBE WAREHOUSE.
- parameters
This property is required. Sequence[GetWarehouses Warehouse Parameter] - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show_
outputs This property is required. Sequence[GetWarehouses Warehouse Show Output] - Holds the output of SHOW WAREHOUSES.
- describe
Outputs This property is required. List<Property Map> - Holds the output of DESCRIBE WAREHOUSE.
- parameters
This property is required. List<Property Map> - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs This property is required. List<Property Map> - Holds the output of SHOW WAREHOUSES.
GetWarehousesWarehouseDescribeOutput
- created_
on This property is required. str - kind
This property is required. str - name
This property is required. str
GetWarehousesWarehouseParameter
- Max
Concurrency Levels This property is required. List<GetWarehouses Warehouse Parameter Max Concurrency Level> - Statement
Queued Timeout In Seconds This property is required. List<GetWarehouses Warehouse Parameter Statement Queued Timeout In Second> - Statement
Timeout In Seconds This property is required. List<GetWarehouses Warehouse Parameter Statement Timeout In Second>
- Max
Concurrency Levels This property is required. []GetWarehouses Warehouse Parameter Max Concurrency Level - Statement
Queued Timeout In Seconds This property is required. []GetWarehouses Warehouse Parameter Statement Queued Timeout In Second - Statement
Timeout In Seconds This property is required. []GetWarehouses Warehouse Parameter Statement Timeout In Second
- max
Concurrency Levels This property is required. List<GetWarehouses Warehouse Parameter Max Concurrency Level> - statement
Queued Timeout In Seconds This property is required. List<GetWarehouses Warehouse Parameter Statement Queued Timeout In Second> - statement
Timeout In Seconds This property is required. List<GetWarehouses Warehouse Parameter Statement Timeout In Second>
- max
Concurrency Levels This property is required. GetWarehouses Warehouse Parameter Max Concurrency Level[] - statement
Queued Timeout In Seconds This property is required. GetWarehouses Warehouse Parameter Statement Queued Timeout In Second[] - statement
Timeout In Seconds This property is required. GetWarehouses Warehouse Parameter Statement Timeout In Second[]
- max_
concurrency_ levels This property is required. Sequence[GetWarehouses Warehouse Parameter Max Concurrency Level] - statement_
queued_ timeout_ in_ seconds This property is required. Sequence[GetWarehouses Warehouse Parameter Statement Queued Timeout In Second] - statement_
timeout_ in_ seconds This property is required. Sequence[GetWarehouses Warehouse Parameter Statement Timeout In Second]
- max
Concurrency Levels This property is required. List<Property Map> - statement
Queued Timeout In Seconds This property is required. List<Property Map> - statement
Timeout In Seconds This property is required. List<Property Map>
GetWarehousesWarehouseParameterMaxConcurrencyLevel
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- default_
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
- default
This property is required. string - description
This property is required. string - key
This property is required. string - level
This property is required. string - value
This property is required. string
- default
This property is required. str - description
This property is required. str - key
This property is required. str - level
This property is required. str - value
This property is required. str
- default
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
GetWarehousesWarehouseParameterStatementQueuedTimeoutInSecond
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- default_
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
- default
This property is required. string - description
This property is required. string - key
This property is required. string - level
This property is required. string - value
This property is required. string
- default
This property is required. str - description
This property is required. str - key
This property is required. str - level
This property is required. str - value
This property is required. str
- default
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
GetWarehousesWarehouseParameterStatementTimeoutInSecond
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- Default
This property is required. string - Description
This property is required. string - Key
This property is required. string - Level
This property is required. string - Value
This property is required. string
- default_
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
- default
This property is required. string - description
This property is required. string - key
This property is required. string - level
This property is required. string - value
This property is required. string
- default
This property is required. str - description
This property is required. str - key
This property is required. str - level
This property is required. str - value
This property is required. str
- default
This property is required. String - description
This property is required. String - key
This property is required. String - level
This property is required. String - value
This property is required. String
GetWarehousesWarehouseShowOutput
- Auto
Resume This property is required. bool - Auto
Suspend This property is required. int - Available
This property is required. double - Comment
This property is required. string - Created
On This property is required. string - Enable
Query Acceleration This property is required. bool - Is
Current This property is required. bool - Is
Default This property is required. bool - Max
Cluster Count This property is required. int - Min
Cluster Count This property is required. int - Name
This property is required. string - Other
This property is required. double - Owner
This property is required. string - Owner
Role Type This property is required. string - Provisioning
This property is required. double - Query
Acceleration Max Scale Factor This property is required. int - Queued
This property is required. int - Quiescing
This property is required. double - Resource
Monitor This property is required. string - Resumed
On This property is required. string - Running
This property is required. int - Scaling
Policy This property is required. string - Size
This property is required. string - Started
Clusters This property is required. int - State
This property is required. string - Type
This property is required. string - Updated
On This property is required. string
- Auto
Resume This property is required. bool - Auto
Suspend This property is required. int - Available
This property is required. float64 - Comment
This property is required. string - Created
On This property is required. string - Enable
Query Acceleration This property is required. bool - Is
Current This property is required. bool - Is
Default This property is required. bool - Max
Cluster Count This property is required. int - Min
Cluster Count This property is required. int - Name
This property is required. string - Other
This property is required. float64 - Owner
This property is required. string - Owner
Role Type This property is required. string - Provisioning
This property is required. float64 - Query
Acceleration Max Scale Factor This property is required. int - Queued
This property is required. int - Quiescing
This property is required. float64 - Resource
Monitor This property is required. string - Resumed
On This property is required. string - Running
This property is required. int - Scaling
Policy This property is required. string - Size
This property is required. string - Started
Clusters This property is required. int - State
This property is required. string - Type
This property is required. string - Updated
On This property is required. string
- auto
Resume This property is required. Boolean - auto
Suspend This property is required. Integer - available
This property is required. Double - comment
This property is required. String - created
On This property is required. String - enable
Query Acceleration This property is required. Boolean - is
Current This property is required. Boolean - is
Default This property is required. Boolean - max
Cluster Count This property is required. Integer - min
Cluster Count This property is required. Integer - name
This property is required. String - other
This property is required. Double - owner
This property is required. String - owner
Role Type This property is required. String - provisioning
This property is required. Double - query
Acceleration Max Scale Factor This property is required. Integer - queued
This property is required. Integer - quiescing
This property is required. Double - resource
Monitor This property is required. String - resumed
On This property is required. String - running
This property is required. Integer - scaling
Policy This property is required. String - size
This property is required. String - started
Clusters This property is required. Integer - state
This property is required. String - type
This property is required. String - updated
On This property is required. String
- auto
Resume This property is required. boolean - auto
Suspend This property is required. number - available
This property is required. number - comment
This property is required. string - created
On This property is required. string - enable
Query Acceleration This property is required. boolean - is
Current This property is required. boolean - is
Default This property is required. boolean - max
Cluster Count This property is required. number - min
Cluster Count This property is required. number - name
This property is required. string - other
This property is required. number - owner
This property is required. string - owner
Role Type This property is required. string - provisioning
This property is required. number - query
Acceleration Max Scale Factor This property is required. number - queued
This property is required. number - quiescing
This property is required. number - resource
Monitor This property is required. string - resumed
On This property is required. string - running
This property is required. number - scaling
Policy This property is required. string - size
This property is required. string - started
Clusters This property is required. number - state
This property is required. string - type
This property is required. string - updated
On This property is required. string
- auto_
resume This property is required. bool - auto_
suspend This property is required. int - available
This property is required. float - comment
This property is required. str - created_
on This property is required. str - enable_
query_ acceleration This property is required. bool - is_
current This property is required. bool - is_
default This property is required. bool - max_
cluster_ count This property is required. int - min_
cluster_ count This property is required. int - name
This property is required. str - other
This property is required. float - owner
This property is required. str - owner_
role_ type This property is required. str - provisioning
This property is required. float - query_
acceleration_ max_ scale_ factor This property is required. int - queued
This property is required. int - quiescing
This property is required. float - resource_
monitor This property is required. str - resumed_
on This property is required. str - running
This property is required. int - scaling_
policy This property is required. str - size
This property is required. str - started_
clusters This property is required. int - state
This property is required. str - type
This property is required. str - updated_
on This property is required. str
- auto
Resume This property is required. Boolean - auto
Suspend This property is required. Number - available
This property is required. Number - comment
This property is required. String - created
On This property is required. String - enable
Query Acceleration This property is required. Boolean - is
Current This property is required. Boolean - is
Default This property is required. Boolean - max
Cluster Count This property is required. Number - min
Cluster Count This property is required. Number - name
This property is required. String - other
This property is required. Number - owner
This property is required. String - owner
Role Type This property is required. String - provisioning
This property is required. Number - query
Acceleration Max Scale Factor This property is required. Number - queued
This property is required. Number - quiescing
This property is required. Number - resource
Monitor This property is required. String - resumed
On This property is required. String - running
This property is required. Number - scaling
Policy This property is required. String - size
This property is required. String - started
Clusters This property is required. Number - state
This property is required. String - type
This property is required. String - updated
On This property is required. String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.