1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getMonitorLogsStream
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides details about a Linode Monitor Logs Stream. For more information, see the Linode APIv4 docs. (Note: v4beta only.)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const example = linode.getMonitorLogsStream({
        id: "12345",
    });
    export const streamLabel = example.then(example => example.label);
    
    import pulumi
    import pulumi_linode as linode
    
    example = linode.get_monitor_logs_stream(id="12345")
    pulumi.export("streamLabel", example.label)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := linode.GetMonitorLogsStream(ctx, &linode.LookupMonitorLogsStreamArgs{
    			Id: "12345",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("streamLabel", example.Label)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Linode.GetMonitorLogsStream.Invoke(new()
        {
            Id = "12345",
        });
    
        return new Dictionary<string, object?>
        {
            ["streamLabel"] = example.Apply(getMonitorLogsStreamResult => getMonitorLogsStreamResult.Label),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetMonitorLogsStreamArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = LinodeFunctions.getMonitorLogsStream(GetMonitorLogsStreamArgs.builder()
                .id("12345")
                .build());
    
            ctx.export("streamLabel", example.label());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: linode:getMonitorLogsStream
          arguments:
            id: '12345'
    outputs:
      streamLabel: ${example.label}
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getmonitorlogsstream" "example" {
      id = "12345"
    }
    
    output "streamLabel" {
      value = data.linode_getmonitorlogsstream.example.label
    }
    

    Using getMonitorLogsStream

    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 getMonitorLogsStream(args: GetMonitorLogsStreamArgs, opts?: InvokeOptions): Promise<GetMonitorLogsStreamResult>
    function getMonitorLogsStreamOutput(args: GetMonitorLogsStreamOutputArgs, opts?: InvokeOutputOptions): Output<GetMonitorLogsStreamResult>
    def get_monitor_logs_stream(id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMonitorLogsStreamResult
    def get_monitor_logs_stream_output(id: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetMonitorLogsStreamResult]
    func LookupMonitorLogsStream(ctx *Context, args *LookupMonitorLogsStreamArgs, opts ...InvokeOption) (*LookupMonitorLogsStreamResult, error)
    func LookupMonitorLogsStreamOutput(ctx *Context, args *LookupMonitorLogsStreamOutputArgs, opts ...InvokeOption) LookupMonitorLogsStreamResultOutput

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

    public static class GetMonitorLogsStream 
    {
        public static Task<GetMonitorLogsStreamResult> InvokeAsync(GetMonitorLogsStreamArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorLogsStreamResult> Invoke(GetMonitorLogsStreamInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMonitorLogsStreamResult> Invoke(GetMonitorLogsStreamInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMonitorLogsStreamResult> getMonitorLogsStream(GetMonitorLogsStreamArgs args, InvokeOptions options)
    public static Output<GetMonitorLogsStreamResult> getMonitorLogsStream(GetMonitorLogsStreamArgs args, InvokeOptions options)
    public static Output<GetMonitorLogsStreamResult> getMonitorLogsStream(GetMonitorLogsStreamArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getMonitorLogsStream:getMonitorLogsStream
      arguments:
        # arguments dictionary
    data "linode_get_monitor_logs_stream" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the logs stream.
    Id string
    The ID of the logs stream.
    id string
    The ID of the logs stream.
    id String
    The ID of the logs stream.
    id string
    The ID of the logs stream.
    id str
    The ID of the logs stream.
    id String
    The ID of the logs stream.

    getMonitorLogsStream Result

    The following output properties are available:

    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Destinations List<int>
    The list of logs destination IDs attached to this stream.
    Details GetMonitorLogsStreamDetails
    Id string
    Label string
    The label of the logs stream.
    Status string
    The status of the logs stream.
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    Created string
    The date and time when the logs stream was created.
    CreatedBy string
    The user who created the logs stream.
    Destinations []int
    The list of logs destination IDs attached to this stream.
    Details GetMonitorLogsStreamDetails
    Id string
    Label string
    The label of the logs stream.
    Status string
    The status of the logs stream.
    Type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    Updated string
    The date and time when the logs stream was last updated.
    UpdatedBy string
    The user who last updated the logs stream.
    Version int
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    created_by string
    The user who created the logs stream.
    destinations list(number)
    The list of logs destination IDs attached to this stream.
    details object
    id string
    label string
    The label of the logs stream.
    status string
    The status of the logs stream.
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated string
    The date and time when the logs stream was last updated.
    updated_by string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    destinations List<Integer>
    The list of logs destination IDs attached to this stream.
    details GetMonitorLogsStreamDetails
    id String
    label String
    The label of the logs stream.
    status String
    The status of the logs stream.
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Integer
    The version of the logs stream.
    created string
    The date and time when the logs stream was created.
    createdBy string
    The user who created the logs stream.
    destinations number[]
    The list of logs destination IDs attached to this stream.
    details GetMonitorLogsStreamDetails
    id string
    label string
    The label of the logs stream.
    status string
    The status of the logs stream.
    type string
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated string
    The date and time when the logs stream was last updated.
    updatedBy string
    The user who last updated the logs stream.
    version number
    The version of the logs stream.
    created str
    The date and time when the logs stream was created.
    created_by str
    The user who created the logs stream.
    destinations Sequence[int]
    The list of logs destination IDs attached to this stream.
    details GetMonitorLogsStreamDetails
    id str
    label str
    The label of the logs stream.
    status str
    The status of the logs stream.
    type str
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated str
    The date and time when the logs stream was last updated.
    updated_by str
    The user who last updated the logs stream.
    version int
    The version of the logs stream.
    created String
    The date and time when the logs stream was created.
    createdBy String
    The user who created the logs stream.
    destinations List<Number>
    The list of logs destination IDs attached to this stream.
    details Property Map
    id String
    label String
    The label of the logs stream.
    status String
    The status of the logs stream.
    type String
    The type of the logs stream. One of: auditLogs, lkeAuditLogs.
    updated String
    The date and time when the logs stream was last updated.
    updatedBy String
    The user who last updated the logs stream.
    version Number
    The version of the logs stream.

    Supporting Types

    GetMonitorLogsStreamDetails

    ClusterIds List<int>
    The list of LKE cluster IDs included in this stream.
    IsAutoAddAllClustersEnabled bool
    When true, all LKE clusters are automatically added to this stream.
    ClusterIds []int
    The list of LKE cluster IDs included in this stream.
    IsAutoAddAllClustersEnabled bool
    When true, all LKE clusters are automatically added to this stream.
    cluster_ids list(number)
    The list of LKE cluster IDs included in this stream.
    is_auto_add_all_clusters_enabled bool
    When true, all LKE clusters are automatically added to this stream.
    clusterIds List<Integer>
    The list of LKE cluster IDs included in this stream.
    isAutoAddAllClustersEnabled Boolean
    When true, all LKE clusters are automatically added to this stream.
    clusterIds number[]
    The list of LKE cluster IDs included in this stream.
    isAutoAddAllClustersEnabled boolean
    When true, all LKE clusters are automatically added to this stream.
    cluster_ids Sequence[int]
    The list of LKE cluster IDs included in this stream.
    is_auto_add_all_clusters_enabled bool
    When true, all LKE clusters are automatically added to this stream.
    clusterIds List<Number>
    The list of LKE cluster IDs included in this stream.
    isAutoAddAllClustersEnabled Boolean
    When true, all LKE clusters are automatically added to this stream.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo linode logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial