1. Packages
  2. Datadog
  3. API Docs
  4. getLogsIndexesOrder
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.getLogsIndexesOrder

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Get the current order of your log indexes.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Datadog.GetLogsIndexesOrder.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.GetLogsIndexesOrder(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    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) {
            final var test = DatadogFunctions.getLogsIndexesOrder();
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    test = datadog.get_logs_indexes_order()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const test = datadog.getLogsIndexesOrder({});
    
    variables:
      test:
        fn::invoke:
          Function: datadog:getLogsIndexesOrder
          Arguments: {}
    

    Using getLogsIndexesOrder

    function getLogsIndexesOrder(opts?: InvokeOptions): Promise<GetLogsIndexesOrderResult>
    def get_logs_indexes_order(opts: Optional[InvokeOptions] = None) -> GetLogsIndexesOrderResult
    func GetLogsIndexesOrder(ctx *Context, opts ...InvokeOption) (*GetLogsIndexesOrderResult, error)

    > Note: This function is named GetLogsIndexesOrder in the Go SDK.

    public static class GetLogsIndexesOrder 
    {
        public static Task<GetLogsIndexesOrderResult> InvokeAsync(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsIndexesOrderResult> getLogsIndexesOrder(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getLogsIndexesOrder:getLogsIndexesOrder
      arguments:
        # arguments dictionary

    getLogsIndexesOrder Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    IndexNames List<string>

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    Id string

    The provider-assigned unique ID for this managed resource.

    IndexNames []string

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    id String

    The provider-assigned unique ID for this managed resource.

    indexNames List<String>

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    id string

    The provider-assigned unique ID for this managed resource.

    indexNames string[]

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    id str

    The provider-assigned unique ID for this managed resource.

    index_names Sequence[str]

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    id String

    The provider-assigned unique ID for this managed resource.

    indexNames List<String>

    Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the datadog Terraform Provider.

    datadog logo
    Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi