Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi
datadog.getLogsIndexesOrder
Explore with Pulumi AI
Get the current order of your log indexes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const test = datadog.getLogsIndexesOrder({});
import pulumi
import pulumi_datadog as datadog
test = datadog.get_logs_indexes_order()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var test = Datadog.GetLogsIndexesOrder.Invoke();
});
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();
}
}
variables:
test:
fn::invoke:
Function: datadog:getLogsIndexesOrder
Arguments: {}
Using getLogsIndexesOrder
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 getLogsIndexesOrder(opts?: InvokeOptions): Promise<GetLogsIndexesOrderResult>
function getLogsIndexesOrderOutput(opts?: InvokeOptions): Output<GetLogsIndexesOrderResult>
def get_logs_indexes_order(opts: Optional[InvokeOptions] = None) -> GetLogsIndexesOrderResult
def get_logs_indexes_order_output(opts: Optional[InvokeOptions] = None) -> Output[GetLogsIndexesOrderResult]
func GetLogsIndexesOrder(ctx *Context, opts ...InvokeOption) (*GetLogsIndexesOrderResult, error)
func GetLogsIndexesOrderOutput(ctx *Context, opts ...InvokeOption) GetLogsIndexesOrderResultOutput
> Note: This function is named GetLogsIndexesOrder
in the Go SDK.
public static class GetLogsIndexesOrder
{
public static Task<GetLogsIndexesOrderResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetLogsIndexesOrderResult> Invoke(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.
- Index
Names 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.
- Index
Names []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.
- index
Names 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.
- index
Names 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.
- index
Names 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.