Datadog

Pulumi Official
Package maintained by Pulumi
v4.10.0 published on Monday, Jul 25, 2022 by Pulumi

getLogsIndexes

Use this data source to list several existing logs indexes for use in other resources.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Datadog.GetLogsIndexes.InvokeAsync());
    }

}
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.GetLogsIndexes(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = Output.of(DatadogFunctions.getLogsIndexes());

    }
}
import pulumi
import pulumi_datadog as datadog

test = datadog.get_logs_indexes()
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const test = pulumi.output(datadog.getLogsIndexes());
variables:
  test:
    Fn::Invoke:
      Function: datadog:getLogsIndexes
      Arguments: {}

Using getLogsIndexes

function getLogsIndexes(opts?: InvokeOptions): Promise<GetLogsIndexesResult>
def get_logs_indexes(opts: Optional[InvokeOptions] = None) -> GetLogsIndexesResult
func GetLogsIndexes(ctx *Context, opts ...InvokeOption) (*GetLogsIndexesResult, error)

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

public static class GetLogsIndexes 
{
    public static Task<GetLogsIndexesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsIndexesResult> getLogsIndexes(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: datadog:index/getLogsIndexes:getLogsIndexes
  Arguments:
    # Arguments dictionary

getLogsIndexes Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

LogsIndexes List<GetLogsIndexesLogsIndex>
Id string

The provider-assigned unique ID for this managed resource.

LogsIndexes []GetLogsIndexesLogsIndex
id String

The provider-assigned unique ID for this managed resource.

logsIndexes List<GetLogsIndexesLogsIndex>
id string

The provider-assigned unique ID for this managed resource.

logsIndexes GetLogsIndexesLogsIndex[]
id str

The provider-assigned unique ID for this managed resource.

logs_indexes Sequence[GetLogsIndexesLogsIndex]
id String

The provider-assigned unique ID for this managed resource.

logsIndexes List<Property Map>

Supporting Types

GetLogsIndexesLogsIndex

GetLogsIndexesLogsIndexExclusionFilter

GetLogsIndexesLogsIndexExclusionFilterFilter

Query string
SampleRate double
Query string
SampleRate float64
query String
sampleRate Double
query string
sampleRate number
query String
sampleRate Number

GetLogsIndexesLogsIndexFilter

Query string
Query string
query String
query string
query str
query String

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.