1. Packages
  2. Datadog Provider
  3. API Docs
  4. getLogsPipelines
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.getLogsPipelines

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    Use this data source to list all existing logs pipelines for use in other resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Gets all pipelines
    const pipelines = datadog.getLogsPipelines({});
    // Using data source to set pipeline order
    const lpo = new datadog.LogsPipelineOrder("lpo", {
        name: "lpo",
        pipelines: pipelines.then(pipelines => .map(pipeline => (pipeline.id))),
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Gets all pipelines
    pipelines = datadog.get_logs_pipelines()
    # Using data source to set pipeline order
    lpo = datadog.LogsPipelineOrder("lpo",
        name="lpo",
        pipelines=[pipeline.id for pipeline in pipelines.logs_pipelines])
    
    Coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Gets all pipelines
        var pipelines = Datadog.GetLogsPipelines.Invoke();
    
        // Using data source to set pipeline order
        var lpo = new Datadog.LogsPipelineOrder("lpo", new()
        {
            Name = "lpo",
            Pipelines = .Select(pipeline => 
            {
                return pipeline.Id;
            }).ToList(),
        });
    
    });
    
    Coming soon!
    
    Coming soon!
    

    Using getLogsPipelines

    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 getLogsPipelines(args: GetLogsPipelinesArgs, opts?: InvokeOptions): Promise<GetLogsPipelinesResult>
    function getLogsPipelinesOutput(args: GetLogsPipelinesOutputArgs, opts?: InvokeOptions): Output<GetLogsPipelinesResult>
    def get_logs_pipelines(is_read_only: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLogsPipelinesResult
    def get_logs_pipelines_output(is_read_only: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLogsPipelinesResult]
    func GetLogsPipelines(ctx *Context, args *GetLogsPipelinesArgs, opts ...InvokeOption) (*GetLogsPipelinesResult, error)
    func GetLogsPipelinesOutput(ctx *Context, args *GetLogsPipelinesOutputArgs, opts ...InvokeOption) GetLogsPipelinesResultOutput

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

    public static class GetLogsPipelines 
    {
        public static Task<GetLogsPipelinesResult> InvokeAsync(GetLogsPipelinesArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsPipelinesResult> Invoke(GetLogsPipelinesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsPipelinesResult> getLogsPipelines(GetLogsPipelinesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getLogsPipelines:getLogsPipelines
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IsReadOnly string
    Filter parameter for retrieved pipelines
    IsReadOnly string
    Filter parameter for retrieved pipelines
    isReadOnly String
    Filter parameter for retrieved pipelines
    isReadOnly string
    Filter parameter for retrieved pipelines
    is_read_only str
    Filter parameter for retrieved pipelines
    isReadOnly String
    Filter parameter for retrieved pipelines

    getLogsPipelines Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LogsPipelines List<GetLogsPipelinesLogsPipeline>
    List of logs pipelines
    IsReadOnly string
    Filter parameter for retrieved pipelines
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsPipelines []GetLogsPipelinesLogsPipeline
    List of logs pipelines
    IsReadOnly string
    Filter parameter for retrieved pipelines
    id String
    The provider-assigned unique ID for this managed resource.
    logsPipelines List<GetLogsPipelinesLogsPipeline>
    List of logs pipelines
    isReadOnly String
    Filter parameter for retrieved pipelines
    id string
    The provider-assigned unique ID for this managed resource.
    logsPipelines GetLogsPipelinesLogsPipeline[]
    List of logs pipelines
    isReadOnly string
    Filter parameter for retrieved pipelines
    id str
    The provider-assigned unique ID for this managed resource.
    logs_pipelines Sequence[GetLogsPipelinesLogsPipeline]
    List of logs pipelines
    is_read_only str
    Filter parameter for retrieved pipelines
    id String
    The provider-assigned unique ID for this managed resource.
    logsPipelines List<Property Map>
    List of logs pipelines
    isReadOnly String
    Filter parameter for retrieved pipelines

    Supporting Types

    GetLogsPipelinesLogsPipeline

    Filters List<GetLogsPipelinesLogsPipelineFilter>
    Pipelines filter
    Id string
    ID of the pipeline
    IsEnabled bool
    Whether or not the pipeline is enabled.
    IsReadOnly bool
    Whether or not the pipeline can be edited.
    Name string
    The name of the pipeline.
    Type string
    Whether or not the pipeline can be edited.
    Filters []GetLogsPipelinesLogsPipelineFilter
    Pipelines filter
    Id string
    ID of the pipeline
    IsEnabled bool
    Whether or not the pipeline is enabled.
    IsReadOnly bool
    Whether or not the pipeline can be edited.
    Name string
    The name of the pipeline.
    Type string
    Whether or not the pipeline can be edited.
    filters List<GetLogsPipelinesLogsPipelineFilter>
    Pipelines filter
    id String
    ID of the pipeline
    isEnabled Boolean
    Whether or not the pipeline is enabled.
    isReadOnly Boolean
    Whether or not the pipeline can be edited.
    name String
    The name of the pipeline.
    type String
    Whether or not the pipeline can be edited.
    filters GetLogsPipelinesLogsPipelineFilter[]
    Pipelines filter
    id string
    ID of the pipeline
    isEnabled boolean
    Whether or not the pipeline is enabled.
    isReadOnly boolean
    Whether or not the pipeline can be edited.
    name string
    The name of the pipeline.
    type string
    Whether or not the pipeline can be edited.
    filters Sequence[GetLogsPipelinesLogsPipelineFilter]
    Pipelines filter
    id str
    ID of the pipeline
    is_enabled bool
    Whether or not the pipeline is enabled.
    is_read_only bool
    Whether or not the pipeline can be edited.
    name str
    The name of the pipeline.
    type str
    Whether or not the pipeline can be edited.
    filters List<Property Map>
    Pipelines filter
    id String
    ID of the pipeline
    isEnabled Boolean
    Whether or not the pipeline is enabled.
    isReadOnly Boolean
    Whether or not the pipeline can be edited.
    name String
    The name of the pipeline.
    type String
    Whether or not the pipeline can be edited.

    GetLogsPipelinesLogsPipelineFilter

    Query string
    Pipeline filter criteria.
    Query string
    Pipeline filter criteria.
    query String
    Pipeline filter criteria.
    query string
    Pipeline filter criteria.
    query str
    Pipeline filter criteria.
    query String
    Pipeline filter criteria.

    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.36.1 published on Friday, Nov 15, 2024 by Pulumi