snowflake.getServices
Explore with Pulumi AI
!> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled
field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
Data source used to get details of filtered services. Filtering is aligned with the current possibilities for SHOW SERVICES query. The results of SHOW and DESCRIBE are encapsulated in one output collection services
. By default, the results includes both services and job services. If you want to filter only services or job service, set service_type
with a relevant option.
Using getServices
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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOptions): Output<GetServicesResult>
def get_services(in_: Optional[GetServicesIn] = None,
like: Optional[str] = None,
limit: Optional[GetServicesLimit] = None,
service_type: Optional[str] = None,
starts_with: Optional[str] = None,
with_describe: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetServicesResult
def get_services_output(in_: Optional[pulumi.Input[GetServicesInArgs]] = None,
like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetServicesLimitArgs]] = None,
service_type: Optional[pulumi.Input[str]] = None,
starts_with: Optional[pulumi.Input[str]] = None,
with_describe: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServicesResult]
func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput
> Note: This function is named GetServices
in the Go SDK.
public static class GetServices
{
public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getServices:getServices
arguments:
# arguments dictionary
The following arguments are supported:
- In
Get
Services In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - Service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- In
Get
Services In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - Service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Services In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type String - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- in
Get
Services In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- in_
Get
Services In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service_
type str - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit Property Map
- Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type String - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
getServices Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Services
List<Get
Services Service> - Holds the aggregated output of all services details queries.
- In
Get
Services In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - Service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- Id string
- The provider-assigned unique ID for this managed resource.
- Services
[]Get
Services Service - Holds the aggregated output of all services details queries.
- In
Get
Services In - IN clause to filter the list of objects
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - Service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- With
Describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- services
List<Get
Services Service> - Holds the aggregated output of all services details queries.
- in
Get
Services In - IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type String - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- id string
- The provider-assigned unique ID for this managed resource.
- services
Get
Services Service[] - Holds the aggregated output of all services details queries.
- in
Get
Services In - IN clause to filter the list of objects
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type string - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- id str
- The provider-assigned unique ID for this managed resource.
- services
Sequence[Get
Services Service] - Holds the aggregated output of all services details queries.
- in_
Get
Services In - IN clause to filter the list of objects
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service_
type str - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with_
describe bool - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
- id String
- The provider-assigned unique ID for this managed resource.
- services List<Property Map>
- Holds the aggregated output of all services details queries.
- in Property Map
- IN clause to filter the list of objects
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit Property Map
- Limits the number of rows returned. If the
limit.from
is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern withstarts_with
orlike
. - service
Type String - (Default:
ALL
) The type filtering ofSHOW SERVICES
results.ALL
returns both services and job services.JOBS_ONLY
returns only job services (JOB
option in SQL).SERVICES_ONLY
returns only services (EXCLUDE_JOBS
option in SQL). - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- with
Describe Boolean - (Default:
true
) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
Supporting Types
GetServicesIn
- Account bool
- Returns records for the entire account.
- Compute
Pool string - Returns records for the specified compute pool.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- Account bool
- Returns records for the entire account.
- Compute
Pool string - Returns records for the specified compute pool.
- Database string
- Returns records for the current database in use or for a specified database.
- Schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- compute
Pool String - Returns records for the specified compute pool.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account boolean
- Returns records for the entire account.
- compute
Pool string - Returns records for the specified compute pool.
- database string
- Returns records for the current database in use or for a specified database.
- schema string
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account bool
- Returns records for the entire account.
- compute_
pool str - Returns records for the specified compute pool.
- database str
- Returns records for the current database in use or for a specified database.
- schema str
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
- account Boolean
- Returns records for the entire account.
- compute
Pool String - Returns records for the specified compute pool.
- database String
- Returns records for the current database in use or for a specified database.
- schema String
- Returns records for the current schema in use or a specified schema. Use fully qualified name.
GetServicesLimit
GetServicesService
- Describe
Outputs List<GetServices Service Describe Output> - Holds the output of DESCRIBE SERVICE.
- Show
Outputs List<GetServices Service Show Output> - Holds the output of SHOW SERVICES.
- Describe
Outputs []GetServices Service Describe Output - Holds the output of DESCRIBE SERVICE.
- Show
Outputs []GetServices Service Show Output - Holds the output of SHOW SERVICES.
- describe
Outputs List<GetServices Service Describe Output> - Holds the output of DESCRIBE SERVICE.
- show
Outputs List<GetServices Service Show Output> - Holds the output of SHOW SERVICES.
- describe
Outputs GetServices Service Describe Output[] - Holds the output of DESCRIBE SERVICE.
- show
Outputs GetServices Service Show Output[] - Holds the output of SHOW SERVICES.
- describe_
outputs Sequence[GetServices Service Describe Output] - Holds the output of DESCRIBE SERVICE.
- show_
outputs Sequence[GetServices Service Show Output] - Holds the output of SHOW SERVICES.
- describe
Outputs List<Property Map> - Holds the output of DESCRIBE SERVICE.
- show
Outputs List<Property Map> - Holds the output of SHOW SERVICES.
GetServicesServiceDescribeOutput
- Auto
Resume bool - Auto
Suspend intSecs - Comment string
- Compute
Pool string - Created
On string - Current
Instances int - Database
Name string - Dns
Name string - External
Access List<string>Integrations - Is
Async boolJob - Is
Job bool - Is
Upgrading bool - Managing
Object stringDomain - Managing
Object stringName - Max
Instances int - Min
Instances int - Min
Ready intInstances - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Resumed
On string - Schema
Name string - Spec string
- Spec
Digest string - Status string
- Suspended
On string - Target
Instances int - Updated
On string
- Auto
Resume bool - Auto
Suspend intSecs - Comment string
- Compute
Pool string - Created
On string - Current
Instances int - Database
Name string - Dns
Name string - External
Access []stringIntegrations - Is
Async boolJob - Is
Job bool - Is
Upgrading bool - Managing
Object stringDomain - Managing
Object stringName - Max
Instances int - Min
Instances int - Min
Ready intInstances - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Resumed
On string - Schema
Name string - Spec string
- Spec
Digest string - Status string
- Suspended
On string - Target
Instances int - Updated
On string
- auto
Resume Boolean - auto
Suspend IntegerSecs - comment String
- compute
Pool String - created
On String - current
Instances Integer - database
Name String - dns
Name String - external
Access List<String>Integrations - is
Async BooleanJob - is
Job Boolean - is
Upgrading Boolean - managing
Object StringDomain - managing
Object StringName - max
Instances Integer - min
Instances Integer - min
Ready IntegerInstances - name String
- owner String
- owner
Role StringType - query
Warehouse String - resumed
On String - schema
Name String - spec String
- spec
Digest String - status String
- suspended
On String - target
Instances Integer - updated
On String
- auto
Resume boolean - auto
Suspend numberSecs - comment string
- compute
Pool string - created
On string - current
Instances number - database
Name string - dns
Name string - external
Access string[]Integrations - is
Async booleanJob - is
Job boolean - is
Upgrading boolean - managing
Object stringDomain - managing
Object stringName - max
Instances number - min
Instances number - min
Ready numberInstances - name string
- owner string
- owner
Role stringType - query
Warehouse string - resumed
On string - schema
Name string - spec string
- spec
Digest string - status string
- suspended
On string - target
Instances number - updated
On string
- auto_
resume bool - auto_
suspend_ intsecs - comment str
- compute_
pool str - created_
on str - current_
instances int - database_
name str - dns_
name str - external_
access_ Sequence[str]integrations - is_
async_ booljob - is_
job bool - is_
upgrading bool - managing_
object_ strdomain - managing_
object_ strname - max_
instances int - min_
instances int - min_
ready_ intinstances - name str
- owner str
- owner_
role_ strtype - query_
warehouse str - resumed_
on str - schema_
name str - spec str
- spec_
digest str - status str
- suspended_
on str - target_
instances int - updated_
on str
- auto
Resume Boolean - auto
Suspend NumberSecs - comment String
- compute
Pool String - created
On String - current
Instances Number - database
Name String - dns
Name String - external
Access List<String>Integrations - is
Async BooleanJob - is
Job Boolean - is
Upgrading Boolean - managing
Object StringDomain - managing
Object StringName - max
Instances Number - min
Instances Number - min
Ready NumberInstances - name String
- owner String
- owner
Role StringType - query
Warehouse String - resumed
On String - schema
Name String - spec String
- spec
Digest String - status String
- suspended
On String - target
Instances Number - updated
On String
GetServicesServiceShowOutput
- Auto
Resume bool - Auto
Suspend intSecs - Comment string
- Compute
Pool string - Created
On string - Current
Instances int - Database
Name string - Dns
Name string - External
Access List<string>Integrations - Is
Async boolJob - Is
Job bool - Is
Upgrading bool - Managing
Object stringDomain - Managing
Object stringName - Max
Instances int - Min
Instances int - Min
Ready intInstances - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Resumed
On string - Schema
Name string - Spec
Digest string - Status string
- Suspended
On string - Target
Instances int - Updated
On string
- Auto
Resume bool - Auto
Suspend intSecs - Comment string
- Compute
Pool string - Created
On string - Current
Instances int - Database
Name string - Dns
Name string - External
Access []stringIntegrations - Is
Async boolJob - Is
Job bool - Is
Upgrading bool - Managing
Object stringDomain - Managing
Object stringName - Max
Instances int - Min
Instances int - Min
Ready intInstances - Name string
- Owner string
- Owner
Role stringType - Query
Warehouse string - Resumed
On string - Schema
Name string - Spec
Digest string - Status string
- Suspended
On string - Target
Instances int - Updated
On string
- auto
Resume Boolean - auto
Suspend IntegerSecs - comment String
- compute
Pool String - created
On String - current
Instances Integer - database
Name String - dns
Name String - external
Access List<String>Integrations - is
Async BooleanJob - is
Job Boolean - is
Upgrading Boolean - managing
Object StringDomain - managing
Object StringName - max
Instances Integer - min
Instances Integer - min
Ready IntegerInstances - name String
- owner String
- owner
Role StringType - query
Warehouse String - resumed
On String - schema
Name String - spec
Digest String - status String
- suspended
On String - target
Instances Integer - updated
On String
- auto
Resume boolean - auto
Suspend numberSecs - comment string
- compute
Pool string - created
On string - current
Instances number - database
Name string - dns
Name string - external
Access string[]Integrations - is
Async booleanJob - is
Job boolean - is
Upgrading boolean - managing
Object stringDomain - managing
Object stringName - max
Instances number - min
Instances number - min
Ready numberInstances - name string
- owner string
- owner
Role stringType - query
Warehouse string - resumed
On string - schema
Name string - spec
Digest string - status string
- suspended
On string - target
Instances number - updated
On string
- auto_
resume bool - auto_
suspend_ intsecs - comment str
- compute_
pool str - created_
on str - current_
instances int - database_
name str - dns_
name str - external_
access_ Sequence[str]integrations - is_
async_ booljob - is_
job bool - is_
upgrading bool - managing_
object_ strdomain - managing_
object_ strname - max_
instances int - min_
instances int - min_
ready_ intinstances - name str
- owner str
- owner_
role_ strtype - query_
warehouse str - resumed_
on str - schema_
name str - spec_
digest str - status str
- suspended_
on str - target_
instances int - updated_
on str
- auto
Resume Boolean - auto
Suspend NumberSecs - comment String
- compute
Pool String - created
On String - current
Instances Number - database
Name String - dns
Name String - external
Access List<String>Integrations - is
Async BooleanJob - is
Job Boolean - is
Upgrading Boolean - managing
Object StringDomain - managing
Object StringName - max
Instances Number - min
Instances Number - min
Ready NumberInstances - name String
- owner String
- owner
Role StringType - query
Warehouse String - resumed
On String - schema
Name String - spec
Digest String - status String
- suspended
On String - target
Instances Number - 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.