Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi
snowflake.getCortexSearchServices
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
// Simple usage
const simple = snowflake.getCortexSearchServices({});
export const simpleOutput = simple.then(simple => simple.cortexSearchServices);
// Filtering (like)
const like = snowflake.getCortexSearchServices({
like: "some-name",
});
export const likeOutput = like.then(like => like.cortexSearchServices);
// Filtering (starts_with)
const startsWith = snowflake.getCortexSearchServices({
startsWith: "prefix-",
});
export const startsWithOutput = startsWith.then(startsWith => startsWith.cortexSearchServices);
// Filtering (limit)
const limit = snowflake.getCortexSearchServices({
limit: {
rows: 10,
from: "prefix-",
},
});
export const limitOutput = limit.then(limit => limit.cortexSearchServices);
import pulumi
import pulumi_snowflake as snowflake
# Simple usage
simple = snowflake.get_cortex_search_services()
pulumi.export("simpleOutput", simple.cortex_search_services)
# Filtering (like)
like = snowflake.get_cortex_search_services(like="some-name")
pulumi.export("likeOutput", like.cortex_search_services)
# Filtering (starts_with)
starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
pulumi.export("startsWithOutput", starts_with.cortex_search_services)
# Filtering (limit)
limit = snowflake.get_cortex_search_services(limit={
"rows": 10,
"from_": "prefix-",
})
pulumi.export("limitOutput", limit.cortex_search_services)
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 {
// Simple usage
simple, err := snowflake.GetCortexSearchServices(ctx, &snowflake.GetCortexSearchServicesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("simpleOutput", simple.CortexSearchServices)
// Filtering (like)
like, err := snowflake.GetCortexSearchServices(ctx, &snowflake.GetCortexSearchServicesArgs{
Like: pulumi.StringRef("some-name"),
}, nil)
if err != nil {
return err
}
ctx.Export("likeOutput", like.CortexSearchServices)
// Filtering (starts_with)
startsWith, err := snowflake.GetCortexSearchServices(ctx, &snowflake.GetCortexSearchServicesArgs{
StartsWith: pulumi.StringRef("prefix-"),
}, nil)
if err != nil {
return err
}
ctx.Export("startsWithOutput", startsWith.CortexSearchServices)
// Filtering (limit)
limit, err := snowflake.GetCortexSearchServices(ctx, &snowflake.GetCortexSearchServicesArgs{
Limit: snowflake.GetCortexSearchServicesLimit{
Rows: 10,
From: pulumi.StringRef("prefix-"),
},
}, nil)
if err != nil {
return err
}
ctx.Export("limitOutput", limit.CortexSearchServices)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
// Simple usage
var simple = Snowflake.GetCortexSearchServices.Invoke();
// Filtering (like)
var like = Snowflake.GetCortexSearchServices.Invoke(new()
{
Like = "some-name",
});
// Filtering (starts_with)
var startsWith = Snowflake.GetCortexSearchServices.Invoke(new()
{
StartsWith = "prefix-",
});
// Filtering (limit)
var limit = Snowflake.GetCortexSearchServices.Invoke(new()
{
Limit = new Snowflake.Inputs.GetCortexSearchServicesLimitInputArgs
{
Rows = 10,
From = "prefix-",
},
});
return new Dictionary<string, object?>
{
["simpleOutput"] = simple.Apply(getCortexSearchServicesResult => getCortexSearchServicesResult.CortexSearchServices),
["likeOutput"] = like.Apply(getCortexSearchServicesResult => getCortexSearchServicesResult.CortexSearchServices),
["startsWithOutput"] = startsWith.Apply(getCortexSearchServicesResult => getCortexSearchServicesResult.CortexSearchServices),
["limitOutput"] = limit.Apply(getCortexSearchServicesResult => getCortexSearchServicesResult.CortexSearchServices),
};
});
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.GetCortexSearchServicesArgs;
import com.pulumi.snowflake.inputs.GetCortexSearchServicesLimitArgs;
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) {
// Simple usage
final var simple = SnowflakeFunctions.getCortexSearchServices();
ctx.export("simpleOutput", simple.applyValue(getCortexSearchServicesResult -> getCortexSearchServicesResult.cortexSearchServices()));
// Filtering (like)
final var like = SnowflakeFunctions.getCortexSearchServices(GetCortexSearchServicesArgs.builder()
.like("some-name")
.build());
ctx.export("likeOutput", like.applyValue(getCortexSearchServicesResult -> getCortexSearchServicesResult.cortexSearchServices()));
// Filtering (starts_with)
final var startsWith = SnowflakeFunctions.getCortexSearchServices(GetCortexSearchServicesArgs.builder()
.startsWith("prefix-")
.build());
ctx.export("startsWithOutput", startsWith.applyValue(getCortexSearchServicesResult -> getCortexSearchServicesResult.cortexSearchServices()));
// Filtering (limit)
final var limit = SnowflakeFunctions.getCortexSearchServices(GetCortexSearchServicesArgs.builder()
.limit(GetCortexSearchServicesLimitArgs.builder()
.rows(10)
.from("prefix-")
.build())
.build());
ctx.export("limitOutput", limit.applyValue(getCortexSearchServicesResult -> getCortexSearchServicesResult.cortexSearchServices()));
}
}
variables:
# Simple usage
simple:
fn::invoke:
Function: snowflake:getCortexSearchServices
Arguments: {}
# Filtering (like)
like:
fn::invoke:
Function: snowflake:getCortexSearchServices
Arguments:
like: some-name
# Filtering (starts_with)
startsWith:
fn::invoke:
Function: snowflake:getCortexSearchServices
Arguments:
startsWith: prefix-
# Filtering (limit)
limit:
fn::invoke:
Function: snowflake:getCortexSearchServices
Arguments:
limit:
rows: 10
from: prefix-
outputs:
simpleOutput: ${simple.cortexSearchServices}
likeOutput: ${like.cortexSearchServices}
startsWithOutput: ${startsWith.cortexSearchServices}
limitOutput: ${limit.cortexSearchServices}
Using getCortexSearchServices
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 getCortexSearchServices(args: GetCortexSearchServicesArgs, opts?: InvokeOptions): Promise<GetCortexSearchServicesResult>
function getCortexSearchServicesOutput(args: GetCortexSearchServicesOutputArgs, opts?: InvokeOptions): Output<GetCortexSearchServicesResult>
def get_cortex_search_services(in_: Optional[GetCortexSearchServicesIn] = None,
like: Optional[str] = None,
limit: Optional[GetCortexSearchServicesLimit] = None,
starts_with: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCortexSearchServicesResult
def get_cortex_search_services_output(in_: Optional[pulumi.Input[GetCortexSearchServicesInArgs]] = None,
like: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[GetCortexSearchServicesLimitArgs]] = None,
starts_with: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCortexSearchServicesResult]
func GetCortexSearchServices(ctx *Context, args *GetCortexSearchServicesArgs, opts ...InvokeOption) (*GetCortexSearchServicesResult, error)
func GetCortexSearchServicesOutput(ctx *Context, args *GetCortexSearchServicesOutputArgs, opts ...InvokeOption) GetCortexSearchServicesResultOutput
> Note: This function is named GetCortexSearchServices
in the Go SDK.
public static class GetCortexSearchServices
{
public static Task<GetCortexSearchServicesResult> InvokeAsync(GetCortexSearchServicesArgs args, InvokeOptions? opts = null)
public static Output<GetCortexSearchServicesResult> Invoke(GetCortexSearchServicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCortexSearchServicesResult> getCortexSearchServices(GetCortexSearchServicesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getCortexSearchServices:getCortexSearchServices
arguments:
# arguments dictionary
The following arguments are supported:
- In
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- In
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- in
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- in
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- in_
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- in Property Map
- IN clause to filter the list of cortex search services.
- 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 wll 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
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
getCortexSearchServices Result
The following output properties are available:
- Cortex
Search List<GetServices Cortex Search Services Cortex Search Service> - Holds the output of SHOW CORTEX SEARCH SERVICES.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- Cortex
Search []GetServices Cortex Search Services Cortex Search Service - Holds the output of SHOW CORTEX SEARCH SERVICES.
- Id string
- The provider-assigned unique ID for this managed resource.
- In
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - Limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - Starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- cortex
Search List<GetServices Cortex Search Services Cortex Search Service> - Holds the output of SHOW CORTEX SEARCH SERVICES.
- id String
- The provider-assigned unique ID for this managed resource.
- in
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
- cortex
Search GetServices Cortex Search Services Cortex Search Service[] - Holds the output of SHOW CORTEX SEARCH SERVICES.
- id string
- The provider-assigned unique ID for this managed resource.
- in
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts
With string - Filters the output with case-sensitive characters indicating the beginning of the object name.
- cortex_
search_ Sequence[Getservices Cortex Search Services Cortex Search Service] - Holds the output of SHOW CORTEX SEARCH SERVICES.
- id str
- The provider-assigned unique ID for this managed resource.
- in_
Get
Cortex Search Services In - IN clause to filter the list of cortex search services.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
). - limit
Get
Cortex Search Services Limit - Limits the number of rows returned. If the
limit.from
is set, then the limit wll 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
. - starts_
with str - Filters the output with case-sensitive characters indicating the beginning of the object name.
- cortex
Search List<Property Map>Services - Holds the output of SHOW CORTEX SEARCH SERVICES.
- id String
- The provider-assigned unique ID for this managed resource.
- in Property Map
- IN clause to filter the list of cortex search services.
- 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 wll 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
. - starts
With String - Filters the output with case-sensitive characters indicating the beginning of the object name.
Supporting Types
GetCortexSearchServicesCortexSearchService
- Comment string
- Comment for the cortex search service.
- Created
On string - Date and time when the cortex search service was created.
- Database
Name string - Database in which the cortex search service is stored.
- Name string
- Name of the cortex search service.
- Schema
Name string - Schema in which the cortex search service is stored.
- Comment string
- Comment for the cortex search service.
- Created
On string - Date and time when the cortex search service was created.
- Database
Name string - Database in which the cortex search service is stored.
- Name string
- Name of the cortex search service.
- Schema
Name string - Schema in which the cortex search service is stored.
- comment String
- Comment for the cortex search service.
- created
On String - Date and time when the cortex search service was created.
- database
Name String - Database in which the cortex search service is stored.
- name String
- Name of the cortex search service.
- schema
Name String - Schema in which the cortex search service is stored.
- comment string
- Comment for the cortex search service.
- created
On string - Date and time when the cortex search service was created.
- database
Name string - Database in which the cortex search service is stored.
- name string
- Name of the cortex search service.
- schema
Name string - Schema in which the cortex search service is stored.
- comment str
- Comment for the cortex search service.
- created_
on str - Date and time when the cortex search service was created.
- database_
name str - Database in which the cortex search service is stored.
- name str
- Name of the cortex search service.
- schema_
name str - Schema in which the cortex search service is stored.
- comment String
- Comment for the cortex search service.
- created
On String - Date and time when the cortex search service was created.
- database
Name String - Database in which the cortex search service is stored.
- name String
- Name of the cortex search service.
- schema
Name String - Schema in which the cortex search service is stored.
GetCortexSearchServicesIn
GetCortexSearchServicesLimit
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.