snowflake.getWarehouses
Explore with Pulumi AI
!> V1 release candidate This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
Datasource 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)
// Output-based functions aren't available in Java yet
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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 List<GetWarehouses Warehouse Describe Output> - Holds the output of DESCRIBE WAREHOUSE.
- Parameters
List<Get
Warehouses Warehouse Parameter> - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- Show
Outputs List<GetWarehouses Warehouse Show Output> - Holds the output of SHOW WAREHOUSES.
- Describe
Outputs []GetWarehouses Warehouse Describe Output - Holds the output of DESCRIBE WAREHOUSE.
- Parameters
[]Get
Warehouses Warehouse Parameter - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- Show
Outputs []GetWarehouses Warehouse Show Output - Holds the output of SHOW WAREHOUSES.
- describe
Outputs List<GetWarehouses Warehouse Describe Output> - Holds the output of DESCRIBE WAREHOUSE.
- parameters
List<Get
Warehouses Warehouse Parameter> - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs List<GetWarehouses Warehouse Show Output> - Holds the output of SHOW WAREHOUSES.
- describe
Outputs GetWarehouses Warehouse Describe Output[] - Holds the output of DESCRIBE WAREHOUSE.
- parameters
Get
Warehouses Warehouse Parameter[] - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs GetWarehouses Warehouse Show Output[] - Holds the output of SHOW WAREHOUSES.
- describe_
outputs Sequence[GetWarehouses Warehouse Describe Output] - Holds the output of DESCRIBE WAREHOUSE.
- parameters
Sequence[Get
Warehouses Warehouse Parameter] - Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show_
outputs Sequence[GetWarehouses Warehouse Show Output] - Holds the output of SHOW WAREHOUSES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE WAREHOUSE.
- parameters List<Property Map>
- Holds the output of SHOW PARAMETERS FOR WAREHOUSE.
- show
Outputs List<Property Map> - Holds the output of SHOW WAREHOUSES.
GetWarehousesWarehouseDescribeOutput
- created_
on str - kind str
- name str
GetWarehousesWarehouseParameter
GetWarehousesWarehouseParameterMaxConcurrencyLevel
- Default string
- Description string
- Key string
- Level string
- Value string
- Default string
- Description string
- Key string
- Level string
- Value string
- default_ String
- description String
- key String
- level String
- value String
- default string
- description string
- key string
- level string
- value string
- default str
- description str
- key str
- level str
- value str
- default String
- description String
- key String
- level String
- value String
GetWarehousesWarehouseParameterStatementQueuedTimeoutInSecond
- Default string
- Description string
- Key string
- Level string
- Value string
- Default string
- Description string
- Key string
- Level string
- Value string
- default_ String
- description String
- key String
- level String
- value String
- default string
- description string
- key string
- level string
- value string
- default str
- description str
- key str
- level str
- value str
- default String
- description String
- key String
- level String
- value String
GetWarehousesWarehouseParameterStatementTimeoutInSecond
- Default string
- Description string
- Key string
- Level string
- Value string
- Default string
- Description string
- Key string
- Level string
- Value string
- default_ String
- description String
- key String
- level String
- value String
- default string
- description string
- key string
- level string
- value string
- default str
- description str
- key str
- level str
- value str
- default String
- description String
- key String
- level String
- value String
GetWarehousesWarehouseShowOutput
- Auto
Resume bool - Auto
Suspend int - Available double
- Comment string
- Created
On string - Enable
Query boolAcceleration - Is
Current bool - Is
Default bool - Max
Cluster intCount - Min
Cluster intCount - Name string
- Other double
- Owner string
- Owner
Role stringType - Provisioning double
- Query
Acceleration intMax Scale Factor - Queued int
- Quiescing double
- Resource
Monitor string - Resumed
On string - Running int
- Scaling
Policy string - Size string
- Started
Clusters int - State string
- Type string
- Updated
On string
- Auto
Resume bool - Auto
Suspend int - Available float64
- Comment string
- Created
On string - Enable
Query boolAcceleration - Is
Current bool - Is
Default bool - Max
Cluster intCount - Min
Cluster intCount - Name string
- Other float64
- Owner string
- Owner
Role stringType - Provisioning float64
- Query
Acceleration intMax Scale Factor - Queued int
- Quiescing float64
- Resource
Monitor string - Resumed
On string - Running int
- Scaling
Policy string - Size string
- Started
Clusters int - State string
- Type string
- Updated
On string
- auto
Resume Boolean - auto
Suspend Integer - available Double
- comment String
- created
On String - enable
Query BooleanAcceleration - is
Current Boolean - is
Default Boolean - max
Cluster IntegerCount - min
Cluster IntegerCount - name String
- other Double
- owner String
- owner
Role StringType - provisioning Double
- query
Acceleration IntegerMax Scale Factor - queued Integer
- quiescing Double
- resource
Monitor String - resumed
On String - running Integer
- scaling
Policy String - size String
- started
Clusters Integer - state String
- type String
- updated
On String
- auto
Resume boolean - auto
Suspend number - available number
- comment string
- created
On string - enable
Query booleanAcceleration - is
Current boolean - is
Default boolean - max
Cluster numberCount - min
Cluster numberCount - name string
- other number
- owner string
- owner
Role stringType - provisioning number
- query
Acceleration numberMax Scale Factor - queued number
- quiescing number
- resource
Monitor string - resumed
On string - running number
- scaling
Policy string - size string
- started
Clusters number - state string
- type string
- updated
On string
- auto_
resume bool - auto_
suspend int - available float
- comment str
- created_
on str - enable_
query_ boolacceleration - is_
current bool - is_
default bool - max_
cluster_ intcount - min_
cluster_ intcount - name str
- other float
- owner str
- owner_
role_ strtype - provisioning float
- query_
acceleration_ intmax_ scale_ factor - queued int
- quiescing float
- resource_
monitor str - resumed_
on str - running int
- scaling_
policy str - size str
- started_
clusters int - state str
- type str
- updated_
on str
- auto
Resume Boolean - auto
Suspend Number - available Number
- comment String
- created
On String - enable
Query BooleanAcceleration - is
Current Boolean - is
Default Boolean - max
Cluster NumberCount - min
Cluster NumberCount - name String
- other Number
- owner String
- owner
Role StringType - provisioning Number
- query
Acceleration NumberMax Scale Factor - queued Number
- quiescing Number
- resource
Monitor String - resumed
On String - running Number
- scaling
Policy String - size String
- started
Clusters Number - state String
- type String
- updated
On String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.