1. Packages
  2. Snowflake
  3. API Docs
  4. getCortexSearchServices
Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi

snowflake.getCortexSearchServices

Explore with Pulumi AI

snowflake logo
Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi

    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, nil, 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 GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    In GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    in GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    in GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    startsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    in_ GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.

    getCortexSearchServices Result

    The following output properties are available:

    CortexSearchServices List<GetCortexSearchServicesCortexSearchService>
    Holds the output of SHOW CORTEX SEARCH SERVICES.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    CortexSearchServices []GetCortexSearchServicesCortexSearchService
    Holds the output of SHOW CORTEX SEARCH SERVICES.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    StartsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    cortexSearchServices List<GetCortexSearchServicesCortexSearchService>
    Holds the output of SHOW CORTEX SEARCH SERVICES.
    id String
    The provider-assigned unique ID for this managed resource.
    in GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    startsWith String
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    cortexSearchServices GetCortexSearchServicesCortexSearchService[]
    Holds the output of SHOW CORTEX SEARCH SERVICES.
    id string
    The provider-assigned unique ID for this managed resource.
    in GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    startsWith string
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    cortex_search_services Sequence[GetCortexSearchServicesCortexSearchService]
    Holds the output of SHOW CORTEX SEARCH SERVICES.
    id str
    The provider-assigned unique ID for this managed resource.
    in_ GetCortexSearchServicesIn
    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 GetCortexSearchServicesLimit
    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 with starts_with or like.
    starts_with str
    Filters the output with case-sensitive characters indicating the beginning of the object name.
    cortexSearchServices List<Property Map>
    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 with starts_with or like.
    startsWith 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.
    CreatedOn string
    Date and time when the cortex search service was created.
    DatabaseName string
    Database in which the cortex search service is stored.
    Name string
    Name of the cortex search service.
    SchemaName string
    Schema in which the cortex search service is stored.
    Comment string
    Comment for the cortex search service.
    CreatedOn string
    Date and time when the cortex search service was created.
    DatabaseName string
    Database in which the cortex search service is stored.
    Name string
    Name of the cortex search service.
    SchemaName string
    Schema in which the cortex search service is stored.
    comment String
    Comment for the cortex search service.
    createdOn String
    Date and time when the cortex search service was created.
    databaseName String
    Database in which the cortex search service is stored.
    name String
    Name of the cortex search service.
    schemaName String
    Schema in which the cortex search service is stored.
    comment string
    Comment for the cortex search service.
    createdOn string
    Date and time when the cortex search service was created.
    databaseName string
    Database in which the cortex search service is stored.
    name string
    Name of the cortex search service.
    schemaName 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.
    createdOn String
    Date and time when the cortex search service was created.
    databaseName String
    Database in which the cortex search service is stored.
    name String
    Name of the cortex search service.
    schemaName String
    Schema in which the cortex search service is stored.

    GetCortexSearchServicesIn

    Account bool
    Returns records for the entire account.
    Database string
    Returns records for the current database in use or for a specified database (db_name).
    Schema string
    Returns records for the current schema in use or a specified schema (schema_name).
    Account bool
    Returns records for the entire account.
    Database string
    Returns records for the current database in use or for a specified database (db_name).
    Schema string
    Returns records for the current schema in use or a specified schema (schema_name).
    account Boolean
    Returns records for the entire account.
    database String
    Returns records for the current database in use or for a specified database (db_name).
    schema String
    Returns records for the current schema in use or a specified schema (schema_name).
    account boolean
    Returns records for the entire account.
    database string
    Returns records for the current database in use or for a specified database (db_name).
    schema string
    Returns records for the current schema in use or a specified schema (schema_name).
    account bool
    Returns records for the entire account.
    database str
    Returns records for the current database in use or for a specified database (db_name).
    schema str
    Returns records for the current schema in use or a specified schema (schema_name).
    account Boolean
    Returns records for the entire account.
    database String
    Returns records for the current database in use or for a specified database (db_name).
    schema String
    Returns records for the current schema in use or a specified schema (schema_name).

    GetCortexSearchServicesLimit

    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    Rows int
    The maximum number of rows to return.
    From string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Integer
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows number
    The maximum number of rows to return.
    from string
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows int
    The maximum number of rows to return.
    from_ str
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
    rows Number
    The maximum number of rows to return.
    from String
    Specifies a case-sensitive pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.

    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.59.0 published on Friday, Sep 20, 2024 by Pulumi